You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The playerVars.start field is typed via TS as number. This is sadly a short-coming in TS/JS. It doesn't allow specifying which kind of number, like int or float.
This is maybe more a documentation issue, because the limitation might be stemming from the underlying IFrame player.
When using the
usePlayer
constructor with the composition API, as documented here: https://vue-youtube.github.io/docs/usage/composable#configuration, the start value MUST be an integer (whole) number.If fractions are used (e.g. value 500.1), the value is not applied and the video starts from the beginning.
The solution for this issue might be to document this limitation in the appropriate place, maybe with some simplified example code.
A working example:
The text was updated successfully, but these errors were encountered: