Skip to content

m3u8 livestream often initializes playing only audio, component missing in DOM #6310

Description

@oe1rfc

Describe the bug

Especially in Firefox, the video player starts playing an m3u8 livestream (on the same domain), but the video is not or only very briefly (<<1sec) shown.
Instead, the message Restart livestream is visible, while audio is playing in the background. If Restart livestream is clicked, the component initializes a second time successfully with video - leading to audio being played twice with a short delay.

The following warning is logged in the console: VIDEOJS: WARN: The element supplied is not included in the DOM

When debugging this a bit, it looks like the whole os-video-player component is missing from the DOM and ngOnDestroy() is called shortly after ngAfterViewInit(), but before the videojs player was initialized, though I could not find out why the component was destroyed in the first place.

Firefox seems to trigger it almost every time, but I also managed to trigger the issue in Chromium with a few reloads.

How to Reproduce

  1. set a livestream URL to a m3u8 URL
  2. (re-)load the page with an active livestream

Expected behavior
The video-player initializes successfully at page load, playing audio and (visible) video.

Running release: 4.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions