File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1+ lib /* linguist-vendored
Original file line number Diff line number Diff line change 1- export function skipIfAutoplay ( player : YT . Player , playerVars : YT . PlayerVars ) {
1+ /**
2+ * seekIfAutoplay seeks to the provided timestamp if autoplay is enabled
3+ * @param player The player instance
4+ * @param playerVars The player vars
5+ */
6+ export function seekIfAutoplay ( player : YT . Player , playerVars : YT . PlayerVars ) {
27 if ( playerVars . autoplay != undefined && playerVars . autoplay == YT . AutoPlay . AutoPlay ) {
38 player . mute ( ) ;
49
Original file line number Diff line number Diff line change 11import { defineComponent , h , nextTick } from 'vue' ;
22
3- import { skipIfAutoplay } from './helper' ;
3+ import { seekIfAutoplay } from './helper' ;
44import { manager } from './manager' ;
55
66const player = defineComponent ( {
@@ -185,7 +185,7 @@ const player = defineComponent({
185185 host,
186186 events : {
187187 onReady : ( event : YT . PlayerEvent ) => {
188- skipIfAutoplay ( event . target , playerParameters ) ;
188+ seekIfAutoplay ( event . target , playerParameters ) ;
189189 this . $emit ( 'ready' , event ) ;
190190 } ,
191191 onStateChange : ( event : YT . OnStateChangeEvent ) => {
You can’t perform that action at this time.
0 commit comments