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

MediaPlayer autoplay not working correctly #22

Closed
wilaw opened this issue Jun 21, 2013 · 1 comment
Closed

MediaPlayer autoplay not working correctly #22

wilaw opened this issue Jun 21, 2013 · 1 comment
Labels

Comments

@wilaw
Copy link
Member

wilaw commented Jun 21, 2013

There are a number of problems here

  1. The baseline.html sample calls player.autoPlay = true; when autoPlay is not a property of MediaPlayer. The correct call is player.setAutoPlay(true);
  2. If you use mediaPlayer.setAutoPlay(false), then playback does not autoplay, however it also does not start if the play button is pressed on the video controls.
  3. In MediaPlayer.js, the attachView function hard codes the element autoplay to true. This means that if player.attachView is called after player.setAutoPlay, then the previous autoplay setting is overridden. The order in which the following calls are made against a MediaPlayer instance should not matter

player.attachView
player.setAutoPlay
player.attachSource

@nweber
Copy link
Contributor

nweber commented Sep 4, 2013

This is fixed in my latest pull request, with one caveat... You cannot call both attachSource and attachView BEFORE calling setAutoPlay(false). Because autoPlay defaults to true, if both the view and the source are set the video will autoPlay, as per the correct default setting. I believe this is the correct, expected behavior.

@nweber nweber closed this as completed Sep 4, 2013
phloxic added a commit to phloxic/dash.js that referenced this issue Jul 14, 2017
…SwitchStream, done in composeStreams. The problem is, at this specific time, no StreamProcessor has been built. The return value of this function is always false."

This reverts commit 29c0eff.

To ensure VOD is always played until end (Dash-Industry-Forum#22).
See: Dash-Industry-Forum#1901
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