|
|
@@ -319,8 +319,8 @@ RTC.prototype.setAudioLevel = function (resource, audioLevel) {
|
|
319
|
319
|
* @param ssrc the ssrc to check.
|
|
320
|
320
|
*/
|
|
321
|
321
|
RTC.prototype.getResourceBySSRC = function (ssrc) {
|
|
322
|
|
- if(ssrc == this.localVideo.getSSRC()
|
|
323
|
|
- || ssrc == this.localAudio.getSSRC()) {
|
|
|
322
|
+ if((this.localVideo && ssrc == this.localVideo.getSSRC())
|
|
|
323
|
+ || (this.localAudio && ssrc == this.localAudio.getSSRC())) {
|
|
324
|
324
|
return Strophe.getResourceFromJid(this.room.myroomjid);
|
|
325
|
325
|
}
|
|
326
|
326
|
|