Skip to content

Conversation

kohver
Copy link

@kohver kohver commented Oct 28, 2013

If I want to create a video I do this:

var myStream;
rtc.createStream({
    'video': {'mandatory': {}, 'optional': []},
    'audio': true
}, function(stream) {
    myStream = stream;
    rtc.attachStream(stream, videoElement);
});

But what should I do if I want to delete this video? Now I can do this:

rtc.detachStream(videoElement);

And remove stream I want too:

rtc.removeStream(myStream);

@killmenot
Copy link

+1

1 similar comment
@addisonbgross
Copy link

+1

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.

3 participants