oxyroid / M3UAndroid

Open Source Player, which made of jetpack compose. Android 8.0 and above supported.
https://t.me/m3u_android
Apache License 2.0
216 stars 24 forks source link

Cast stream to external devices #99

Closed iboboc closed 2 months ago

iboboc commented 2 months ago

I am trying to use the casting experimental option (Screencast). On my device, currently, the scan does not stop and a limited/incomplete list is showed. cast2

Expectation is to detect all chromecast devices in the network, like other apps. cast1

There are various resources available, but I assume there is a Google API or proprietary. Eg. VLC: https://github.com/videolan/vlc-3.0/tree/master/modules/stream_out/chromecast Others: https://github.com/vitalidze/chromecast-java-api-v2 https://github.com/TeamNewPipe/PipeCast

oxyroid commented 2 months ago

@iboboc Currently the app support DLNA screencast only, the Chromecast and Airplay are in the roadmap for a long time. However, their priority is low because they may increase the apk size and they are not as versatile as DLNA.

sguinetti commented 2 months ago

I think a simple solution would be to use the "Open as..." button in the selected stream. Then one could open a video app that supports other forms of casting.

Also, I can't say for sure if other forms of casting will be implemented in this app when proprietary libraries would be required (that compromises F-Droid's requirement to keep the source code completely free).

oxyroid commented 2 months ago

@sguinetti Great idea. I have add it in the latest commit. You can visit it in cast bottom sheet.