@videosdk.live/react-native-sdk
Version:
<h1 align="center"> <img src="https://static.videosdk.live/videosdk_logo_website_black.png"/><br/> <p align="center"> Video SDK React Native App <br/> <a href="https://videosdk.live/">videosdk.live</a> </p> </h1>
30 lines (28 loc) • 759 B
TypeScript
import { MediaStreamTrack } from './mediaStream';
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;
}