While screen sharing always getting error from Quickblox Android SDK - quickblox-android

I have been trying to integrate screen sharing feature but Quickblox SDK is always throwing exception saying "Start Screen share failed Texture width must be positive, but was 0"
I have been following their official documentation and followed all the instructions from,
https://docs.quickblox.com/docs/android-video-calling-advanced#screen-sharing

Make sure that the size of the screen is specified i.e. following parameters needs to be defined before sharing the screen,
QBRTCMediaConfig.setVideoWidth(QBRTCMediaConfig.VideoQuality.VGA_VIDEO.width)
QBRTCMediaConfig.setVideoHeight(QBRTCMediaConfig.VideoQuality.VGA_VIDEO.height)

Related

Grey screen in Opera only using flutter web

Used flutter to build a web app, but I keep getting a grey screen in Opera. I know that this can happen with flutter if there is a UI error, but the website is working perfectly fine in Chrome, IE, Edge, and Safari. The console in developer mode gives me this error: "NoSuchMethodError: method not found: 're' on null". The "re" part of the error changes. I've seen it be "rg" and "rf", and google search has failed me when it comes to resolution. Any suggestions would be appreciated.
If you specified rendered as HTML maybe that's the reason. Please build without specifying a renderer. Just use flutter build web and try once please

Flutter - Using multiple Test Id for Admob Banner

I wanted to add some Admob Banner in my Flutter app (using the offical Admob package https://pub.dev/packages/google_mobile_ads)
Flutter Admob guide only provide 1 Test ID for iOS and another for Android, what can I do if I need multiple Test ID in my app?
You can use the same Test ID multiple times. But make sure to replace it with a real one before launching. Real ones cannot be called multiple times (unless if you dispose them before using them somewhere else) so create new ones accordingly
Finally found the solution. I have summarised the steps below for anyone who wants to know how to use multiple IDs in Flutter (this might be common since Flutter users is likely to place Ads in ListView). I have also added some reading reference below.
In summary:
Use your own Ads Id (not Test Id)
Run an Ads in your actual Device to obtain the Test Device ID. This is automatically print out when the ads is called. Find the text similar to the example shown below:
RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("The code you want to copy"))
to get test ads on this device."
Use the code below to initialised Admob to provide Test Ads. Call the code before you initialised Admob.
You will observe actual Ads but with a "Test Ads" text on top.
Code to initialised Test Ads for Flutter:
//"The code you want to copy" is the code that you extract from your log based on earlier steps
List<String> testDeviceIds = "The code you want to copy";
RequestConfiguration configuration = RequestConfiguration(
testDeviceIds: testDeviceIds);
MobileAds.instance.updateRequestConfiguration(configuration);
Reading material for reference:
Reference to Admob Test Ads for native Android if you are interested - link. They should add documentation for Flutter.
Reference to the code from another post which provide the code by answering a different question. Here is the link.

how can I get Camera Intrinsic parameters in 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.

Flutter app screen blur on emulator

Hi just created HelloWorld flutter application,
all the instructions followed by the official site,
if i run the application on emulator/genymotion getting blur screen, please check the attached image.
if i run same application on device then it is working fine.
How to solve this issue?
Some devices are not properly recognized to not support hardware rendering.
Run with the additional parameter
flutter run --enable-software-rendering
See also
https://github.com/flutter/flutter/issues/15451
https://github.com/flutter/flutter/issues/15605

HTML 5 Issues on iPhone with Google IMA SDK - Skippable Event

I am getting the following error:
AdError 1005: The provided ad type: skippablevideo is not supported.
Is it a known limitation on iPhone devices? Because on iPad everything works properly.
Ok it looks like this is a limitation on google's side please open the following url:
https://groups.google.com/forum/#!msg/ima-sdk/jYE6j4_YCko/m6HuIkM9uKMJ
Where they say:
"We currently don't support skippable on iPhone because it's impossible for us to render a skip button on top of the video"