@@ -77,7 +77,6 @@ export class BandwidthRtc {
7777 // Event handlers
7878 private streamAvailableHandler ?: { ( event : RtcStream ) : void } ;
7979 private streamUnavailableHandler ?: { ( event : RtcStream ) : void } ;
80- private inboundStreamNotificationHandler ?: { ( event : RtcStream ) : void } ;
8180 private readyHandler ?: { ( readyMetadata : ReadyMetadata ) : void } ;
8281
8382 /**
@@ -111,8 +110,8 @@ export class BandwidthRtc {
111110 this . signaling . on ( "sdpOffer" , this . handleSubscribeSdpOffer . bind ( this ) ) ;
112111 this . signaling . on ( "init" , this . init . bind ( this ) ) ;
113112 this . signaling . on ( "streamAvailable" , ( { callId, autoAccepted } : { callId : string ; autoAccepted : boolean } ) => {
114- if ( this . inboundStreamNotificationHandler ) {
115- this . inboundStreamNotificationHandler ( { mediaTypes : [ MediaType . AUDIO ] , callId, autoAccepted } ) ;
113+ if ( this . streamAvailableHandler ) {
114+ this . streamAvailableHandler ( { mediaTypes : [ MediaType . AUDIO ] , callId, autoAccepted } ) ;
116115 }
117116 } ) ;
118117 this . signaling . on ( "streamUnavailable" , ( { callId } : { callId : string } ) => {
@@ -136,23 +135,12 @@ export class BandwidthRtc {
136135
137136 /**
138137 * Set the function that will be called when a subscribed stream becomes available.
139- * The RtcStream passed to the callback always contains a populated mediaStream.
140138 * @param callback callback function
141139 */
142140 onStreamAvailable ( callback : { ( event : RtcStream ) : void } ) : void {
143141 this . streamAvailableHandler = callback ;
144142 }
145143
146- /**
147- * Set the function that will be called when the gateway signals that an inbound
148- * stream is ready to be accepted or declined, before the WebRTC media arrives.
149- * Use this to drive accept/decline UI; mediaStream will be undefined at this point.
150- * @param callback callback function
151- */
152- onInboundStreamNotification ( callback : { ( event : RtcStream ) : void } ) : void {
153- this . inboundStreamNotificationHandler = callback ;
154- }
155-
156144 /**
157145 * Set the function that will be called when a subscribed stream becomes unavailable
158146 * @param callback callback function
0 commit comments