Closed TheOnlyTails closed 8 months ago
Hey @TheOnlyTails, thanks for bringing up this topic. We haven't configured this library to support OTT players because that product has its own SDK: https://dev.vhx.tv/player/
Let me know if you have any trouble using that solution and I can open this issue back up.
Hi, @rkrishnan8594 thanks so much for your reply, I tried using the VHX API, but it seems that its subtitle methods are broken - running player.getSubtitles()
returns undefined
, and player.setSubtitles("en")
does nothing (even though the video has English captions, both in the UI and in the internal iframe markup).
If you could help with that, that would be amazing.
Thanks for the additional information. I've shared this bug report with our OTT developers and they have captured it in an internal ticket. I'll make sure that this issue is updated when there's a resolution.
Thank you so much!
@rkrishnan8594 @TheOnlyTails Hi there, OTT updated the docs to represent the current state of things and restored the functionality of two methods related to the text tracks (subtitles).
Awesome, that's incredible! Thank you so much!
Expected Behavior
https://embed.vhx.tv/
URLs should be recognized as Vimeo URLs by theisVimeoUrl
function.Actual Behavior
OTT video embeds use
embed.vhx.tv
as their iframesrc
s, which means theVimeo.Player
constructor fails when trying to access them.Steps to Reproduce
player.js
scriptnew Vimeo.Player(document.querySelector("iframe"))
in the console.Alternate solutions
Add a new parameter to the
Vimeo.Player
constructor that allows users to pass in a customisVimeoUrl
function.