How to play YouTube videos in google chromecast from Flutter application? - flutter

My Flutter application has some YouTube video links. Those YouTube links, i would like to stream through google chromecast. I have seen some video stream casting using the below flutter libraries.
https://pub.dev/packages/cast
https://pub.dev/packages/dart_chromecast
But those libraries are playing MP4 format video streaming. So i am searching for the way to play YouTube videos though flutter application in chromecast.
Please someone suggest me if there is any code clues for this.

We had the same challenge, and we searched high and low. Finally found this solution to make it work: https://pub.dev/packages/dart_chromecast
Make sure your flutter compiler is downgraded to 13 or below. Otherwise, you will not be able to compile. Unfortunately, their code is not supported in a newer version of the flutter compiler and the author is not going to update anytime soon.

Related

Embedding Dailymotion Videos in a Flutter App: Is it Possible and Good Practice?

I am trying to find a way to include Dailymotion videos in my Flutter app. The Dailymotion API has SDKs for embedding videos in native Android and iOS apps, but I cannot find a solution for Dart. Can I use these SDKs in Flutter and is it considered a good practice? Are there any potential issues with this approach?
daily motion API reference: https://developers.dailymotion.com/player#embed-mobile
I attempted to include videos by using the current link of the video but the link keeps changing frequently.

Is there a way to implement video chat in a flutter Application with selectable AR Filters?

As per the title, I want to implement a Video chat app in a flutter project and use AR filters during video chat. I'm looking for an implementation that can be done easily so I've checked out Agora and Twilio flutter SDK's for Video chat but they haven't provided any ways to add AR Filters yet. Does anyone know how this can be done?
Is there a way to implement a separate AR filter SDK to the existing Agora or Twilio video chat Flutter SDK?
Twilio developer evangelist here.
I don't have any concrete answers for you here, but some ideas that might help. As a disclaimer, I am not a Flutter developer and the Twilio Video Flutter SDK is built by the community and not supported by Twilio, so your mileage may vary.
As far as I know, you can implement your own camera source (iOS) or camera capturer (Android) object that you can pass to the native Twilio Video SDKs. The camera capturer outputs frames that the SDK uses to send to the video room. If you can implement your own, then you can build whatever effects or filters on the frames before passing them onto the SDK.
Sorry this is a very vague answer, I hope you can apply this to the Flutter SDK and achieve your goals.
Integrating AR filters using the Agora Flutter SDK needs to be done via the native layer of your Flutter application. Agora has various guides and blogs on how to add AR to your video calling application. You can refer to this Android blog that shows how to add face filters that might help you in your development journey: https://www.agora.io/en/blog/build-a-live-streaming-application-with-face-filters-on-android/

Playing video from youtube and other pages

I am using a video_player package which nicely shows videos stored in firebase storage via their links in firestore. But replacing link to video in storage with youtube link doesn't work.
My point is to make an app which would show videos from youtube and maybe other pages like vimeo.
Maybe someone has done it already?
Thank you in advance
This package does the work perfectly
*I've used it on Flutter version < 2.0 so I don't know if it will work if you're using the current framework version

How to cast screen from flutter application?

I am working on flutter app where I playing live videos. Now I want to cast my device screen using Roku, FireTv, Chromecast and Airplay. I want to know is it possible cast screen using these technologies? I used cast dart package to discover and connect with chromecast devices but not able to scan any device. Please help me how it working with flutter?
Thanks Advance.
i dont know whether it is working or not. just catch this url from internet. try this
https://morioh.com/p/fbd0079a2d71
and another example i got. i didn't check this also
https://github.com/terrabythia/flutter_chromecast_example
We were able to make it work on Chromecast, see my answer posted here:
How to play YouTube videos in google chromecast from Flutter application?
As for Airplay, if you use updated Apple libraries, Airplay will be integrated natively into your app. We were able to cast our app to Airplay without having to add extra code.
FireTV uses airplay so that should work.
We have not found a Roku solution yet.

Unity Vimeo Player not working on Android

I'm using Vimeo Unity SDK and a REST API that sends me back a video url, I tried to use VimeoPlayer.PlayVideo(url) method but it doesn't work on mobile, on editor it works fine, the video is not played and I get no errors, also the method is wrapped on a coroutine. If someone has a solution I will be very grateful.
Can you provide more information? Unity version, Vimeo plugin version, what android device and OS version?
Unity's native Video Player is not good across platforms. People have been having quite a few issues. I'd recommend using an alternative video decoder like AVPro Video, which supports adaptive playback and is important for mobile devices like Android.