Open Bug 1568527 Opened 5 years ago Updated 2 years ago

mp3 streamed media are not correctly detected

Categories

(Core :: Audio/Video: Playback, defect, P3)

70 Branch
defect

Tracking

()

People

(Reporter: xaviermd, Assigned: alwu)

Details

Attachments

(1 file)

Attached file test-fx.html

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

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

It looks like Firefox does not understand that this is a live stream, and this is the cause of all the problems.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2

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.

Will check it later, add NI.

Flags: needinfo?(alwu)

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.

FYI, Chrome also continues downloading resource even if the media is paused.

Assignee: nobody → alwu
Flags: needinfo?(alwu)
Priority: P2 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: