Skip to main content
Participant
April 24, 2012
Answered

White screen when playing StageVideo iPad 2, can this be controlled?

  • April 24, 2012
  • 1 reply
  • 822 views

Hello,

I am currently building an application where the background of the application is a looping video using the StageVideo API. The video plays fine and runs smoothly, however there are cases where the video will get interrupted (and as a result displays a white screen). One of these cases include double tapping the home button on the iPad, attempting to switch apps. When the screen slides up to reveal the currently available apps, the screen video stops playing and the screen goes white. Another case is when the iPad receives a notification or alert. When this happens, the video stops playing and the screen goes white. Finally, I have tested this on two iPads (one Verizon and one AT&T). When entering any view that has this video playing, the AT&T iPad 2 would quickly flash a white screen before playing the video. However, on the Verizon iPad this does not happen.

I would like to know if there is any way that this can be controlled so that I can produce consistent behavior across devices. Would setting persistNavigatorState to true help? Or should I be listing for some sort of status on the StageVideo instance?

What are your thoughts?

Thanks in advance for your help.

This topic has been closed for replies.
Correct answer dalston08

I actually figured out what was wrong. On my "viewDeactivate" event, I was cleaning up all object references (including the StageVideo instance). So everytime viewDeactivate was dispatched, the blank white screen would show up.

For anyone who runs into this situation (on the iPad), you should know that the viewDeactivate event is dispatched not only when moving between views, but also when alerts (or notifications) popup, when going back to the Home screen, and also when you double tap the Home button for the multitasking bar. Likewise the viewActivate event will fire when you return from any of the above mentioned states on the iPad, not just when moving between views. Knowing this helped me to fix the issue I was facing with StageVideo.

Hope this helps someone.

1 reply

dalston08AuthorCorrect answer
Participant
April 25, 2012

I actually figured out what was wrong. On my "viewDeactivate" event, I was cleaning up all object references (including the StageVideo instance). So everytime viewDeactivate was dispatched, the blank white screen would show up.

For anyone who runs into this situation (on the iPad), you should know that the viewDeactivate event is dispatched not only when moving between views, but also when alerts (or notifications) popup, when going back to the Home screen, and also when you double tap the Home button for the multitasking bar. Likewise the viewActivate event will fire when you return from any of the above mentioned states on the iPad, not just when moving between views. Knowing this helped me to fix the issue I was facing with StageVideo.

Hope this helps someone.