Currently I am able to get the real-time video stream of the current active speaker, using this code:
const handshakeMsg = {
msg_type: 3, // DATA_HAND_SHAKE_REQ
protocol_version: 1,
meeting_uuid: meetingUuid,
rtms_stream_id: streamId,
signature,
media_type: 32, // AUDIO+VIDEO+TRANSCRIPT
payload_encryption: false,
media_params: {
audio: {
content_type: 1, //RTP
sample_rate: 1, //16k
channel: 1, //mono
codec: 1, //L16
data_opt: 1, //AUDIO_MIXED_STREAM
send_rate: 100 //in Milliseconds
},
video: {
codec: 7, //H264
data_opt: 3, //VIDEO_SINGLE_ACTIVE_STREAM
resolution: 2, //720p
fps: 25
},
deskshare: {
codec: 5, //JPG,
resolution: 2, //720p
fps: 1
},
chat: {
content_type: 5, //TEXT
},
transcript: {
content_type: 5 //TEXT
}
}
};
Notice that `data_opt: 3` in this code. This basically selects the video stream of the current active speaker.
Is there a way to get the video stream of a specific participant regardless if they are the active speaker or not? Basically select a participant through their participant id?