Two FLVPlayers battle eachother with full-screen

When an FLVPlayer component contains a fullscreen button, whenever the application goes to full-screen, the component automatically shows the FLVPlayer component, even if you have set up an alternative full-screen button elsewhere. The way to prevent the component from hijacking fullscreen operations is by setting the ‘fullScreenTakeOver’ property to false:
video.fullScreenTakeOver=false;

However, when the user clicks fullscreen on the video component itself, you probably want the video to resize so when your video is relevant, don’t forget to set this property back to true.

The interesting thing is that when there are two videos in an application, only one of them wins out as the dominant take-over component, so therefore when you click full-screen on the other component, you actually see the dominant player’s video go full-screen. So, when you have two FLVPlayers in different sections, be sure that only the current FLVPlayer has ‘fullScreenTakeOver’ set to true.

Interactive developer, Author - iOS development with Swift - book coming 2017 https://manning.com/books/ios-development-with-swift

Tagged with: , ,
Posted in Flash

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: