Comparing version 0.2.71 to 0.2.72
{ | ||
"name": "clappr", | ||
"description": "An extensible media player for the web", | ||
"version": "0.2.71", | ||
"version": "0.2.72", | ||
"homepage": "https://github.com/clappr/clappr", | ||
@@ -6,0 +6,0 @@ "authors": [ |
{ | ||
"name": "clappr", | ||
"version": "0.2.71", | ||
"version": "0.2.72", | ||
"description": "An extensible media player for the web", | ||
@@ -5,0 +5,0 @@ "main": "./dist/clappr.js", |
@@ -485,2 +485,8 @@ // Copyright 2014 Globo.com Player authors. All rights reserved. | ||
/** | ||
* Fired when the media for a playback is seeked. | ||
* | ||
* @event PLAYBACK_SEEKED | ||
*/ | ||
Events.PLAYBACK_SEEKED = 'playback:seeked' | ||
/** | ||
* Fired when the media for a playback is stopped. | ||
@@ -672,2 +678,9 @@ * | ||
Events.CONTAINER_SEEK = 'container:seek' | ||
/** | ||
* Fired when the container was finished the seek video | ||
* | ||
* @event CONTAINER_SEEKED | ||
* @param {Number} time the current time in seconds | ||
*/ | ||
Events.CONTAINER_SEEKED = 'container:seeked' | ||
Events.CONTAINER_VOLUME = 'container:volume' | ||
@@ -674,0 +687,0 @@ Events.CONTAINER_FULLSCREEN = 'container:fullscreen' |
@@ -169,2 +169,3 @@ // Copyright 2014 Globo.com Player authors. All rights reserved. | ||
this.listenTo(this.playback, Events.PLAYBACK_MEDIACONTROL_ENABLE, this.enableMediaControl) | ||
this.listenTo(this.playback, Events.PLAYBACK_SEEKED, this.onSeeked) | ||
this.listenTo(this.playback, Events.PLAYBACK_ENDED, this.onEnded) | ||
@@ -352,2 +353,6 @@ this.listenTo(this.playback, Events.PLAYBACK_PLAY, this.playing) | ||
onSeeked() { | ||
this.trigger(Events.CONTAINER_SEEKED, this.name) | ||
} | ||
seekPercentage(percentage) { | ||
@@ -354,0 +359,0 @@ const duration = this.getDuration() |
@@ -66,4 +66,4 @@ // Copyright 2014 Globo.com Player authors. All rights reserved. | ||
'progress': '_onProgress', | ||
'seeked': '_handleBufferingEvents', | ||
'seeking': '_handleBufferingEvents', | ||
'seeked': '_onSeeked', | ||
'stalled': '_handleBufferingEvents', | ||
@@ -92,3 +92,3 @@ 'timeupdate': '_onTimeUpdate', | ||
get buffering() { | ||
return !!this._bufferingState | ||
return this._isBuffering | ||
} | ||
@@ -100,2 +100,3 @@ | ||
this._loadStarted = false | ||
this._isBuffering = false | ||
this._playheadMoving = false | ||
@@ -345,2 +346,7 @@ this._playheadMovingTimer = null | ||
_onSeeked() { | ||
this._handleBufferingEvents() | ||
this.trigger(Events.PLAYBACK_SEEKED) | ||
} | ||
_onEnded() { | ||
@@ -359,8 +365,7 @@ this._handleBufferingEvents() | ||
const buffering = this._loadStarted && !this.el.ended && !this._stopped && ((playheadShouldBeMoving && !this._playheadMoving) || this.el.readyState < this.el.HAVE_FUTURE_DATA) | ||
if (this._bufferingState !== buffering) { | ||
this._bufferingState = buffering | ||
if (this._isBuffering !== buffering) { | ||
this._isBuffering = buffering | ||
if (buffering) { | ||
this.trigger(Events.PLAYBACK_BUFFERING, this.name) | ||
} | ||
else { | ||
} else { | ||
this.trigger(Events.PLAYBACK_BUFFERFULL, this.name) | ||
@@ -409,3 +414,2 @@ } | ||
_onTimeUpdate() { | ||
this._handleBufferingEvents() | ||
if (this.getPlaybackType() === Playback.LIVE) { | ||
@@ -571,2 +575,1 @@ this.trigger(Events.PLAYBACK_TIMEUPDATE, {current: 1, total: 1}, this.name) | ||
} | ||
@@ -70,2 +70,8 @@ import {getBrowserLanguage} from '../base/utils' | ||
'playback_not_supported': 'Tarayıcınız bu videoyu oynatma desteğine sahip değil. Lütfen farklı bir tarayıcı ile deneyin.', | ||
}, | ||
'et': { | ||
'live': 'Otseülekanne', | ||
'back_to_live': 'Tagasi otseülekande juurde', | ||
'disabled': 'Keelatud', | ||
'playback_not_supported': 'Teie brauser ei toeta selle video taasesitust. Proovige kasutada muud brauserit.' | ||
} | ||
@@ -84,3 +90,5 @@ } | ||
this._messages['tr-TR'] = this._messages['tr'] | ||
this._messages['et-EE'] = this._messages['et'] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3933065
172
35620