Comments (4)
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.
from hls.js.
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.
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)
- Stop Loading Video Stream HOT 6
- LG C2 OLED Dolby Vision HOT 4
- The video stops for a moment, but the audio continues to play. HOT 10
- does hls.js support data uri for playback? HOT 1
- Allow getting the current URL HOT 4
- CHUNK_DEMUXER_ERROR_APPEND_FAILED when playing HEVC video stream HOT 2
- fragParsingError Demux HOT 1
- HLS fails to stream video with name containing U+3000 character. HOT 2
- Adding HLS subtitles separately HOT 2
- When I start my server and stream from OBS, the video loads ~10 sec backwards. HOT 9
- CMCD "nor" and "d" should return part details during Low-Latency HLS streaming
- The problem of drawing frame images on the canvas HOT 7
- Duplicate Captions for MP4 Content HOT 12
- Can I work with frames or merge fragments before play? HOT 3
- Stream freeze issue on reload HOT 1
- Disabling inflight subtitle playlist prevents segments from ever loading HOT 3
- Google chrome vs H.264 recovery point SEI HOT 1
- Cookies are not sent when requesting a TS HOT 1
- LG C1 WebOS and KONKA A55 WebOS hls.js Dolby Vision does not respond HOT 8
- bitrate hjs.js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hls.js.