How to cast screen from flutter application? - flutter

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.

Related

I am trying to cast videos from my app to chrome-cast devices

Hi I am trying to cast videos from my flutter app to chromecast devices using this plugin called flutter_video_cast from pub.dev
But the issue is while I am trying to setup these plugin for android. The instruction given by the developers in not clear due to these I am able to use it in my app.
The section which I need clarification is this part
I am not able to get what it meant by initialize cast context by extending flutter fragement activity.
Any sort of answers will be helpful for me.

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

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.

Flutter - Is there a way to mute a phone with an app?

I've started with Flutter and I´m currently working on a project which allows the application to mute the phone if you´re at a specified position. I´ve implemented Google Maps etc. Everything works except that the marker isn´t visible but that´s another question. My question is how I can mute the phone with an app. I didn´t find a solution anywhere.
I really doubt that Flutter provides such a fuctionality out of the box. I suggest searching 3rd party packages for it. If that fails you can implement this feature nativly on each platform using Platform Channels.
HERE you can find how to achieve this on Android, and HERE how to do it on IOS.

How to initiate/send SMS from a HTML5 webpage using devices native functions?

I am wondering how can I open the send SMS application by using a web control of a HTML5 page on Android and iPhone. I want to use the device native SMS sending app, with a prepopulated value from the web.
Further to other answers I can confirm that smsto:555:bodytext does not work on an iPhone running iOS5.
What does work (and I've tested it) on Android is the format:
sms:444?body=hello
Example:
Tap to say hello!
On iPhone the ?body=hello will prevent it working at all, and you should use just sms:555 instead.
sms:555
Example
Tap to text us!
I have tested the below and it works:
Using HTML Anchor tag:
Subscribe
Using JavaScript:
window.open('sms:111?body=SUBSCRIBE', '_self');
With Android 3.0 SDK Google has started exposing API in HTML5 for device access. An example is listed here. It may not be enough for what you seek to do.
I dont know enough about iphone to advise either way.

Stream video from one iphone to another and back

I want to develop an conference application. It's basically exact the same as Facetime only with some extra features.
But how do I make a video chat from one iPhone to another iPhone LIVE like Facetime?
Any ideas?
Thanks in advance!
OpenTok is a good way to do it.
Here's the tutorial
You can use the flash builder or just air sdk