Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(copy): support copying MediaStream object #16061

Closed
wants to merge 1 commit into from

Conversation

m-amr
Copy link
Contributor

@m-amr m-amr commented Jun 17, 2017

use MediaStream clone method to clone mediastream object

Closes #16055

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug, fix Issue #16055

What is the current behavior? (You can also link to an open issue here)
angular.copy does not work with (Local)MediaStream objects. This affects the watchability of objects that contain such an object.

What is the new behavior (if this is a feature change)?
copy MediaStream object using MediaStream.clone() based on documentation
https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/clone

Does this PR introduce a breaking change?
No

Please check if the PR fulfills these requirements

Other information:

@m-amr m-amr force-pushed the support_copy_mediastreem branch 3 times, most recently from a13e362 to dd53058 Compare June 17, 2017 11:35
use MediaStream clone method to clone mediastream object

Closes angular#16055
Copy link
Member

@gkalpak gkalpak left a comment

Choose a reason for hiding this comment

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

Besides the failing tests, I don't think this is a good idea. See #16055 (comment).

@@ -603,6 +603,18 @@ describe('angular', function() {
/* eslint-enable */
});

it('should copy media stream objects', function() {
var source = new MediaStream();
Copy link
Member

Choose a reason for hiding this comment

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

Not all browsers support MediaStream (which seems to cause Travis to fail).

@gkalpak gkalpak added this to the Ice Box milestone Jul 3, 2017
Narretz added a commit to Narretz/angular.js that referenced this pull request Jan 14, 2019
Narretz added a commit to Narretz/angular.js that referenced this pull request Jan 14, 2019
Narretz added a commit to Narretz/angular.js that referenced this pull request Jan 14, 2019
Narretz added a commit to Narretz/angular.js that referenced this pull request Jan 21, 2019
@Narretz Narretz closed this in 63796d3 Jan 21, 2019
Narretz added a commit that referenced this pull request Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

angular.copy does not support MediaStream object
3 participants