videojs_rails 4.12.7 → 4.12.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c82f559cece0ecbd1aad283045cf6c2e576e9399
|
4
|
+
data.tar.gz: b665ddbff9cb4cd783a38de0446587e535ab56c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dc5525c6277e7d8f24f4e6225980ef7466f6bff79395c3f5b516b3c95723ac851f71296d544ac98f90ee8ad081ab345324b3a3e9213ab604ddf4cb62ec20ca3
|
7
|
+
data.tar.gz: 39919a3dec9aca4170084fc0830e8a391ff8eba7b30128739c67206abda929a5890c2319d1d2ca5e33d6fb7d817045ea8423567f7fde70a833658991ce8f1800
|
@@ -80,7 +80,7 @@ vjs.ACCESS_PROTOCOL = ('https:' == document.location.protocol ? 'https://' : 'ht
|
|
80
80
|
* Full player version
|
81
81
|
* @type {string}
|
82
82
|
*/
|
83
|
-
vjs['VERSION'] = '4.12.
|
83
|
+
vjs['VERSION'] = '4.12.8';
|
84
84
|
|
85
85
|
/**
|
86
86
|
* Global Player instance options, surfaced from vjs.Player.prototype.options_
|
@@ -1302,6 +1302,18 @@ vjs.round = function(num, dec) {
|
|
1302
1302
|
* @private
|
1303
1303
|
*/
|
1304
1304
|
vjs.createTimeRange = function(start, end){
|
1305
|
+
if (start === undefined && end === undefined) {
|
1306
|
+
return {
|
1307
|
+
length: 0,
|
1308
|
+
start: function() {
|
1309
|
+
throw new Error('This TimeRanges object is empty');
|
1310
|
+
},
|
1311
|
+
end: function() {
|
1312
|
+
throw new Error('This TimeRanges object is empty');
|
1313
|
+
}
|
1314
|
+
};
|
1315
|
+
}
|
1316
|
+
|
1305
1317
|
return {
|
1306
1318
|
length: 1,
|
1307
1319
|
start: function() { return start; },
|
@@ -5160,6 +5172,13 @@ vjs.Player.prototype.ended = function(){ return this.techGet('ended'); };
|
|
5160
5172
|
*/
|
5161
5173
|
vjs.Player.prototype.seeking = function(){ return this.techGet('seeking'); };
|
5162
5174
|
|
5175
|
+
/**
|
5176
|
+
* Returns the TimeRanges of the media that are currently available
|
5177
|
+
* for seeking to.
|
5178
|
+
* @return {TimeRanges} the seekable intervals of the media timeline
|
5179
|
+
*/
|
5180
|
+
vjs.Player.prototype.seekable = function(){ return this.techGet('seekable'); };
|
5181
|
+
|
5163
5182
|
// When the player is first initialized, trigger activity so components
|
5164
5183
|
// like the control bar show themselves if needed
|
5165
5184
|
vjs.Player.prototype.userActivity_ = true;
|
@@ -7415,6 +7434,7 @@ vjs.Html5.prototype.setLoop = function(val){ this.el_.loop = val; };
|
|
7415
7434
|
|
7416
7435
|
vjs.Html5.prototype.error = function(){ return this.el_.error; };
|
7417
7436
|
vjs.Html5.prototype.seeking = function(){ return this.el_.seeking; };
|
7437
|
+
vjs.Html5.prototype.seekable = function(){ return this.el_.seekable; };
|
7418
7438
|
vjs.Html5.prototype.ended = function(){ return this.el_.ended; };
|
7419
7439
|
vjs.Html5.prototype.defaultMuted = function(){ return this.el_.defaultMuted; };
|
7420
7440
|
|
@@ -7920,6 +7940,15 @@ vjs.Flash.prototype['setPoster'] = function(){
|
|
7920
7940
|
// poster images are not handled by the Flash tech so make this a no-op
|
7921
7941
|
};
|
7922
7942
|
|
7943
|
+
vjs.Flash.prototype.seekable = function() {
|
7944
|
+
var duration = this.duration();
|
7945
|
+
if (duration === 0) {
|
7946
|
+
// The SWF reports a duration of zero when the actual duration is unknown
|
7947
|
+
return vjs.createTimeRange();
|
7948
|
+
}
|
7949
|
+
return vjs.createTimeRange(0, this.duration());
|
7950
|
+
};
|
7951
|
+
|
7923
7952
|
vjs.Flash.prototype.buffered = function(){
|
7924
7953
|
return vjs.createTimeRange(0, this.el_.vjs_getProperty('buffered'));
|
7925
7954
|
};
|
@@ -7936,7 +7965,7 @@ vjs.Flash.prototype.enterFullScreen = function(){
|
|
7936
7965
|
// Create setters and getters for attributes
|
7937
7966
|
var api = vjs.Flash.prototype,
|
7938
7967
|
readWrite = 'rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted'.split(','),
|
7939
|
-
readOnly = 'error,networkState,readyState,seeking,initialTime,duration,startOffsetTime,paused,played,
|
7968
|
+
readOnly = 'error,networkState,readyState,seeking,initialTime,duration,startOffsetTime,paused,played,ended,videoTracks,audioTracks,videoWidth,videoHeight'.split(','),
|
7940
7969
|
// Overridden: buffered, currentTime, currentSrc
|
7941
7970
|
i;
|
7942
7971
|
|