Skip to content

Commit 22cf3dd

Browse files
brandonocaseygkatsev
authored andcommitted
feat: deprecate the use of starttime in player.js (#3838)
1 parent eb389c5 commit 22cf3dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/js/player.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,12 +1250,14 @@ class Player extends Component {
12501250
*
12511251
* @fires Player#firstplay
12521252
* @listens Tech#firstplay
1253+
* @deprecated As of 6.0 passing the `starttime` option to the player will be deprecated
12531254
* @private
12541255
*/
12551256
handleTechFirstPlay_() {
12561257
// If the first starttime attribute is specified
12571258
// then we will start at the given offset in seconds
12581259
if (this.options_.starttime) {
1260+
log.warn('Passing the `starttime` option to the player will be deprecated in 6.0');
12591261
this.currentTime(this.options_.starttime);
12601262
}
12611263

0 commit comments

Comments
 (0)