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

Don't set initialized flag to false in MediaPlayer.reset() #2016

Merged
merged 1 commit into from
Jun 19, 2017

Conversation

robertbryer
Copy link
Contributor

It's not true that the media player isn't initialised after calling reset() - it's in exactly the same state as calling initialize() with no arguments. It's still in a valid initialized state and possible to call attachView(), attachSource() and playback afterwards.

@nicosang
Copy link
Contributor

@robertbryer you 're right. I did a mistake. After a call to reset, the main app has to call attachView, and attachSource : the stream will start. The only issue is that, in this state, the main app can't call initialize with videoElement and source parameters. It could be interesting to throw, for this special case(after a call to reset, a call to initialize with parameters), an error....

@dsparacio dsparacio merged commit dfd5de1 into Dash-Industry-Forum:development Jun 19, 2017
@robertbryer robertbryer deleted the mediaPlayerReset branch June 27, 2017 11:34
@dpieri
Copy link
Contributor

dpieri commented Oct 2, 2017

This change was reverted as part of a refactor commit in #2007 (3abca12)

The behavior still exists in version 2.6.0, though this PR is referenced in the changelog for 2.6.0.

Edit: Fix #2205

dpieri added a commit to dpieri/dash.js that referenced this pull request Oct 2, 2017
…d flag to false in MediaPlayer.reset() )

This intended change from Dash-Industry-Forum#2016 was reverted as part of a refactor Dash-Industry-Forum#2007 (Dash-Industry-Forum@3abca12)

Dash-Industry-Forum#2016
epiclabsDASH added a commit that referenced this pull request Oct 3, 2017
Bring back change from #2016 (Don't set initialized flag to false in MediaPlayer.reset() )
siropeich pushed a commit to siropeich/dash.js that referenced this pull request Oct 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants