Screeching Feedback sound in Node.js - socket.io

I implementing webRTC with socket.io with for signaling, but earlier as soon as I opened the URL it used to give screeching sound, but then after some research, I added a muted attribute in the local video tag so it got fixed but now when I call someone then both the browser have a high pitched screeching sound(less on macOS chrome and more on android chrome), the code which I using as a basis is from this tutorial, I modified the code on line 148 to have audio: true and the HTML video tag for the local video to have muted, rest of the code is exactly same as the repo.
I have read a lot of articles on it but I am not able to find a solution to the screeching. Any help would be appreciated, Thanks.

If both the devices are near to each other, then it causes this sound. If you move the devices far away, then there won't be screeching sound...
This happens with other video chat applications like zoom and google-meet also...

Related

Why does youtube video work fast on Chrome than firefox?

As a java UI & Backend developer for past 10 years, What surprises me is the following browser behavior :
Firefox : I click on a related video (youtube website) and it takes some time to figure out the video and then buffering starts for the video.
Chrome : I click on a related video (youtube website) and it starts as if it was already buffering or buffer ready. This is surprising as there is no delay.
(note: If you have a very fast connection, you may not notice it. Slow it down by some parallel network related activity and then experiment)
My Concern is : Is Chrome browser programmed to preload some data related to youtube related videos to give a faster experience?
Google owns youtube and it makes sense for doing so.
But doing so,seems weird. Its like unusual customization for a particular website from a sea of websites.
Anyone knows a thing or two about it?
I noticed that when you install firefox you have to install flash manually, while chrome does not require that, i think it comes with it, or does not use flash at all. It might have something to do with that..

Can I get the video file in Camera roll on window phone?

As I know, there is no way to get the video file in the camera roll.
But recently I did it when using updated WhatsApp.
Wahtsapp supportes video file uploading which is not in saved IsolatedStroage in wp7/wp8 devices.
How did it?
Now I'm researching but can't find.
Please help me.
There is still no documented API for loading existing videos.
From WPCentral:
The ability to send videos has been in WhatsApp for quite some time,
but an OS limitation prevented the app from accessing the media
library to fetch pre-recorded videos. Since early 2013 though, Nokia
has been working with the WhatsApp developers and it looks like it
paid off to have friends in high places. Through Nokia’s assistance
(and indirectly, Microsoft’s), WhatsApp now has permission to grab
videos from your library to send to friends.

How would I keep a ChromeCast Chrome tab alive?

I have a status page (a la Google Analytics) that I want to stream to my screen via ChromeCast. The problem I'm running into is that after 10 or 15 minutes, my ChromeCast cuts off the connection and goes back to the ChromeCast screen rather than continue casting from my status board. I already tried having the page refresh automatically, but apparently that's not good enough.
Ideally I just want to do this via a Chrome tab without having to create an entire application, but I'm willing to do so if necessary. I don't see anything in the docs to suggest that this is possible, though.
Ideas?
Is the screen you are casting a static one in which no UI change happens or there are elements that change on the UI?
I'm not sure what the cause is; but I think casting a tab here might be overkill, and not using it might fix your issue.
Casting a tab basically encodes what's visible into a video stream and streams it over your network to the Chromecast. This uses significant resources encoding the video on your PC, network transfer of a video stream, decoding on the Chromecast.
If the app is already web-based, it would be much better to get the Chromecast to just render it natively (this avoids encoding anything to a video stream, and removes the need for your PC to be on completely).
I'm still waiting for my Chromecast to be whitelisted so I can't test it; but I suspect it would be trivial to be able to get the Chromecast to display a "status page" natively with just a little HTML and JS on your PC to "launch" it, and a tiny wrapper for the receiver.

HTML5 audio cross browser comtability

I work for a company and am trying to make a new demo page. I would love to dumb down the page to exactly what is not working, but unfortunately it is tied to a variety of scripts on my server, as well as AJAX requests that have to go to the same domain name. I will describe the going ons as well as possible however.
Essentially, my session code is working almost as expected. This is not where the problems lie. The problem is that the audio played after doing a "Say It" button click works as expected in Chrome,but firefox plays only the first audio request, even after subsequent ones with different text, and nothing is played in internet explorer. The relevant code is all in the head section where a group of three functions control all of what is going on. formSubmit() is called when "Say It" button is hit, onAudioLoad() is called once the audio has been loaded, and limitText() does, well, it limits the amount of text people can put in.
So formSumbmit() sends an AJAX request to my server script which returns one of two things:
1) HTML5 audio tag with the source elements with correct src attributes
or
2) A p element saying that your session has expired.
I am simply trying to get the audio to play without the horrible echo (which may or may not be caused by the actual mp3/ogg conversion software) and to have it work as expected on all browsers.
onAudioLoad sends a request to delete the audio, to avoid people stealing our product too easily :D
Expected behavior:
Whatever text is present in the demo text area will be sent server-side to be synthesized, and then the audio will be played through the client's speakers.
If you have any further questions I will be checking back here periodically.
Here is the URL of the demo:
http://www.cepstral.com/demos/temp/cepstral_tts_demo.php
Thank you for any and all help.
Ultimate Question:
Why does this work as expected in Chrome but not in Firefox 11 and IE9?
In firefox it will play only the first audio request.
In IE9 no audio is played.
I am aware that the audio is never going to be safe. We are just trying to make it more difficult for common users.
After trying to find out what was going on and having contact in chat (transcript) I've come to the following conclusion: it's an caching issue.
When trying to change text in FF and requesting a new soundfile it still plays the old sound. By checking the requests and responses it looks like you are always responding with the same filename (for the audiofile) although the sound itself is different.
When downloading that soundfile or opening it in a new tab and refresh it without cache it plays the correct sound (with the new text), so I'm pretty sure about the caching.
You should find out a way to return unique filenames for different texts to prevent browser playing the cached versions.
The same applies when testing it on IE on my machine.
EDIT by OP
Wanted to add that the reason it was not working on my IE appears to be that I am using Windows 7 N. Noted in the release notes for IE9 is the fact that Windows 7 N requires special updates to play HTML5 video. They do not mention HTML5 audio, but it is my assumption that this is the problem.

safari mac wont stream HTML5 video

I am having a very frustrating issue with HTMl5 video and safari/mac.
I am using html5 video throughout the site where needed and it works/plays on every browsers bar safari on a mac (its fine on safari windows and chrome mac for example)
The videos dont stream and only play once the entire file is downloaded. At first I thought it may be to do with the index of the file being at the end and not the beginning (link html5 video = safari wants to download it all) so i tried qtindexswapper but when loading the MP4 into the program it said the MOOV/Index was in the correct position.
Anyone have any idea why safari mac has this issue?
A.
I've seen HTML5 be very picky with videos. They may play fine in a player, but not play or maybe play with no audio once embedded. This is usually due to a video not properly created/formatted. In most cases, re-creating the file in a professional level program alleviates the issue.

Resources