header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Joseph
Points:0
Posts:0

8/6/2010 9:42:41 PM

Title: PLay Video


Is there any way to play other than FLV video in Adobe AIR or Flex.



1
Tyson
Points: 680
Posts:0
8/6/2010 10:20:15 PM



Do you want to play flv in some other player than flash. Or you need something else to play video inside flash?

FLV is supported by many desktop players like VLC, ADOBE Media player etc, but on web i think only flash player supports it

2
Joseph
Points: 0
Posts:0
8/7/2010 1:56:18 AM



Yah I need to play some other format inside Flash. Is it possible.

3
flexman
Points: 260
Posts:3
8/7/2010 6:28:30 AM



Two type of video are supported flv and f4v

video format supported by flash in flv container are
On2 VP6, Sorenson Spark (Sorenson H.263), Screen video, H.264

In f4v container it supports H.264 only above flash player 9.0.115.0

4
Joseph
Points: 0
Posts:0
8/7/2010 7:55:28 AM



So "flexman" is saying that i cannot play an avi or mkv video on my desktop in an Air application.

5
RedBull
Points: 930
Posts:0
8/7/2010 8:08:40 AM



only flv can be played inside Adobe AIR and Flash player . Use this code to play local flv file in adobe air application

private function playVideo():void {
  //create connection
  var nconn:NetConnection = new NetConnection();
  nconn.connect(null);
  //create netStream object
  var nStream:NetStream = new NetStream(nconn);

  // add onMetaData listener else u get error
  var client:Object = new Object();
  client.onMetaData = function(metadata:Object):void {
    trace(metadata.duration);
  }
  nStream.client = client;
  //add video component to display video
  var myVid:Video = new Video();
  myVid.attachNetStream(nStream);
  stage.addChild(myVid);
  //select file to play
  var myFile:File = new File("/tmp/myVideo.flv");
  ns.play(myFile.url);
}


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 7+3 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions