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

ScheduleController 'start denied' #2551

Closed
jakubfrydrych opened this issue Apr 25, 2018 · 7 comments
Closed

ScheduleController 'start denied' #2551

jakubfrydrych opened this issue Apr 25, 2018 · 7 comments
Milestone

Comments

@jakubfrydrych
Copy link

Hi,
I'm trying to play an extra short video, 0.1 seconds duration.
Player does not work and ScheduleController returns logging 'start denied'.
Player end event will not be triggered.

I tried this on the demo page https://videojs.github.io/videojs-contrib-dash/

Output from console:
[219] [ScheduleController][ video ] stop
[221] [ScheduleController] Stream is complete
[404] Got enough buffer to start for video
[1898] Native video element event: play
[1899] [StreamController][onPlaybackStarted]
[1899] [ScheduleController][ video ] start denied

Source video on url:
https://prima-vod-prep.ssl.cdn.cra.cz/test/_definst_/prima/0000/1516/cze-sd1-T41NgApU.smil/manifest.mpd

Thanks for reply,
Jakub

@epiclabsDASH
Copy link
Contributor

Hi @jakubfrydrych, that issue is not reproducible in latest version of dash.js although I got another one. Independently of implementing a fix, is this a real use case? Videos of 0.1 seconds doesn't seem "usable".

@jakubfrydrych
Copy link
Author

Hi @epiclabsDASH,
how do you think it is not reproducible? I tried it on version 2.6.7 and the result seems the same.

The usecase is such that a number of preroll ads are played, and when the player event ends, player reinitializes with another set of preroll ads. A video with a length of 0.1sec serves to complete full playback, including sending all events.

@epiclabsDASH epiclabsDASH added this to the 2.8 milestone Apr 28, 2018
@epiclabsDASH
Copy link
Contributor

@jakubfrydrych, just trying in dash reference player. I don't get any issue when testing your stream.

@epiclabsDASH epiclabsDASH modified the milestones: 2.7, 2.8 May 23, 2018
@dvdobrovolskiy
Copy link

Got this in 2.7.0

[834306] [StreamController][onPlaybackStarted]
dash.all.min.js?ver=1.0:18 [834306] [ScheduleController][ video ] start denied
dash.all.min.js?ver=1.0:18 [834306] Native video element event: waiting
dash.all.min.js?ver=1.0:18 [838716] Native video element event: pause
dash.all.min.js?ver=1.0:18 [838717] [StreamController][onPlaybackPaused]
dash.all.min.js?ver=1.0:18 [879981] Native video element event: play
dash.all.min.js?ver=1.0:18 [879981] [StreamController][onPlaybackStarted]
dash.all.min.js?ver=1.0:18 [879981] [ScheduleController][ video ] start denied
dash.all.min.js?ver=1.0:18 [879981] Native video element event: waiting
dash.all.min.js?ver=1.0:18 [892716] Native video element event: pause
dash.all.min.js?ver=1.0:18 [892716] [StreamController][onPlaybackPaused]
dash.all.min.js?ver=1.0:18 [945027] Native video element event: play
dash.all.min.js?ver=1.0:18 [945027] [StreamController][onPlaybackStarted]
dash.all.min.js?ver=1.0:18 [945027] [ScheduleController][ video ] start denied
dash.all.min.js?ver=1.0:18 [945027] Native video element event: waiting

Also I trying to find out why PLAYBACK_ENDED not fired. Non of solution mentioned in previous issued helped

player.on(dashjs.MediaPlayer.events.PLAYBACK_ENDED, function (e) {
console.log("End");
});

@mvirbicianskas
Copy link

it could be reproducible if you load some static file and have <video loop /> attribute in there

@epiclabsDASH
Copy link
Contributor

Hi @dvdobrovolskiy, @mvirbicianskas. Issue is fixed in dash.js v3 (#3003). It is not a easy to test stream but in the new version end event is raised after "playing" 0.1 seconds (of black screen?) and then playback restart.

Could you please test it using this url http://dashjsv3.surge.sh/samples/dash-if-reference-player/index.html and let me know if you are ok with the result?

@PolynomialDivision
Copy link

Hmmm, I facing the same problem:

twitchtv/acm-mmsys-2020-grand-challenge#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants