Skip to main content
Inspiring
Nov 13, 2013 7:12 PM UTC
Question

new Video() causing screen to flash (Android)

Has anyone had this before, it's been making me go crazy for the last 3 hours.

video = new Video() on android makes the screen flash black for about 2 seconds. It then reverts back to where it was.

I'm not adding it to the display list, and have not listeners on video. Simply -

protected function onAddedToStage(event:Event):void

                    {

 

                              video = new Video();

}

Replicates the problem each time on my Android device.

Any ideas?

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

Inspiring
Nov 14, 2013 7:34 PM UTC

I had a similar issue when displaying the camera locally. For that purpose, there is an alternate way to do things:

http://stackoverflow.com/questions/4178292/how-do-i-attach-camera-to-spark-components-videodisplay

Translate
Inspiring
Nov 14, 2013 4:27 PM UTC

weird I've never seen that happen before... What version of AIR are you using and what is your Android device?

Translate
FunkyJunkAuthor
Inspiring
Nov 14, 2013 4:41 PM UTC

I know strage right! I've just done a work around; transition to black before involking new Video()..

I'm using AIR 3.9, Galaxy Tab 2 10.1

Translate
Inspiring
Nov 13, 2013 8:17 PM UTC

not sure much help but... ive seen the initial bootup process on android take a few seconds... try adding a delay of like 5 seconds and see if it still happens. Could possibly be that the black flash is the booting up process not necessarily the video.

I'm building a video conferencing app for iOS and Android and I haven't experienced that problem. I also build a pool of the things I need at the start and re-use them to lower the amount of constructors being called.

Translate
FunkyJunkAuthor
Inspiring
Nov 14, 2013 11:33 AM UTC

thanks for your reply. It's not on startup.. The App is up and running, click a button with just; onMouseClick(e:Event):void {       video = new Video(); } will cause the issue!

Translate