Skip to content

Media unloads/stops when scrolled out of view #11160

@marrus-sh

Description

@marrus-sh

Expected behaviour

Audio should be playable in the background while scrolling oneʼs timeline.

Media elements should not be unloaded when they have sound and are currently playing.

Actual behaviour

When the media element scrolls out of view, the element is unloaded, and so audio playback stops.

Steps to reproduce the problem

  1. Find an audio post
  2. Play the audio
  3. Scroll the timeline so that the audio is well outside of the visible area.

The audio playback stops and the playback position is reset, implying that the media element was removed.

Specifications

Mastodon v2.9.2, tested with the single­‑column layout.

Other notes

It would be nice if there was a button to quickly scroll to the currently playing media element, in a timeline but that probably depends on #7636.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions