mirror of
https://github.com/videojs/video.js.git
synced 2025-01-13 10:32:26 +02:00
feat: deprecate the use of starttime
in player.js (#3838)
This commit is contained in:
parent
eb389c57c0
commit
22cf3dd935
@ -1250,12 +1250,14 @@ class Player extends Component {
|
||||
*
|
||||
* @fires Player#firstplay
|
||||
* @listens Tech#firstplay
|
||||
* @deprecated As of 6.0 passing the `starttime` option to the player will be deprecated
|
||||
* @private
|
||||
*/
|
||||
handleTechFirstPlay_() {
|
||||
// If the first starttime attribute is specified
|
||||
// then we will start at the given offset in seconds
|
||||
if (this.options_.starttime) {
|
||||
log.warn('Passing the `starttime` option to the player will be deprecated in 6.0');
|
||||
this.currentTime(this.options_.starttime);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user