Created
February 19, 2013 15:39
-
-
Save gauntface/4986942 to your computer and use it in GitHub Desktop.
A small piece of code showing the initial set up of the messaging between web and native
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var videoPlayerController; | |
| if(fullscreenPage.isEmbedded()) { | |
| videoPlayerController = new NativeVideoPlayerController(); | |
| window.fullscreenPage = fullscreenPage; | |
| } else { | |
| videoPlayerController = new WebVideoPlayerController('video-container'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment