Open Bug 1791982 Opened 2 years ago Updated 2 years ago

HTMLMediaElement: ended event not fire

Categories

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

Firefox 105
defect

Tracking

()

UNCONFIRMED

People

(Reporter: denpong_de, Unassigned, NeedInfo)

Details

Attachments

(2 files)

Attached image image1795.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0

Steps to reproduce:

play video from <video> in html and addEventListener() in js

Actual results:

After video ended addEventListener() and onended not fire, other browser is working properly

Expected results:

addEventListener() and onended fire a event

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Attached file ended test.html

Seems to be working in this test case. Can you provide a sample page where it doesn't work properly?

Flags: needinfo?(denpong_de)

When i test with your video on my website. it working as intended. but my video doesn't work (https://firebasestorage.googleapis.com/v0/b/custom-name-353415.appspot.com/o/gacha.mp4?alt=media&token=e44a88bb-b064-4a3b-9da3-8fe52d8aead1). That weird because in firefox 104 it working fine.

Flags: needinfo?(denpong_de)

We are seeing the same problem. Since 105.0 our tests that rely on the ended event are failing both when using MSE and when using the native Firefox player. This happens on both MacOS and Windows.

Can confirm that we observed the issue as well. Played all content without receiving an ended event in 105, the same video triggers the event fine in 104.

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)

(In reply to Denpong from comment #4)

When i test with your video on my website. it working as intended. but my video doesn't work (https://firebasestorage.googleapis.com/v0/b/custom-name-353415.appspot.com/o/gacha.mp4?alt=media&token=e44a88bb-b064-4a3b-9da3-8fe52d8aead1). That weird because in firefox 104 it working fine.

AFAICT this is just an mp4 without page content. Can you provide a test page where this reproduces?

Flags: needinfo?(jmathies) → needinfo?(denpong_de)
Flags: needinfo?(karlt)

Just an update from my side. It actually seems the issue is not reproducible with 106 (dev version). I just confirmed this by running the same tests on several devices with the Dev 105, and then updating the browsers to the latest 106.
I guess the issue will auto-fix once 106 is released as stable for everyone :)

Severity: -- → S4

I wasn't able to reproduce.
I took attachment 9295826 [details], changed the src attribute to https://firebasestorage.googleapis.com/v0/b/custom-name-353415.appspot.com/o/gacha.mp4?alt=media&token=e44a88bb-b064-4a3b-9da3-8fe52d8aead1, loaded the modified test case in mozregression --repo release --launch 105.0, pressed play, and opened the Web Console to see that the ended event had fired.

Flags: needinfo?(karlt)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: