Skip to main content
Inspiring
April 4, 2013
Question

Video Playback on Android (not showing)

  • April 4, 2013
  • 1 reply
  • 483 views

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

This topic has been closed for replies.

1 reply

FunkyJunkAuthor
Inspiring
May 8, 2013

Just incase anyone else has this problem, I changed the render mode to GPU, and the video displayed

<renderMode>gpu</renderMode>