@videosdk.live/js-sdk
Version:
<h1 align="center"> <img src="https://static.videosdk.live/videosdk_logo_website_black.png"/><br/> <p align="center"> Video SDK for JavaScript<br/> <a href="https://videosdk.live/">videosdk.live</a> </p> </h1>
28 lines (27 loc) • 708 B
TypeScript
export class Stream {
/**
* Id of the stream
*/
id: string;
/**
* @description This represents the type of Stream
*/
kind: 'audio' | 'video' | 'share' | 'shareAudio';
/**
* @description This represents the codec of the stream
*/
codec: string;
/**
* @description This represents the track which can be used to play the audio or video of the participant
*/
track: MediaStreamTrack;
/**
* @description This method can be used to pause the incoming audio stream
*/
pause(): void;
/**
* @description This method can be used to resume the incoming audio stream
*/
resume(): void;
get paused(): any;
}