File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/media-signaling/src Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ export interface IClientMediaCall {
9797
9898 emitter : Emitter < CallEvents > ;
9999
100- getRemoteMediaStream ( ) : MediaStream ;
100+ getRemoteMediaStream ( ) : MediaStream | null ;
101101
102102 accept ( ) : void ;
103103 reject ( ) : void ;
Original file line number Diff line number Diff line change @@ -438,14 +438,14 @@ export class ClientMediaCall implements IClientMediaCall {
438438 }
439439 }
440440
441- public getRemoteMediaStream ( ) : MediaStream {
441+ public getRemoteMediaStream ( ) : MediaStream | null {
442442 this . config . logger ?. debug ( 'ClientMediaCall.getRemoteMediaStream' ) ;
443- if ( this . hidden ) {
444- this . throwError ( 'getRemoteMediaStream is not available for this call' ) ;
443+ if ( this . hidden || ! this . signed ) {
444+ return null ;
445445 }
446446
447447 if ( this . shouldIgnoreWebRTC ( ) ) {
448- this . throwError ( 'getRemoteMediaStream is not available for this service' ) ;
448+ return null ;
449449 }
450450
451451 this . prepareWebRtcProcessor ( ) ;
You can’t perform that action at this time.
0 commit comments