betterplayer icon indicating copy to clipboard operation
betterplayer copied to clipboard

Feature Request: AirPlay & Chromecast Support

Open Martinaude opened this issue 5 years ago • 31 comments

What A great addition to the Flutter Community! Really love the ease of use of betterpayer, and how functional it is within our app! Well Done guys.

I think a big thing here, is that we would like to be a able to take the video's that are currently playing in the app and "cast" them to a bigger screen.

there is a current flutter repository working on this (Terrabythia Github Link)

Would love to see this integrated within the betterplayer app (perhaps the screen selection could be in the same place as the new video speed section)

And then Airplay support would be awesome as well for iOS devices (Although I have not seen a project that has done this yet)

Martinaude avatar Sep 22 '20 13:09 Martinaude

Hi @Martinaude, this is great idea. This will be great addition to the player, but unfortunately I don't have access atm to the chromecast or airplay. I believe this may be task for the future. I'll leave this task open, if anyone is able to do that right now.

jhomlala avatar Sep 26 '20 17:09 jhomlala

+1 for casting and great job) congrats and thanks! awesome plugin!! https://pub.dev/packages/flutter_fling i have tested this plugin with my fireTV and it works. trying out dart_chromecast. found this for airplay https://pub.dev/packages/flutter_to_airplay

prasmalla avatar Oct 05 '20 15:10 prasmalla

@Jhomlala, I found this app call AirServer - Which allows you to add chrome cast and airplay support to Mac & Windows - It may help you develop it without having to buy an Apple TV, or chromecast?

Martinaude avatar Oct 09 '20 14:10 Martinaude

AirServer is commercial software and offers only 30-days free trial. I believe this is big issue here to proceed with this product (30 days is not too much to develop in part-time support for AirPlay and Chromecast).

jhomlala avatar Oct 19 '20 20:10 jhomlala

Hi @jhomlala ! Did you already tried the AirScreen app? It's available on the Play Store, it could maybe fit your needs Hope it helps Best regards

patrickbz avatar Apr 24 '21 08:04 patrickbz

AirServer is commercial software and offers only 30-days free trial. I believe this is big issue here to proceed with this product (30 days is not too much to develop in part-time support for AirPlay and Chromecast).

Hello @jhomlala i could help you buy a license for this software if you like. Let me know https://www.airserver.com/buy Cheers Anh

anhnt avatar May 24 '21 05:05 anhnt

+1

pranjaljain011 avatar Jun 16 '21 07:06 pranjaljain011

+1 I agree that this would be an awesome addition to the player

LastxTemplar avatar Jun 22 '21 09:06 LastxTemplar

@jhomlala I could sponsor a google chromecast if you want :)

LastxTemplar avatar Jun 29 '21 12:06 LastxTemplar

+1

rubentalstra avatar Jun 30 '21 08:06 rubentalstra

@jhomlala I've also been hoping to see this feature, and think it would put betterplayer over the top. I would be happy to sponsor an AppleTV if that would get this done. Let me know :)

JohnCoppa avatar Jul 04 '21 16:07 JohnCoppa

I tried adding this feature on my own, these guys have it implemented already: https://pub.dev/packages/flutter_vlc_player

But I'm really bad with native code and don't have the time to put into this unfortunately. But the vlc player package might be a good start on this.

LastxTemplar avatar Jul 08 '21 09:07 LastxTemplar

Hey @jhomlala , can we get more interest in this issue? Could we maybe hire a freelancer or something who could do this? :) I'm happy to chip in for the work.

LastxTemplar avatar Aug 03 '21 09:08 LastxTemplar

If anyone is interested in this topic and want to help, then visit branch feature/cast and feature/cast_ios. I don't have time to complete this feature since it requires a lot of time. Please stop asking when it will be ready. Feel free to contribute to Better Player if you need this urgently.

jhomlala avatar Aug 09 '21 20:08 jhomlala

Hi, I would like to sponsor this feature, if someone is willing to work. We are building app for https://github.com/arslancb/clipbucket

arslancb avatar Sep 15 '21 06:09 arslancb

To anyone interested: branch feature/cast supports both Air Play and Google Cast in temp version. It's just MVP, not production code. Feel free to test this branch on your side.

jhomlala avatar Sep 25 '21 13:09 jhomlala

Ooooh yeah baby! Where do we donate for your hard work @jhomlala ?

LastxTemplar avatar Sep 25 '21 13:09 LastxTemplar

I don't need any donation. I need people to finish this feature, because in current state it's not usable at all. It's just preview, nothing more.

jhomlala avatar Sep 25 '21 13:09 jhomlala

I'd be happy to help with that but that code is beyond me and I don't have enough time to start digging through it :(

LastxTemplar avatar Sep 25 '21 13:09 LastxTemplar

Amazing! Thanks @jhomlala for getting this started. I'll take a look at the branch and see if it's something I can meaningfully contribute to. Stay tuned.

JohnCoppa avatar Sep 25 '21 16:09 JohnCoppa

some advance, i am interested in the chromecast

kevin4dhd avatar Nov 22 '21 17:11 kevin4dhd

To anyone interested: branch feature/cast supports both Air Play and Google Cast in temp version. It's just MVP, not production code. Feel free to test this branch on your side.

it works great for network videos, but why doesn't it work for local videos? any solution you can give me please

kevin4dhd avatar Feb 16 '22 20:02 kevin4dhd

hey @jhomlala , could I ask you to finish the airplay / chromecast support through a freelance contract or something similar? we could even use a platform like upwork/freelancer if you like. I would really like to have this feature in this package and there's noone else who knows your package better than you do. I could also supply you with a chromecast device and whatever other device you need to implement this feature. Please think about this proposition, this package is awesome and it's a real shame seeing it going stale.

Thanks!

LastxTemplar avatar Jun 22 '22 10:06 LastxTemplar

Hi @jhomlala how's going the test? You're still need help to finish coding?

pedraohenrique avatar Nov 09 '22 14:11 pedraohenrique

I've implemented Cast support for BetterPlayer on Android and I plan to open a pull request in the coming days. I used ForwardingPlayer from ExoPlayer to wrap the ExoPlayer instance and switch between ExoPlayer and CastPlayer from onCastSessionAvailable()/onCastSessionUnavailable().

Some changes were required in ExoPlayer's cast-extension module to better support adaptive live streams. I've already opened a pull request in their repo.

ptsekov avatar Nov 26 '22 16:11 ptsekov

that is awesome @ptsekov , hopefully it gets approved soon.

LastxTemplar avatar Nov 27 '22 14:11 LastxTemplar

Do you guys have news about that?

lozinskydino avatar May 20 '23 05:05 lozinskydino

Has anyone had success with this? Ideas?

alissonalberini avatar Jun 23 '23 16:06 alissonalberini

Any progress here?

PeterVanVogelpoel avatar Aug 24 '23 21:08 PeterVanVogelpoel