HTML5 audio stopping automatically before reaching its duration in Chrome - html

I have an Angular 2 project in production for a while and I've been informed that lately some functions are not working properly in Chrome. Safari works fine.
After some investigation I realized that the problem is that audio elements "ended" events are not being fired.
I'm printing the currentTime / Duration and all of them automatically stop short at a random percentage of completion.
e.g.
I'm completely lost on what might be suddenly causing this. Any ideas?
let el = <HTMLMediaElement>document.getElementById(id);
this.audio.src = <string>(<HTMLSourceElement>el.children[0].getAttribute("src"));
this.audio.load();
this.audio.play();
this.audio.onended = function() {
...// THIS NEVER RUNS
}
this.audio.ontimeupdate = function() {
console.log(this.currentTime, this.duration);
...// THIS DOES BUT currentTime never reaches duration
}
UPDATE:
I was testing with Chrome latest version 64.0.3282.140 at the moment and when I downgraded to version 63 the problem went away...

This was caused by a bug in a Chrome update that makes its audio player behave this way when reproducing "damaged" mp3 files.
It is discussed more in depth here and on this stackoverflow thread.
Recommended ways to fix the files are:
mp3val -f (didn't work for me)
Reencode with lame command (did work for me)
According to the chromium bug thread it will be fixed in version 66.

Related

Video Freeze in Chrome after 1-2 minutes in webRTC, working fine in firefox

When i wrote the code 6-7 months back everything was working, with no issues what so ever. But recently when i tested it, In Chrome specifically video freezes after some time.
Calling from Android implementation.
Call is working fine in firefox, safari.
If both devices are on same broadband, the issue happens about 1-2 minutes later, if anyone on 4G or cellular it happens instantly. My best guess is that chrome skips one frame to encode, and the drops all coming frames.
Here is a screenshot of webRTC internals sending video graph, after it dropped, you can clearly see the drop in 'sending bytes' and 'constant line' in encoded frames.
I don't even have any idea about how to debug this, any help is very appreciated. Thanks
How does the peerconnections iceconnectionstate look like? Does it go to disconnected and (after some time) to failed?
See https://testrtc.com/webrtc-api-trace/ for an explanation for that part of webrtc-internals.
I faced the same issue and as far as I know, this is a bug in Google Chrome version 56 and above. You can try downloading Google Chrome version below 56 it will work on the downgraded version. There are numerous bug reports filed with this bug and the interesting part is it is reproducible on Android's Google Chrome Application with version 61 and above.
Check out the following bug reports.
video Freezes on Google Chrome
Android Chrome 61, video freezes after connecting
Chrome 61 on Android 6.01 or 7.0 Received Video Freezes
Video freezing issues

Media Source Extension on Firefox and IE

I'm creating a Audio Player with HTML5, using the MediaSource Object.
My code is similar to MediaSource API Demo
But when executing the line
var ms = new MediaSource();
And exception is throwed on Firefox and Internet Explorer
ReferenceError: MediaSource is not defined
In Firefox Support says that this feature is only enabled to Youtube and Netflix.
There is a way to handle this restriction?
In Chrome, I have not problem!
At time of writing, IE11 only has support when run on Windows 8.1 or above.
Firefox will only enable MSE when about:config param media.mediasource.enabled = true (this restriction will be removed eventually, once the FF implementation is globally stable). There is no way around this, so unless you are YouTube or Netflix, consider Firefox MSE as coming soon.
Firefox has been lagging behind quite badly when it comes to MSE support in their browser. Firefox Nightly build however now seems to be pretty close to working properly. It still has to go through nightly build and beta phase before it's released to the public, so expect a few months.

Chrome 40, CSS3 animations become broken overtime

I'm experiencing a strange issue.
When I open Chrome 40 I get very CSS3 smooth animations. After some arbitrary number of animations or page reloads, animations start to decrease their FPS (i.e. frames per second) until they become absolutely broken (no animation).
If I reboot the machine, the issue is solved for some time until it happens again.
Furthermore, I've verified GPU acceleration is ok reviewing chrome://gpu status page, and it's everything ok excepting it warns about the following issue:
Some drivers are unable to reset the D3D device in the GPU process
sandbox
I've also tried this on Chromium 42 and it's not having the issue, but because I'm developing an Apache Cordova app and I'm using Apache Ripple to work on app's layout, I need also --disable-web-security flag on Chrome to enable cross-origin AJAX requests to get the same behavior than the actual app on Android, and Chromium 42 accepts the whole flag, but it has no effect, thus I still need to use Chrome.
Does anyone experienced this issue and has solved it?
Also...
I've also tried to update to Chrome 41 beta and I get the same issue...

URL slideshow add-on/plugin/application with timer AND auto refresh

I am looking for a plugin/add-on for any web browser which lets me start a slideshow of various websites. E.g. show http://page1.com for 10 seconds, then show http://page2.com for 10 seconds, then page1.com again and so on and so on, in a loop.
I've found plugins doing just this, "Tab slideshow" for Firefox and another similar for Chrome.
However, the page needs to refresh when it is to be shown again.
Is there a plugin/add-on or why not a standalone application for Windows that can do this?
Thanks in advance,
W
There's an extension to Firefox called Flem that does this pretty well. https://addons.mozilla.org/en-US/firefox/addon/flem/
It's not supported anylonger in the latest firefox versions but I found a similar one for chrome called URL Loader: https://chrome.google.com/webstore/detail/url-loader/pehlobngallbbadijocicdimmcpcckhl/related

Flash object is not working after update of google chrome

Today google chrome updated to last version, before that update the website was working without any problem. It's working on firefox and internet explorer without any problem though.
What's wrong with google chrome ?
http://www.mersin-mezitli-satilik-daire.com/3-boyutlu-sanal-tur-mersin-mezitli-satilik-daire.php?iframe=3&anasayfa=1
This issue may be caused by the dreaded 'Pepper' Flash Player, which has also been breaking Flash content for me in Chrome.
I don't know what the solution is for your broader audience of Chrome visitors, but to fix the problem locally:
In a new tab, go to the URL: chrome://plugins/
Find the entry for 'Flash' and expand [+] Details if not already expanded
Look for the entry where the location of the plugin ends: ...PepperFlash\pepflashplayer.dll and click 'Disable'
You will hopefully have at least one other instance of Flash Player installed (if not, try installing a debug player from Adobe's website), and enable one of these.
I should mention, the Pepper Flash Player seems to regularly re-enable itself, possibly whenever Chome auto-updates itself, and I find myself having to repeat this process every couple of days.