Mona Posted November 7, 2021 Share Posted November 7, 2021 Hello all, I want to know how to get all the stream ID lists of conference when conference play in the play.html as the below code, it is checked for conference room ID, I want to check for all the ID that connects to the same conference room webRTCAdaptor = new WebRTCAdaptor({ websocket_url: websocketURL, mediaConstraints: mediaConstraints, peerconnection_config: pc_config, sdp_constraints: sdpConstraints, remoteVideoId: "remoteVideo", isPlayMode: true, debug: true, callback: function (info, description) { if (info == "initialized") { console.log("initialized"); iceConnected = false; webRTCAdaptor.getStreamInfo(streamId); Thank you Link to comment Share on other sites More sharing options...
0 Burak Posted November 8, 2021 Share Posted November 8, 2021 You can call getRoomInfo as webRTCAdaptor.getRoomInfo(roomNameBox.value, publishStreamId); WebRTCAdaptor's callback will be called as: info == "roomInformation" You can check sample usage from: https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/conference.html Link to comment Share on other sites More sharing options...
0 krishnaps Posted August 1, 2022 Share Posted August 1, 2022 @Burak Once we receive a stream using getRoomInfo , is it possible to get the tracks from the streams. In my use case, I do receive the stream id list, but I need to check if the stream has both video and audio track or only audio track. We are using multitrack streams using AMS 2.4.3 version. I tried to use following command, both with RoomId and individual stream Ids for streamId parameter. But the server do not send any message as trackList. { command : "getTrackList", streamId: "stream1", token: "token" } Thanks, Link to comment Share on other sites More sharing options...
0 Burak Posted August 1, 2022 Share Posted August 1, 2022 Hi @krishnaps, To get a response for getTrackList message the streamId you send should be a main track. If you add subtracks (actually Ant Media Server streams) into maintrack (actually another stream) then you can get response. Please check this post: https://antmedia.io/antmediaserver-webrtc-multitrack-playing-feature/ Link to comment Share on other sites More sharing options...
Question
Mona
Hello all,
Link to comment
Share on other sites
Top Posters For This Question
2
1
1
Popular Days
Aug 1
2
Nov 7
1
Nov 8
1
Top Posters For This Question
Burak 2 posts
Mona 1 post
krishnaps 1 post
Popular Days
Aug 1 2022
2 posts
Nov 7 2021
1 post
Nov 8 2021
1 post
3 answers to this question
Recommended Posts