MediaPlayer autoplay not working correctly
Created by: wilaw
There are a number of problems here
- The baseline.html sample calls player.autoPlay = true; when autoPlay is not a property of MediaPlayer. The correct call is player.setAutoPlay(true);
- 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.
- 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