1
0
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:
Brandon Casey 2016-12-21 14:23:00 -05:00 committed by Gary Katsevman
parent eb389c57c0
commit 22cf3dd935

View File

@ -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);
}