Hello,
I’ve being tearing my hair out all day trying to get an FLV to play on an Android device. I’ve tried a few solutions; NetStream makes the App quite after a few seconds, whereas the below loads but doesn’t display the video.
var f:File = File.applicationStorageDirectory.resolvePath("vid.flv"); // var fileLoc:String = File.userDirectory.nativePath+ "/DCIM/vid.flv";
//var f:File = new File(fileLoc);
var flvPlayer:FLVPlayback = new FLVPlayback();
flvPlayer.scaleMode = VideoScaleMode.EXACT_FIT
flvPlayer.fullScreenTakeOver = false;
flvPlayer.scaleMode = VideoScaleMode.EXACT_FIT
flvPlayer.registrationWidth = 800;
flvPlayer.registrationHeight = 450
flvPlayer.width = 800;
flvPlayer.height = 450
flvPlayer.source = f.url//"vid.flv"
flvPlayer.play();
addChild(flvPlayer);
Please can someone help me out.
Thanks