Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save gauntface/4987018 to your computer and use it in GitHub Desktop.
A short snippet to demonstrating the kicking off of video playback
/**
* Set the up video player
* @function
*/
FullscreenPage.prototype.setUpVideoPlayer = function () {
var videoPlayerController = this.getVideoPlayerController();
var videoControlsController = this.getVideoControlsController();
var videoDataController = this.getVideoDataController();
var videoData = videoDataController.getVideoData(this.getCategoryIndex())[this.getItemIndex()];
videoPlayerController.setVideoUrl(videoData.src);
videoControlsController.reset();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment