Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeking to duration causes player stalling #1336

Closed
4 tasks done
yairans opened this issue Sep 7, 2017 · 7 comments
Closed
4 tasks done

Seeking to duration causes player stalling #1336

yairans opened this issue Sep 7, 2017 · 7 comments
Labels

Comments

@yairans
Copy link

yairans commented Sep 7, 2017

Environment
Steps to reproduce

play
select the video tag in the element tab of chrome dev tools.
paste in console: $0.currentTime = $0.duration.

Expected behavior

ended event fired and user can replay

Actual behavior

bufferStalledError error fired. user can't replay.

Console output
$0.currentTime = $0.duration
634.584
logger.js:37 [log] > media seeking to 634.584
logger.js:37 [log] > Parsed audio,PTS:[30.000,40.008],DTS:[30.000/40.008],nb:431,dropped:0
logger.js:37 [log] > Parsed video,PTS:[30.033,40.017],DTS:[30.000/40.000],nb:600,dropped:0
logger.js:37 [log] > main stream:PARSING->PARSED
logger.js:37 [log] > main buffered : [0.000,40.000]
logger.js:37 [log] > latency/loading/parsing/append/kbps:184/1000/204/76/73939
logger.js:37 [log] > main stream:PARSED->IDLE
logger.js:37 [log] > Loading 63 of [0 ,63],level 4, currentTime:634.584,bufferEnd:634.584
logger.js:37 [log] > main stream:IDLE->FRAG_LOADING
logger.js:37 [log] > Loaded  63 of [0 ,63],level 4
logger.js:37 [log] > main stream:FRAG_LOADING->PARSING
logger.js:37 [log] > Parsing 63 of [0 ,63],level 4, cc 0
logger.js:37 [log] > Parsed audio,PTS:[630.014,634.194],DTS:[630.014/634.194],nb:180,dropped:0
logger.js:37 [log] > Parsed video,PTS:[630.033,634.583],DTS:[630.000/634.567],nb:274,dropped:0
logger.js:37 [log] > main stream:PARSING->PARSED
logger.js:37 [log] > main buffered : [0.000,40.000][630.014,634.193]
logger.js:37 [log] > latency/loading/parsing/append/kbps:177/163/33/7/44944
logger.js:37 [log] > main stream:PARSED->IDLE
logger.js:37 [warn] > playback stalling in low buffer @634.584
(anonymous) @ logger.js:37
_checkBuffer @ stream-controller.js:1483
doTick @ stream-controller.js:172
tick @ stream-controller.js:125
setInterval (async)
startLoad @ stream-controller.js:74
(anonymous) @ hls.js:178
startLoad @ hls.js:178
onManifestParsed @ stream-controller.js:896
onEventGeneric @ event-handler.js:65
onEvent @ event-handler.js:53
EventEmitter.emit @ events.js:96
trigger @ hls.js:88
onManifestLoaded @ level-controller.js:125
onEventGeneric @ event-handler.js:65
onEvent @ event-handler.js:53
EventEmitter.emit @ events.js:96
trigger @ hls.js:88
loadsuccess @ playlist-loader.js:530
readystatechange @ xhr-loader.js:121
XMLHttpRequest.send (async)
loadInternal @ xhr-loader.js:84
load @ xhr-loader.js:39
load @ playlist-loader.js:217
onManifestLoading @ playlist-loader.js:166
onEventGeneric @ event-handler.js:65
onEvent @ event-handler.js:53
EventEmitter.emit @ events.js:96
trigger @ hls.js:88
loadSource @ hls.js:173
loadStream @ ?src=https%3A%2F%2Fvideo-dev.github.io%2Fstreams%2Fx36xhzz%2Fx36xhzz.m3u8&enableStreaming=true&autoRecoverError=true&enableWorker=true&dumpfMP4=false&levelCapping=-1&defaultAudioCodec=undefined:285
(anonymous) @ ?src=https%3A%2F%2Fvideo-dev.github.io%2Fstreams%2Fx36xhzz%2Fx36xhzz.m3u8&enableStreaming=true&autoRecoverError=true&enableWorker=true&dumpfMP4=false&levelCapping=-1&defaultAudioCodec=undefined:258
?src=https%3A%2F%2Fvideo-dev.github.io%2Fstreams%2Fx36xhzz%2Fx36xhzz.m3u8&enableStreaming=true&autoRecoverError=true&enableWorker=true&dumpfMP4=false&levelCapping=-1&defaultAudioCodec=undefined:527 {type: "mediaError", details: "bufferStalledError", fatal: false, buffer: 0}
mangui added a commit that referenced this issue Sep 8, 2017
do not expect currentTime to be buffered, just expect last loaded SN to be the last SN, and that no buffered ranges are available after that one

related to #1336
@mangui
Copy link
Member

mangui commented Sep 8, 2017

thanks for reporting, it should be fixed now

@yairans
Copy link
Author

yairans commented Oct 17, 2017

@mangui
Copy link
Member

mangui commented Oct 18, 2017

I was able to reproduce
this looks like a bug in IE11 ... after setting video.currentTime to video.duration video.currentTime keeps increasing and becomes larger than video.duration ...

@yairans
Copy link
Author

yairans commented Oct 18, 2017

But it doesn't occur for progressive download or dash content.
BTW, reproduce also on Edge browser.

Thanks

@yairans
Copy link
Author

yairans commented Mar 18, 2018

@mangui any updates for this issue?

@mangui
Copy link
Member

mangui commented Mar 18, 2018

no

@stale
Copy link

stale bot commented Jun 15, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Wontfix label Jun 15, 2018
@stale stale bot closed this as completed Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants