player.js icon indicating copy to clipboard operation
player.js copied to clipboard

Subtitles are not enabled when passing as options to loadVideo

Open mikeamarkey opened this issue 3 years ago • 0 comments

Expected Behavior

  • When passing texttrack in the options to loadVideo, the video should load with the expected texttrack enabled.

Actual Behavior

  • The texttrack is not enabled. However, the texttrack can be enabled by calling enableTextTrack after the video is loaded.
  • Also, when passing texttrack as an option when initializing the player, it works as expected.

Steps to Reproduce

CodeSandbox here: https://codesandbox.io/s/vimeo-player-subtitle-loadvideo-issue-vsexxs?file=/src/index.ts

  1. Make sure "None" (or something other than "English") is selected for subtitles.
  2. Press play on the video and fast forward to the end, forcing the next video to play.
  3. When using code (1) in the sandbox, the English subtitles will not be enabled when the next video loads.
  4. Switch to using code (2) and try again. The English subtitles will be enabled as expected when loading the next video.

mikeamarkey avatar Aug 31 '22 01:08 mikeamarkey