Skip to content

Instantly share code, notes, and snippets.

@gauntface
Created February 19, 2013 15:39
Show Gist options
  • Select an option

  • Save gauntface/4986942 to your computer and use it in GitHub Desktop.

Select an option

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
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