- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi dear:
we have faced the big problem by using the java script API,below is the sample code.
p2p.on('stream-added',function(e){ // A remote stream is available.
if(e.stream.isScreen()){
$('#screen video').show();
attachMediaStream($('#screen video').get(0),e.stream.mediaStream); // Show remote screen stream.
} else if(e.stream.hasVideo()) {
$('#remote video').show();
attachMediaStream($('#remote video').get(0),e.stream.mediaStream); // Show remote video stream.
}
isVideo++;
});
our question is: how to get the senderID in this event?
we have tried to use e.stream.id(), but it return null.
- Tags:
- HTML5
- JavaScript*
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just try e.stream.from.
Thanks!
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page