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] media.load() breaks hls.js

See original GitHub issue

media.load() is used in a few places in the plyr codebase, with stop, or after playing the video if showPosterOnEnd is enabled, and also when changing the source or quality.

In effect this breaks hls.js (and possibly other streaming wrappers), since hls.js loads the video by some SourceBuffer voodoo after the element is created. For showPosterOnEnd and stop this is a problem, while if you’re changing the source or quality you should be expecting to have to re-initiate hls.js.

Native hls support in Safari is unaffected.

Example: https://codepen.io/fullkornslimpa/pen/XEParj

Let it play until it’s complete (you can skip to the end), then press play again. It will fail unless you remove showPosterOnEnd.

(Added the [v3] tag since I haven’t tested v2).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sampottscommented, May 5, 2018

Try v3.3.5!

1reaction
sampottscommented, May 5, 2018

I’ve renamed the option to resetOnEnd in v3.3.0 and it now applies to all media types. I’ve created a poster container much like @friday 's suggestion and the poster setter will now update both. This is also used for Vimeo and YouTube so the behaviour is consistent.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Home | hls.js
JavaScript HLS client using MediaSourceExtension.
Read more >
Why does my Android Webview app with a Hls.js video player ...
Im at the breaking point with this error. I developed a svelte webapp with an hls.js video player which I packaged in an...
Read more >
Introduction to HTTP Live Streaming: HLS on Android and More
This example illustrates what an M3U8 file for a simple HLS stream looks like: #EXTM3U #EXT-X-VERSION:3 #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-ALLOW-CACHE:YES ...
Read more >
HTML5 Video Player with HLS and Video Transformations
Any direct changes to the player code and its elements (for example, CSS and JS files) might break its functionality, and will not...
Read more >
hls.js - npm
There are 550 other projects in the npm registry using hls.js. ... Encrypted media extensions (EME) support for DRM (digital rights ...
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