Giter Site home page Giter Site logo

Comments (4)

mangui avatar mangui commented on August 19, 2024

this tiny gap is usually related to the PTS/DTS delta of the first video frame.
some browsers use DTS to start counting, some uses PTS. this makes it difficult to overcome in the remuxer.
a better option would be to nudge video.currentTime to cross those tiny holes.
i.e. if we detect that video @ currentTime is not buffered but that there is a buffered range 'not to far' upfront, then we seek to that buffered range ...

from hls.js.

mangui avatar mangui commented on August 19, 2024

http://dailymotion.github.io/hls.js/demo/?src=http%3A%2F%2Fazubuhlsliveto5-i.akamaihd.net%2Fhls%2Flive%2F223502%2Fhls-tokyo-5_1%2Fvideo84224CHhungryapptv%2Fmaster.m3u8 should now work

from hls.js.

AxelDelmas avatar AxelDelmas commented on August 19, 2024

Yes it seems to do the trick. Thanks a lot!

However I'm not sure if this part of the code, that hides those tiny holes, won't prevent this from working if that happens later playback has already started: https://github.com/dailymotion/hls.js/blob/master/src/controller/buffer-controller.js#L425-L431

It seems to me that bufferNextStart should be computed by looping on video.buffered directly, not on buffered2. What do you think?

from hls.js.

mangui avatar mangui commented on August 19, 2024

buffered and buffered2 are identical when calling this.bufferInfo with maxHoleDuration=0
bufferNextStart is only used in that case. so it should not cause any pb. but the comment needs to be reviewed.

from hls.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.