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.
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
8/7/2010 1:56:18 AM
Yah I need to play some other format inside Flash. Is it possible.
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
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.
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);
}