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
| // Copyright 2012 Google Inc. All Rights Reserved. | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS-IS" BASIS, |
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
| // Copyright 2012 Google Inc. All Rights Reserved. | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS-IS" BASIS, |
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
| ... | |
| /** | |
| * Remove a focusable item from the controller | |
| * @param {FocusableItem} item The item to remove | |
| */ | |
| this.removeFocusableItem = function (item) { | |
| for(var i = 0; i < focusableItems.length; i++) { | |
| if(focusableItems[i] == item) { | |
| focusableItems.splice(i, 1); |
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
| git config --global core.excludesfile ~/.gitignore_global | |
| nano ~/.gitignore_global |
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
| .project | |
| .settings | |
| .idea | |
| # built application files | |
| *.apk | |
| *.ap_ | |
| # files for the dex VM | |
| *.dex | |
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
| cd ~/Sites/Example/ | |
| compass watch ./ |
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'); | |
| } |
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); |
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
| /** | |
| * This class is meant to be inherited to control Video playback and then | |
| * each class handles a different method of playback | |
| * | |
| * @constructor | |
| */ | |
| function GenericVideoPlayerController() { | |
| var playerCallback = null; | |
| var videoUrl = null; |
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
| NativeVideoPlayerController.prototype = new GenericVideoPlayerController(); | |
| /** | |
| * This handles the playback through a native VideoView rather than a HTML5 | |
| * video tag | |
| * | |
| * @constructor | |
| * @augments GenericVideoPlayerController | |
| */ | |
| function NativeVideoPlayerController() { |