Skip to content

Updating Media from 1.8.2 to 1.9.X makes casting not work #3080

@ziem

Description

@ziem

Hello!
I recently updated a project from 1.8.0 to 1.9.1. Unfortunately, it makes casting not work. By not working, I mean:

  • I play a video on my phone
  • I click the cast icon
  • I select the cast device
  • video surface becomes black (I can still hear audio)
  • the cast device starts showing the app name
  • and that's it, the playback (audio) continues to play on the device with black screen and the cast device only shows the app name

I'm using the CompositePlayer concept similar to the one in the following gist:
https://gist.github.com/NielsMasdorp/d22c9286aa1bd3e1629258d156e7c6e2#file-media3composite-kt-L87

I've just bumped the library; I have not migrated to the new RemoteCastPlayer. I'm still using the deprecated CastPlayer constructor.

All versions, including 1.9.0, 1.9.1, and 1.9.2, have the same issues. I have browsed the changelog, but my impression was that the previous behavior is preserved when using the deprecated constructor.

1.8.0 works fine.

Is there anything more that I may be missing that could cause the issue to appear?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions