MrJai / flutter_to_airplay

Flutter plugin that offers two widgets, one to play a video for a given URL or file path using native AVPlayer and second with an option to airplay it on available Apple devices.
MIT License
30 stars 24 forks source link

Is it possible to know if the device is connected? #18

Open lucas-sampaio-fluency opened 2 years ago

lucas-sampaio-fluency commented 2 years ago

Just wondering if its possible to know using this library if the device is connected to AirPlay. If not, is it possible to add this functionality?

MrJai commented 2 years ago

For now it is not possible, but I will look into it.

vanlooverenkoen commented 2 years ago

This is something that I am looking for as well. Because right now my player stops (using video_player instead of the one from this package) but I would like to show custom UI when connected to AirPlay.

@MrJai any idea when we could expect this?

vanlooverenkoen commented 2 years ago

https://developer.apple.com/documentation/avfoundation/avplayer/1388982-externalplaybackactive

Maybe this property can be used?

mansillacr commented 11 months ago

Some solution for this

Stainie commented 6 months ago

Is there any progress on this functionality?