@100mslive/hms-video-store
Version:
@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow
15 lines (14 loc) • 703 B
TypeScript
import { HMSTrack } from '../../media/tracks/HMSTrack';
import IConnectionObserver from '../IConnectionObserver';
export default interface ISubscribeConnectionObserver extends IConnectionObserver {
/** Triggered when a remote peer opens a DataChannel.
* Internally there is a data channel with label [API_DATA_CHANNEL]
* which is internally.
*
* TODO: Notify about all the other data channels to the sdk-layer */
onApiChannelMessage(message: string): void;
/** Triggered when media is received on a new streams from remote peer. */
onTrackAdd(track: HMSTrack): void;
/** Triggered when a remote peer close a streams.*/
onTrackRemove(track: HMSTrack): void;
}