• Resolved almegasolutions

    (@almegasolutions)


    Hi Alec,

    Is it possible to enable captions for videos hosted on YouTube? I have tried enabling it by passing cc_load_policy with the URL but this doesn’t work.

    From what I can tell Plyr needs to have the option enabled but I’m struggling to figure out where this can be added.

    Thanks in advance,

    Brad

    • This topic was modified 2 years, 1 month ago by almegasolutions. Reason: Apparently marked as spam?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Alec Rust

    (@alecrust)

    Hi @almegasolutions apologies for delayed response.

    It looks like this is a missing Plyr feature, rather than something I can add to this plugin. Here’s the issue in question: https://github.com/sampotts/plyr/issues/1090

    Thread Starter almegasolutions

    (@almegasolutions)

    Hi Alec,

    I have investigated further and captions appear to work with Plyr on my embedded videos with Plyr direct:

    https://codepen.io/NSO/pen/QqNrqO

    If I add my own URL with the ?cc_load_policy=1 added on the above HTML panel, the captions show fine.

    Thanks in advance,

    Brad

    Plugin Author Alec Rust

    (@alecrust)

    Thanks Brad that’s interesting.

    I had a play with your pen. It seems to be loading a very old version of Plyr, v2.0.13? Any solution here would need to work with the latest version this plugin bundles, v3.7.8. The JS in your pen does not seem to work when loading this latest version.

    I could add an option to the player to set captions: { defaultActive: true } Plyr option, however this alone doesn’t seem to enable captions on YouTube videos.

    If you can find a working non-hacky solution with the latest version of Plyr and would be happy to open a PR, I’d be happy to help get it merged. If not, I suggest you go with the “direct Plyr” solution you have in the pen for now.

    I should mention, Plyr issues like the one I linked in my previous reply are unlikely to get fixed, as the Plyr player has been deprecated, with effort to be focused on the Vidstack Player. I’m hesitant to build more complexity into this plugin on top of Plyr.

    When the Vidstack Player provides what this plugin needs to operate I will either replace Plyr with it, or make it the default player and keep Plyr around as an option for a while.

    Plugin Author Alec Rust

    (@alecrust)

    Resolving as no response.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Enabling captions’ is closed to new replies.