2018-04-26 15:33:47 +02:00
|
|
|
import { VideoInsertMode } from '../../Enums/VideoInsertMode';
|
|
|
|
/**
|
|
|
|
* See [[Session.subscribe]]
|
|
|
|
*/
|
|
|
|
export interface SubscriberProperties {
|
|
|
|
/**
|
|
|
|
* How the video element of the subscriber should be inserted in the DOM
|
|
|
|
* @default VideoInsertMode.APPEND
|
|
|
|
*/
|
2018-04-27 11:08:03 +02:00
|
|
|
insertMode?: VideoInsertMode | string;
|
2018-04-26 15:33:47 +02:00
|
|
|
/**
|
|
|
|
* Whether to initially subscribe to the audio track of the stream or not. You can change the audio state later with [[Subscriber.subscribeToAudio]]
|
|
|
|
* @default true
|
|
|
|
*/
|
|
|
|
subscribeToAudio?: boolean;
|
|
|
|
/**
|
|
|
|
* Whether to initially subscribe to the video track of the stream or not. You can change the video state later with [[Subscriber.subscribeToVideo]]
|
|
|
|
* @default true
|
|
|
|
*/
|
|
|
|
subscribeToVideo?: boolean;
|
|
|
|
}
|