Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible with a Flutter app to hand off a video playing in-app to an Apple or Samsung TV?

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).

Nav bar

Popup

Any help or advice would be great :)

like image 559
sixtysticks Avatar asked Oct 16 '25 18:10

sixtysticks


1 Answers

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.

like image 182
Adrian Murray Avatar answered Oct 18 '25 11:10

Adrian Murray