Created
February 19, 2013 15:46
-
-
Save gauntface/4987018 to your computer and use it in GitHub Desktop.
A short snippet to demonstrating the kicking off of video playback
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
| /** | |
| * 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