I am looking into using Flutter for a cross-platform app project, however I need functionality to hand off a video playing in-app to a TV – Apple TV, if user has an iPhone, and Samsung TV if on Android. It's similar to how the YouTube app can switch playing to a Smart TV, by clicking app in nav bar (see screenshots below).


Any help or advice would be great :)
If this is simply a question of IF flutter can do this, it most certainly can. You have access to MethodChannels which allow you to create hooks directly with the native platform and create plugins for your app. A quick search on pubdev showed that there didn't appear to be an airplay plugin already made but there was something for chromecast. However, it's noted that it is under development (doesn't look like development has continued though). This could give you a starting point on how to create a plug in with this kind of feature for yourself through MethodChannels though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With