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

New methods: rtc.detachStream and rtc.removeStream #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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