The media stream track associated with the resumed consumer.
Param: options.kind
The type of media ('audio' or 'video') being resumed.
Param: options.remoteProducerId
The ID of the remote producer associated with the resumed consumer.
Param: options.params
Additional parameters related to the resumed consumer.
Param: options.parameters
The parameters object containing various utility functions and state.
Param: options.nsock
The socket associated with the consumer.
Param: options.consumer
The consumer to resume.
Throws
Will throw an error if an issue occurs during the consumer resumption.
Example
constoptions = { track:mediaStreamTrack, // MediaStreamTrack to be resumed remoteProducerId:'producer-id', // Remote producer ID params: { id:'consumer-id', producerId:'producer-id', kind:'audio', rtpParameters: {}, }, parameters:consumerResumeParameters, // Parameters for the consumer nsock:socket, // Socket for communication consumer:consumer, // Consumer to resume };
Resumes a consumer, making it ready for use.
Param: options
The options for resuming the consumer.
Param: options.track
The media stream track associated with the resumed consumer.
Param: options.kind
The type of media ('audio' or 'video') being resumed.
Param: options.remoteProducerId
The ID of the remote producer associated with the resumed consumer.
Param: options.params
Additional parameters related to the resumed consumer.
Param: options.parameters
The parameters object containing various utility functions and state.
Param: options.nsock
The socket associated with the consumer.
Param: options.consumer
The consumer to resume.
Throws
Will throw an error if an issue occurs during the consumer resumption.
Example