question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v3] Captions not showing in IE

See original GitHub issue

Captions are not showing in IE11 / Win 10. Possibly also Edge browser (not tested)

  • No related error is shown.
  • The .plyr_captions element still exists, and it has a span child which is empty. If you manipulate the span and add text it will appear correctly styled as in other browsers.

Environment

  • Browser: Internet Explorer
  • Version: 11
  • Operating System: Windows
  • Version: 10

Players affected:

  • HTML5 Video
  • HTML5 Audio
  • YouTube
  • Vimeo

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
sampottscommented, Feb 18, 2018

Oh man, IE6 🤕 I had to support that on a bank website for years purely because senior execs were forced to use it. So. Many. Hacks.

I think I have IE11 working using a blob instead

// Fix IE
if (browser.isIE && window.URL) {
    const elements = this.media.querySelectorAll('track');

    Array.from(elements).forEach(track => {
        const src = track.getAttribute('src');
        const href = utils.parseUrl(src);

        if (href.hostname !== window.location.href.hostname && [
            'http:',
            'https:',
        ].includes(href.protocol)) {
            utils
                .fetch(src, 'blob')
                .then(blob => {
                    track.setAttribute('src', window.URL.createObjectURL(blob));
                })
                .catch(() => {
                    utils.removeElement(track);
                });
        }
    });
}
1reaction
fridaycommented, Feb 19, 2018

Closing as this was fixed/released and now working also for https://plyr.io/beta 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML5 track captions not showing - Stack Overflow
Track tag is working when your content is served at a web server. ... The captions on IE work fine on IIS but...
Read more >
fg-caption-title Not Displaying Correctly in Internet Explorer
Hi There, My Foo Gallery Caption Titles are not displaying correctly in Internet Explorer. How do I fix this? My client does not...
Read more >
Caption Effects in Closed Captions not working
I understand that closed captioning effects are not working; ... 3: in the "Windows Update" section, click "Check for updates".
Read more >
Closed Captioning Not Showing — ROCKSTARS Community
I have 2 videos with closed captioning. I used the recommended webvtt for my captions. Now that it is uploaded, the CC does...
Read more >
Closed Captioning Not Displaying in Chrome
To do that you can right-click anywhere on the player in the browser. Then select "Inspect". This will open the Chrome dev tools....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found