I have been looking at JS code included with the demo for the 'peer to peer' ("https://test.antmedia.io:5443/WebRTCAppEE/peer.html") as well as some other demo pages. It seems that upon initial navigation to the page the browser prompts me to allow usage of my camera and microphone, obviously indicating a call to "getUserMedia". However upon examination of the page script ...I am not seeing any explicit call of the "getUserMedia" method. Therefore I am curious where this is being made, evidently on the server upon connection via websocket...? Is there a potential over-ride to this behavior? I might rather call the "getUserMedia" myself in my own (adapted) webpage code..possibly.
Also the method "join(streamId)" is being called to join a remote user with the existing stream, however I do not see anything in the JS SDK guide (https://github.com/ant-media/Ant-Media-Server/wiki/WebRTC-JavaScript-SDK-Guide) about its usage. It seems this function is probably performing all the necessary exchange of signalling information with the server however there seems to be no source code anywhere in that SDK guide about exactly what these functions are doing.
In addition, for a peer/peer connection...there should be some sort of logic to determine if there are fewer than 2 connected users (in order to allow a 'join' for example). Again where is this being determined? Is this 'magic' all being performed on the Ant Media server someplace...out of developer view?
Sorry if these are naive questions however I am new to Ant Media and exploring the possibility of utilizing the platform in the near future. I thank you in advance for any information.
Question
pangit
Greetings,
I have been looking at JS code included with the demo for the 'peer to peer' ("https://test.antmedia.io:5443/WebRTCAppEE/peer.html") as well as some other demo pages. It seems that upon initial navigation to the page the browser prompts me to allow usage of my camera and microphone, obviously indicating a call to "getUserMedia". However upon examination of the page script ...I am not seeing any explicit call of the "getUserMedia" method. Therefore I am curious where this is being made, evidently on the server upon connection via websocket...? Is there a potential over-ride to this behavior? I might rather call the "getUserMedia" myself in my own (adapted) webpage code..possibly.
Also the method "
join(streamId)
" is being called to join a remote user with the existing stream, however I do not see anything in the JS SDK guide (https://github.com/ant-media/Ant-Media-Server/wiki/WebRTC-JavaScript-SDK-Guide) about its usage. It seems this function is probably performing all the necessary exchange of signalling information with the server however there seems to be no source code anywhere in that SDK guide about exactly what these functions are doing.In addition, for a peer/peer connection...there should be some sort of logic to determine if there are fewer than 2 connected users (in order to allow a 'join' for example). Again where is this being determined? Is this 'magic' all being performed on the Ant Media server someplace...out of developer view?
Sorry if these are naive questions however I am new to Ant Media and exploring the possibility of utilizing the platform in the near future. I thank you in advance for any information.
Regards
Link to comment
Share on other sites
Top Posters For This Question
2
1
Popular Days
Mar 21
2
Mar 24
1
Top Posters For This Question
pangit 2 posts
Selim 1 post
Popular Days
Mar 21 2022
2 posts
Mar 24 2022
1 post
Popular Posts
pangit
Greetings, I have been looking at JS code included with the demo for the 'peer to peer' ("https://test.antmedia.io:5443/WebRTCAppEE/peer.html") as well as some other demo pages. It seems that
Selim
Hi Pangit, Have a good day. Let me explain it. When WebSocket communication is started there is some processes working on js/webrtc_adaptor.js file. Please check below links: https://gi
2 answers to this question
Recommended Posts