Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.5.0
-
None
-
Chrome 47
Description
The cordova-plugin-camera camera proxy for utilizes a deprecated MediaStream.stop(). On Chrome 47 this throws an exception:
"Uncaught TypeError: localMediaStream.stop is not a function" thrown from CameraProxy.js:69:
// stop video stream, remove video and button
localMediaStream.stop();
According to https://developers.google.com/web/updates/2015/07/mediastream-deprecations?hl=en MediaStream.stop() has been deprecated in favor of MediaStreamTrack.stop(). And the code should be changed accordingly.
I think this should be changed roughly to:
// stop video stream, remove video and button
var tracks = localMediaStream.getTracks();
tracks.forEach(function(track)
)
Attachments
Issue Links
- is duplicated by
-
CB-13742 MediaStream.stop() method has been deprecated as of Chrome 47
- Closed