mp3 streamed media are not correctly detected
Categories
(Core :: Audio/Video: Playback, defect, P3)
Tracking
()
People
(Reporter: xaviermd, Assigned: alwu)
Details
Attachments
(1 file)
125 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0
Steps to reproduce:
On a website, I have a mp3 with direct source to the stream. Trying to play/pause/reload the page (and also some javascript toying)
Actual results:
1 - audio.duration changes as long the stream is downloaded
2 - when paused after playing, the media is continuing to be buffered/downloaded
3 - reload the page will create lot of misbehaviour, as mangled audio with a new part of the stream or unable to play furthermore (play 4 seconds, then reload the page, and try to listen more than 5 seconds). Console error says :
«
La ressource multimédia http://stream.radio-fmr.net:8000/radio-fmr.mp3 n’a pas pu être décodée, erreur : Error Code: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004)
Details: virtual mozilla::MediaResult mozilla::FFmpegAudioDecoder<57>::DoDecode(mozilla::MediaRawData *, uint8_t *, int, bool *, mozilla::MediaDataDecoder::DecodedData &): FFmpeg audio error:-1094995529
»
Problem occurs both on Nightly and main Firefox on Linux
Expected results:
As for AAC streamed content with direct link (not impacted),
1 - audio.duration should be set to Infinity
2 - it should not continue to download the file after the audio is paused
3 - on refresh page, it should start
Updated•6 years ago
|
Comment 1•6 years ago
|
||
It looks like Firefox does not understand that this is a live stream, and this is the cause of all the problems.
Comment 2•6 years ago
|
||
This stream is weird, it does not start with what I would expect for an mp3 (fffd
in hex). ffprobe
agrees, it always say "skipping x bytes of junk at 0".
It's however correctly set as a live stream here:
https://searchfox.org/mozilla-central/source/dom/media/ChannelMediaResource.cpp#528, because it has no size, but then something else comes up and we start updating the duration.
Assignee | ||
Comment 4•6 years ago
•
|
||
I have been aware of that there are some exact the same error happened on the try server recently, I wonder whether there is a regression bug causing this error.
Assignee | ||
Comment 5•6 years ago
|
||
FYI, Chrome also continues downloading resource even if the media is paused.
Assignee | ||
Updated•6 years ago
|
Updated•2 years ago
|
Description
•