MP3 file become silent when time changed in Firefox with audio API - firefox

I have some problem but I need to give you some context :
I have a production environment with large audio mp3 files. Everything is working perfectly but files are too heavy. I used ffmpeg to reduce their Bitrates from 320kbit/s to 190kbit/s to free space in my disk.
My script worked well and I saved almost 50% of space, but before to put it in production I wanted to test it on pre-production and there is some problem with Firefox...
When I play the audio everything is working good, if I listen to it normally everything is working BUT, when I click on the range to change the time and navigate into the audio, it becomes silent. Nothing happens, I can stop, start again, change the time, nothing works, but the audio is still playing...
I don't have any errors in my console, nothing so the only solution is to reload the page and play again the audio without changing the time.
I tried in chrome and it works like a charm, but in Firefox no. I also tried without any extensions and still the same...
Do you have any idea what is happening?
Thanks a lot!
--- EDIT 14/12/2022 ---
Ok, I have tried a lot of different solutions and I finally found one, it seems firefox doesn't support VBR (variable bitrate) so I've compressed my file in CBR and it seems to finally work ...

Related

Force Youtube to Buffer Whole Video on Pause in the Tab -- issuing with solving (MAC/Chrome)

I use a Starlink in Ukraine from my balcony during blackouts.
Unfortunately, it's Obstructed, so I get something around a minute of stable connection with ±170 megabits per second, then something around up to a minute drop, and then it cycled.
YouTube somewhy caches only a small next amount of the video, so it could not be buffered for a comfortable view -- experiencing issues.
I tried extensions like SmartVideo for YouTube and Youtube Control Center
They couldn't help me to be able to control buffer size as of now with any settings.
I also tried this script, separately and packed it as *.sh,
#!/bin/sh
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disk-cache-size=524288000 &
Still does not buffering further when on pause or on play-only a small near-standing part whatever I try.
Maybe someone has a workaround for this or any other ideas?
Many thanks in advance.
I would recommend you to just download the video itself using yt-dlp for instance. You can use it this way: yt-dlp 'VIDEO_ID'

Video on Firefox Mac extremely sluggish

Even within the simplest html file, a video file is played extremely sluggished (about 8fps) in Firefox Mac. Other browsers/OS work fine. When i use the url of the video directly in the browser, no problem. I happens only when inserted into a html, using a standard html5-video.
Example of video url :
http://maxxhat.com/wp-backend/wp-content/uploads/2018/08/showreel-short.mp4.mp4
Using latest versions of MacOS High Sierra (Version 10.13.6) — Firefox Quantum 61.0.2 (64-bit)
Any idea ?
Thank you!
Ok i got it :
I had two attributes that were slowing it down drastically:
style="filter:brightness(108%);" (used to correct some rgb range interpretation) and... muted !
Beware that removing the muted blocks the video on Chrome. So i ended up building an exception on Firefox to remove the attribute muted.

Firefox HTML5 Audio: Media resource could not be decoded (OnMediaSinkAudioError)

This issue is related to playing media in Firefox. While trying to stream audio after moving workstations, I get the following error in the console:
Media resource [...] could not be decoded [...] NS_ERROR_DOM_MEDIA_MEDIASINK_ERR (0x806e000b) Details: OnMediaSinkAudioError
In this case, it's not down to the website setup or contents of the audio stream, as they were working before.
Searching online for OnMediaSinkAudioError or NS_ERROR_DOM_MEDIA_MEDIASINK_ERR only seem to turn up with code commits or repositories for Firefox itself, so this doesn't appear to be a common problem.
It turns out that in this scenario, the error is quite misleading, since it is caused by a misconfiguration of the Windows audio output device.
After swapping my headphones from the rear audio ports to the front and restarting the workstation, everything worked fine. Restarting Firefox may have also been sufficient.
I had the same problem more than once, this time after showing the Console (on Soundcloud) I saw the NS_ERROR_DOM_MEDIA_MEDIASINK_ERR error logged and googled it to find this SO question. What fixed this issue for me was the 1st solution at drivereasy (restarting the Windows Audio service), without even restarting Windows or Firefox.
Hold Down Windows logo and press R key. A Run dialog box will pop up.
Type services.msc in the run box and click OK button.
In right Services Window, find Windows Audio from the “Name” list and right-click on it. Click Restart in the pop-up menu. Then the audio service will restart.
A cmd oneliner would be net stop AudioSrv && net start AudioSrv, run as Administrator.
If you are using VS CODE Live Server extension, Javascript Audio() won't play sound. Try running the site without the extension.
I was receiving the similar error (Media Resource xxx could not be decoded.) in Firefox 46.0.1 and it turns out, the browser does not support .wav files, it worked fine with mp3 audio files.
I had to use embed element with type="application/x-mplayer2" which triggered vlc component to play the file. We were okay with this work around as we only use this website internally and had to stick to older version of Firefox for some reasons.
Though, the audio wav files worked fine in Google Chrome and Mozilla Firefox latest versions.

Jwplayer not running in Firefox

This problem has been covered many times but none of suggested solutions worked for me so I decided to post this question again with a link to my site.
Please, check a sample webpage: http://miejska.tv/sinfonia-varsovia-zamienia-noc-w-dzien,wywiady,65.html
In chrome everything works 100%, all the time. The JWplayer shows up on the page, files are loaded and played correctly. In Firefox 90% of the time the JWPlayer shows up in half with an error message "error loading player. no playable sources found". Similar situation is with IE. Though problem occurs less often and after page refresh everything works ok.
I have updated the browsers and played with their settings, including change of safe mode of flash in Firefox. In vein.
Maybe there is some other code on the page that causes conflicts with JWPlayer. Maybe the problem lies somewhere else.
Please, have a look and help. Otherwise I'll have to switch to other player as Firefox in my country shares 50% of the market yet.
Witold

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..

Resources