player icon indicating copy to clipboard operation
player copied to clipboard

Native Vimeo Captions

Open remyhunt opened this issue 1 year ago • 3 comments

Current Behavior:

Attempting to implement closed captions / subtitling for my video embed component in vue/nuxt - however when outputting the player embed as player.textTracks, there are no text tracks displayed despite that there's clearly CC tracks on Vimeo. Screenshot 2024-07-17 at 5 31 16 PM

Expected Behavior:

Expecting a non-empty array for player.textTracks.

Steps To Reproduce:

Environment:

  • Framework: Vue
  • Meta Framework: Nuxt
  • Node: 18.17.0
  • Browser: Chrome 126.0.6478.127 (Official Build) (arm64)

Anything Else?

example video (screenshot from vimeo.com) with CC tracks: https://vimeo.com/358296408 Screenshot 2024-07-17 at 5 37 50 PM

remyhunt avatar Jul 17 '24 21:07 remyhunt

This is not supported as there was no API to control which track is being shown and we can't load cues ahead of time. I'll check again but doubt it's changed.

mihar-22 avatar Jul 18 '24 05:07 mihar-22

hey @mihar-22, thanks for getting back.

If it's helpful, I think this might require interacting with the Vimeo Player SDK? Looking at the vintage Plyr code and this is how it seems to be handled.

update: ah nevermind I saw your commented out code in ..vimeo/provider.ts

remyhunt avatar Jul 18 '24 12:07 remyhunt

@mihar-22 Wondering if you could help advise on an interim solution for async querying a VTT track (or otherwise?) from Vimeo

This issue has some an interesting solution but i'm not sure if we can interact with the public Vimeo api in this way https://github.com/sampotts/plyr/issues/994

Please let me know!

remyhunt avatar Jul 18 '24 15:07 remyhunt