We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a39057f + 27528e0 commit 80703a0Copy full SHA for 80703a0
src/WebRTC/MediaHandler.js
@@ -22,7 +22,8 @@ var MediaHandler = function(session, options) {
22
'iceFailed',
23
'getDescription',
24
'setDescription',
25
- 'dataChannel'
+ 'dataChannel',
26
+ 'addStream'
27
];
28
options = options || {};
29
@@ -71,6 +72,7 @@ var MediaHandler = function(session, options) {
71
72
this.peerConnection.onaddstream = function(e) {
73
self.logger.log('stream added: '+ e.stream.id);
74
self.render();
75
+ self.emit('addStream', e);
76
};
77
78
this.peerConnection.onremovestream = function(e) {
0 commit comments