Skip to content

Music playback breaks when audio device disconnects and is only fixed by page reload. #7595

@Sola85

Description

@Sola85

This issue respects the following points:

  • This issue is not already reported on GitHub (I've searched it).
  • I agree to follow Jellyfin's Code of Conduct.
  • This report addresses only a single issue; If you encounter multiple issues, kindly create separate reports for each one.

Describe the bug

If the audio output device (e.g. bluetooth headphones) disconnects during playback, playback breaks until the page is reloaded. Before reloading, no further (music) media can be started, even if other audio output devices are present and operational.

Reproduction Steps

  1. Start playback of some music file on the web player, with a bluetooth headset as output device.
  2. Disconnect the bluetooth headset forcefully (e.g. by turning it of)
  3. Playback is now broken, only reloading the page fixes playback

Expected/Actual behaviour

Playback should:

  • move over to another audio output device if one is present
  • or pause, but be resumable without reloading the page (this is the current behaviour for video playback).

Media info of the file

Audio
Title: MP3 - Stereo
Codec: MP3
AVC: No
Layout: stereo
Channels: 2 ch
Bitrate: 320 kbps
Sample rate: 44100 Hz
Default: No
Forced: No
External: No

Logs

No new log entries are created when triggering the bug.

FFmpeg logs

No new log entries are created when triggering the bug.

Server version

10.11.6

Web version

10.11.6

Build version

10.11.6

Platform

Windows 11

Browser

Firefox

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplaybackThis PR or issue mainly concerns playback

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions