Can you pass camera through multiple widgets in Flutter - android-studio

Is there any way to pass the CameraController between widgets in Flutter? My app requires the camera to be on multiple pages for the user to preview their recording and align objects. all the ways I have tried to pass the camera between pages has led to the application crashing on a physical device (i.e. initializing the camera on the first page and passing it between pages, creating a separate class for the camera to display the camera preview.)
Is there a Provider I can use?
Thanks!

You will make the CameraController static and when you are going to use it in another page you wil call it this way : CameraController.class

Related

DOM not fully loaded

Please check this web address It is what I have designed.
https://www.derafsh.app
If you open this in a mobile device, you will see embedded tweets overlap, if you rotate your mobile device and again rotate it back, the layout issue gets resolved. Could you please advise why this is happening?
I have tried applying different classes and javascript styling but no luckI am using Twitter's embedding functionality here

Is it possible to embed/stream/project the live image of a native Windows window into a webpage?

In the new Microsoft Flight Simulator you can pop different cockpit displays out into their own external windows, like this:
However, none of the buttons needed to interact with the displays get "popped out" as well.
I'd like to build a web app that can embed (the continuously updating image of) one of these windows that I can surround with buttons, etc, for interaction to have, say, running on a tablet next to you.
My question is, is it possible with Node to embed the continuously updating image of a native Windows window within a webpage?
Stumbled upon the Screen Capture API. This is what I was looking for.
https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capture_API

Rotate screen orientation on Web App Tizen [TV]

I'm developing a Web Application on Tizen. My application was first developed on other platforms like iOS and Android.
Basically it starts on Landscape mode and plays remote content such as image, video or opens a web page. It has a menu inside the app to offer people the ability to change the screen orientation inside the app manually.
This approach is quite easy on iOS and Android but on Tizen seems it doesn't work that easy.
I'm following Tizen's official documentation which send's us to : https://w3c.github.io/screen-orientation/
But, can't make it work even though I followed steps written on the link above.
This is what I got when I try to rotate:
Trying with :
screen.orientation.lock('portrait-primary')
Error :
Promise {}
index.html:1 Uncaught (in promise) DOMException: The page needs to be fullscreen in order to call screen.orientation.lock().
P.S. The app is already in fullscreen. The error is not relevant.
Do you have any ideas ?
Thank you
For all to those who are still trying to achieve this:
After having a long discussion with Samsung, they claimed that supporting the TV orientation via code is not possible right now (Not sure if it's gonna be implemented in the future).
These restrictions come due to different operability of the hardware components on different orientation.
The only way to rotate your screen is to do it via Samsung's TV Settings so that it can prepare its hardware for the chosen orientation.
There are a special Samsung TVs for Advertising market (Digital Signage series) that are ready to set the orientation of the screen.
I comercial Samsung TV sets Tizen is not able to rotate some kind of elements (as far I know the video object are one of the HTML elements that cannot be rotated)
I've developed some apps for Tizen and for one customer I tried to make a video wall but it was impossible due the firmware limitation of Tizen (it's a marketing strategy in order to avoid having hotel and digital signage capabilities in commercial TV sets)

Call Microsoft Edge inside Hololens app?

Does anyone know is it possible to call or embed Microsoft Edge Window in your Hololens app? For example, I have my Spatial mesh rendered and I'm detecting the flat surfaces. I'd like to be able to call new Edge Window with predefined url whenever I tap on a flat surface. Is there any way to invoke Edge Window this way inside the app?
Thanks in advance.
If you are using Unity, you might be able to use Application.OpenUrl("www.google.nl"); in order to open the standard browser.
See: Unity reference OpenURL
I am not sure if this will close your application first before opening the browser, but i hope this works for you.
If it doesnt, maybe you can try starting a new process by using: System.Diagnostics.Process.Start("PathToProgram.exe");
See: MSDN Reference
You cant open Edge inside your app, you can shut down your app and let the system start edge with a given URL.
If you need to get an image from a website you can use the unity www system:
https://docs.unity3d.com/ScriptReference/WWW-texture.html

In XPages I can't get the File Upload Control to work inside of Mobile Controls

Now that iOS devices can upload from their picture library or camera, I'm trying to use the file upload control to get ahold of these pictures via an xpage. If it's a plain XPage it's working fine - but if I try to wrap this inside of the Mobile Controls from the extension library I can't get the picture to save. Other values save to the document but not the picture.
The file upload control is bound to a rich text field.
Any ideas would be appreciated!!!!
Place the file upload inside an Iframe.
Interesting. Are you saying that you can make the file upload control work with an XPage on an iOS device? I was of the clear impression that you do not have access to the camera from a web-app. In this case you need to wrap your web-app into a layer that can access the physical (e.g. Apache Cordova aka PhoneGap)....?
I know that some of these features are on their way in html5, however, the have so far been very unreliable (crashing the phones often).
/John

Resources