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

Add stopTracks helper to LocalStream to replace deprecated stream.stop() #390

Closed
wants to merge 1 commit into from

Conversation

dwanghf
Copy link

@dwanghf dwanghf commented Oct 27, 2015

Chrome 47 is deprecating MediaStream.stop(), to be replaced with MediaStreamTrack.stop()

See https://developers.google.com/web/updates/2015/07/mediastream-deprecations?hl=en

track.stop();
})
};

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please indent with four space to keep code consistent.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And we need to check here whether stop method actually exist. As it is not supported in IE.

@damencho
Copy link
Member

It seem its not only the stream stop. I was playing all day with ended/active and onended/oninactive, and changes needed to handle themasys. Seems it is working but several situations still fail when running the tests. Testing with chrome stable, canary, firefox and by hand on safari. I can take the PR and work over it, thanks.

@dwanghf
Copy link
Author

dwanghf commented Oct 29, 2015

@damencho thanks, let me know if I can be of any help

damencho added a commit that referenced this pull request Nov 2, 2015
@damencho
Copy link
Member

damencho commented Nov 2, 2015

Several commits has addressed all the deprecation issues. And were inspired the PR. Closing it as it can be considered merged. 11e1197, 1ba0a18, 8cebbbb, 74227e1, b08308e, fa138ea, 249e032, 67b35f0.

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.

2 participants