Black screen during video loading
Hello everybody!
I started a new discussion about it 5 months ago, but I still have the same problem. I have tried with adobe air 3.9 and the beta 4.0 with the same result.
I am doing an air for android app, and I have a problem when I try to load a video included in my apk.
When a mobile phone try to load the video, the screen is black for one second.
I would like to know if It is posible to make a preloader or any solution to avoid the black screen.
Here you can see the situation: www.youtube.com/v/KoJ2D2eHknU
It is very annoying and I'm trying to solve it, but it's impossible for me and I'm looking for some help.
This is my code:
var mNetConnection:NetConnection=new NetConnection();
mNetConnection.connect(null);
var mNetStream:NetStream=new NetStream(mNetConnection);
video.attachNetStream(mNetStream);
mNetStream.client=this;
mNetStream.bufferTime=0;
mNetStream.play("video/angela.f4v");
mNetStream.addEventListener(NetStatusEvent.NET_STATUS, onNetStreamStatusEvent);
function onNetStreamStatusEvent(event:NetStatusEvent😞void
{
if (event.info.code == "NetStream.Play.Start")
{
trace("NetStream.Play.Start");
}
if (event.info.code == "NetStream.Play.Stop")
{
trace("NetStream.Play.Stop");
}
if (event.info.code == "NetStream.Play.StreamNotFound")
{
trace("Video Not Found");
}
if (event.info.code == "NetStream.Buffer.Full")
{
}
}
function onMetaData(metadata:Object😞void
{
}
And It is my apk:
https://dl.dropboxusercontent.com/u/30144780/curriculo.apk
Thank you for your time and your help.
Antonino
