androidx / androidx/media

Video playback freezes when HDMI is unplugged and plugged back (Media3 Player)

Open
#2,326 0 comments 0 reactions 1 assignee View on GitHub

@marcbaechinger is already working on this.

Since Apr 14, 2025.

needs triage question
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Description:
I am experiencing an issue with Media3 player on Android TV, where the video playback freezes when the HDMI cable is unplugged and then plugged back in.

The issue is reproducible every time:

  • Start video playback (UDP multicast stream)
  • Unplug HDMI
  • Plug HDMI back in

Expected: Playback should continue normally
Actual: Player freezes, no recovery happens automatically, even sometimes player closes/ released

See the attached log file,on hdmi plugged out and plugged in back to device.
hdmi_in_out_media3.txt

i also see these logs from decoder when hdmi is disconnected:

04-09 19:19:32.976   460 25479 W bomx_video_decoder: Dropping outstanding frame 43148 still owned by client - flushing
04-09 19:19:32.976   460 25479 W bomx_video_decoder: Dropping outstanding frame 43149 still owned by client - flushing
04-09 19:19:32.976   460 25479 W bomx_video_decoder: Dropping outstanding frame 43150 still owned by client - flushing
04-09 19:19:32.978   460 25479 W bomx_video_decoder: Dropping outstanding frame 43151 still owned by client - flushing
04-09 19:19:32.978   460 25479 W bomx_video_decoder: Dropping outstanding frame 43152 still owned by client - flushing
04-09 19:19:32.978   460 25479 W bomx_video_decoder: Dropping outstanding frame 43153 still owned by client - flushing
04-09 19:19:32.978   460 25479 W bomx_video_decoder: Dropping outstanding frame 43154 still owned by client - flushing
``

This is happening consistently, and requires app restart to recover.

Reproduction steps:

1. Start app, initiate video playback
3. Unplug HDMI cable
5. Plug HDMI cable back in

Observe: video does not resume, freezes and sometime exits the player

Device:

Android TV 

Media3 version:  1.5.1 and 1.6.0 ( tried on both)


Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.