-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GROUP VIDEO CHAT - audio doesn't work with vid constraints set to false. #7
Comments
web-rtc example works with video:false audio:true just fine so that means it's definitely with a way |
OK so i tried the updated one 'STUN TURN VIDEO' and i can get it to connect for a while then it errors --------HERE IS MY HACKED CODE OF --------------- // Getting references to page DOM for video calling. var remoteVideoEl=[]; var nextavail=0; var localStream,//local audio and video stream /if url has callid wait for other user in list with id to call //custom: check URL for "ch" var, and set the channel accourdingly //if there is no remoteCallID show sharable link to call user. function callRemotePeer(x){ // Get Xirsys ICE (STUN/TURN) function onICE(evt){ //Get local user media
} //Get Xirsys Signaling service //Ready - We have our ICE servers, our Media and our Signaling. function onStopCall() { /* UI METHODS */ //sets local user media to video object. function updateDevices(devices){
} function setSelectedDevices(devices){ /* TOOLS */ function hasMedia(label,tracks){ //gets URL parameters window.onload = () => { |
All I really want is to be able to give a link that atuo joins people to an audio conference. |
Hi @mmvphil, I do apologise; we don't have anyone actively watching the Github comments. Github doesn't send messages direct unless you follow them specifically and it also makes for lousy ticketing software :-) What we do advise is that you post a message to [email protected], which will place the message directly in our tech support platform. Questions are usually answered the same day (or next working day if posted on the weekend). We do pride ourselves in having a very responsive support system, regardless of company size or problem, even if you're using someone else's platform, so I do apologise if you have had a bad experience so far. Let's see if we can rectify that. Regarding your issue, note that we are 100% client agnostic. You do not need a special SDK to work with our platform. We work with ANY WebRTC library or front-end out-of-the-box, providing your platform doesn't require the TURN secret key, long-term credential system. This is typically only used in WebRTC by third-party SFU's. In such circumstances, we can support your needs, but usually only through a dedicated server. In your circumstance, you should be able to get your requirement satisfied with any existing example. I believe your problem lies in still having some video related configuration in your application. The audio plays fine but the video element times out, resulting in your message. I might be slightly off here. I am a TURN server expert, not a WebRTC API expert. My colleagues are probably better off answering this and I will present the problem to them so you have a better response. In the meantime, have you tried: https://www.webrtc-experiment.com/audio-broadcast/#4630474595939506 @muaz-khan is an exceptional coder and most of his examples work with Xirsys out-of-the-box. Regards, |
Lazurus , thank you for the response, Let me state this clearly ..
|
Not sure why github had all bold .. regarding this issue.. if you can't easily make your 'group video chat' work with audio true vid false constraints then there is NO WAY we can. This is not our wheelehouse and webrtc is THE MOST frustrating platform we have ever come accross. It's really shameful that their is NO CONSISTANT solution to a SIMPLE AUDIO CONF ROOM. after 5 years.. yes muaz-khan seems to have some examples that work 'for a while' BUT THE DOCUMENTATION IS ALL OVER THE PLACE |
I understand your frustration. The biggest contributing factor is that WebRTC has only recently hit a public v1.0 status that is agreed upon by all browsers. The API has been in development for some time and so there is a lot of documentation that will no longer be 100% accurate or cross-browser supported. Many of my colleagues will be back at work, today. I will ensure they reach out to you and help you get this issue sorted ASAP. |
Thanks brother.. yeah WEBRTC has such great potential but hard to overcome entrenched closed structure corporations like browsers and telecom oligopolies. |
@mmvphil As Lee guessed the problem you are experiencing is related to the configuration in your application. By default the video elements attached to the DOM for each incoming peer streams are set with an attribute of muted. The muted attribute was set by default to achieve autoplay on iOS/mobile devices. In order to enabled audio only stream on the Group Video Chat application you must not only alter the media constraints but you must also remove the muted attribute set on the remote video element added to the DOM. main.js - line 259:
Since you have already contacted [email protected] we will be sending you a copy of the Group Video Chat application's main.js file which will contain the required alterations in order to make it an Audio Chat application. |
Wow I will try this.. I'm so excited now I'm jumping out of my chair.. thanks! |
FIXED! I saw muted before and my brain registered it on the RECORDING dom not the playing one. |
REGARDING group_video_chat
WHEN we SET
var mediaConstraints = {
audio: true,
video: false
};
then when we connect it connects fine and data is being passed as seen by analytics
HOWEVER no auido.
Is this something to do with autoplay .. this was done on two desktops
What could we adjust in main.js to solve this problem?
The text was updated successfully, but these errors were encountered: