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

how to know... #13

Open
darkpoulpo opened this issue Apr 15, 2013 · 1 comment
Open

how to know... #13

darkpoulpo opened this issue Apr 15, 2013 · 1 comment

Comments

@darkpoulpo
Copy link

hi, how to know if i use RTCMultiConnection() :

  1. if the distant user is using a media communication (audio, video) ?
  2. the user id attached to stream...
  3. if the distant user is connected or disconnected and cut the connection with a specific user?
@muaz-khan
Copy link
Owner

1) if the distant user is using a media communication (audio, video)

Nowadays, without making getUserMedia request; we can't detect camera presence. It will be possible soon. You can use session object to detect target session:

connection.onstream = function (stream) {
    if (stream.session === Session.AudioVideo) {}

    // to check if audio-only session
    if (stream.session.isAudio()) {}

    // to check screen
    if (stream.session === Session.Screen || stream.session === Session.ScreenData) {}
}

To see list of other sessions.

2) the user id attached to stream

This feature is not implemented yet.

3) if the distant user is connected or disconnected and cut the connection with a specific user?

If you meant data channel connection; there are onopen and onclose methods.

If possible; please make a feature request for all things you want to be added in RTCMultiConnection.js library.

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

No branches or pull requests

2 participants