Hook up flashls level API as videojs custom SWF API. #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This hooks up flashls API to custom video-js.swf layer.
This needs additional change inside video.js itself to let video-js users may access it finally.
This is diff for videojs/video.js repository.
I do not know what is the best way to delivery that part of the change, as videojs's project does not have our custom flash change (yet) and I assume they do not want to take this.
src/js/media/flash.js | 4 ++--
src/js/player.js | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/src/js/media/flash.js b/src/js/media/flash.js
index 1291146..1942a08 100644
--- a/src/js/media/flash.js
+++ b/src/js/media/flash.js
@@ -196,8 +196,8 @@ vjs.Flash.prototype.enterFullScreen = function(){
(function(){
// Create setters and getters for attributes
var api = vjs.Flash.prototype,
// Overridden: buffered, currentTime, currentSrc
i;
diff --git a/src/js/player.js b/src/js/player.js
index 781628b..960c74f 100644
--- a/src/js/player.js
+++ b/src/js/player.js
@@ -1649,6 +1649,27 @@ vjs.Player.prototype.playbackRate = function(rate) {
};
+vjs.Player.prototype.numberOfLevels = function () {
+};
+vjs.Player.prototype.level = function (value) {
+};
+vjs.Player.prototype.autoLevelEnabled = function () {
+};
// Methods to add support for
// networkState: function(){ return this.techCall('networkState'); },
// readyState: function(){ return this.techCall('readyState'); },