how can I get Camera Intrinsic parameters in Flutter - flutter

We are going to develop a mobile app that is going to take photos. But the app is supposed to get camera's intrinsic parameters like focal length and principal points, This is the constraint. Is it possible to get those parameters in flutter somehow? if so how can I get camera intrinsic parameters in flutter. IOS and Android give these paramters but I had search web but nothing found for flutter. I am very new in flutter, I am not sure if I couldnt find it or there is not.
There are Android and IOS apis that gives this information, Can I write a package that gets these information from those native apis, is it possible or are there limits in flutter?

No, you're wrong.For IOS ,see Apple's document here.

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.

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/

Flutter IOS & ANDROID Widgets Implementation

I wanted to ask about the implementation of IOS & Android Widgets for Flutter.
Current Scenario :
Basically, i have developed the app on android platform and now i want to convert it to IOS platform. Since this is my first app, i really need some experienced voice on some issues i am facing.
Questions :
1 - Is there any simple way to detect that the widgets currently used are of Android/IOS Platform ?
How can we know for sure that a specific widget is of Android platform and is not going to work on IOS platform and vice versa.
2 - If somehow we know for sure that the current widget we are using is of Android platform, then how can we find its equivalent widget to implement for IOS platform.
3 - Are these widgets specifically required when we are going to upload/publish to these platforms respective stores. For example in a scenario where i hadn't converted all of my android app widgets to ios widgets and when i try to publish the app for IOS store, does the IOS Store rejects that or not?
Any suggestions or help is greatly appreciated.
All standard widgets will work on iOS as is. Flutter paints the UI, rather than call the native APIs. You might use a plugin that does not support iOS, but I have not yet come across such a plugin on pub.dev.
If you want to write platform specific code, you can import dart:io and use the boolean Platform.isIOS or Platform.isAndroid.
Both the App Store and Play Store have specific requirements before your app is approved.
In case you really want to have Android specific widgets on Android devices and iOS specific widgets on iOS devices, then use the Flutter Platform Widgets package. This will exactly do that - drawing iOS buttons using the Cupertino library and Android buttons using the Android library (and most other widgets as well).
As #Mudassir mentioned in the other comment this is not a requirement. In case you go with the default widgets, you will have the same look on all devices (even web, Windows, etc.).

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.

Compatibility of Flutter with Car Play and Android Auto

I developed an app on Flutter and I'm looking at a way to link it with Car Play and Android Auto. For my understanding Flutter is not compatible yet. Anyone know if it will be in the future (if yes, when we should expect this)? Is there any turnaround I can look into?
Flutter Apps are now compatible with Apple CarPlay!
flutter_carplay aims to make it safe to use apps made with Flutter in the car by integrating with CarPlay. CarPlay takes the things you want to do while driving and puts them on the car’s built-in display. Currently, it supports only iOS 14.0+.
Feel free to like, star, comment, share, and contribute to support more!
In pub.dev: https://pub.dev/packages/flutter_carplay
GitHub: https://github.com/oguzhnatly/flutter_carplay
Flutter has yet to have Car Play and Android Auto support as of this writing. As previously mentioned in the comments, it's best to keep track for its updates in this GitHub thread.
I got audio app working on carplay easily enough. Based on
https://pub.dev/packages/flutter_radio_player/example
And then using my apple developer account, setting entitlements to allow carplay, basically. I cam add details if requested. Also, I used a mac/xcode to check things worked etc.
Android auto I can't yet get working.. funny that!