Got blue camera screen with CaptureMedia on UWP - camera

I got blue preview screen when start camera many time on UWP. I used MediaCapture and CaptureElement to implement camera screen. Do you guys have any experience with this issue, please help me.
Thanks you so much!

I found the solution. This issue happens because of device rotates many times when close-reopen camera screens continuously. I fixed it by change camera's initialization orientation to Portrait as same as application's.

Related

Connect a slider to control zoom on iOS Camera App

I am learning Xcode and am playing around with the SquareCam sample code app that Apple provides.
What I want to do is to be able to zoom in and out of the image with a slider object rather than the gesture.
How can I do this? Thank you!

Zooming in image using scrollview Xcode

I am trying an iPad application using Xcode. I am just a beginner so there are things I don't know how to do. In my app, I have some images showing one by one by scrollview. Now, I want them to zoom in when double tap and zoom out when double tap again. Can anyone tell me how to zoom in and out using the same scrollview which is used to display all the images?
Thanks. :)
Please Refer the Apple Documents... Scroll View Programming Guide for iOS

Play video as background in iPad App

I have an app and it has a static uimage as the background. To dress up the app, I have a video that would be great as the background but I cannot find any examples of how to play a video as a background view. I have looked at MPMoviePlayerController but I am not sure if it would do what I am expecting.
Anyone have any ideas, or an example of a video as a background to an app?
Thanks
I guess you could just use the MPMoviePlayerController, if you don't do it fullscreen (which is not possible on the iPhone, but it is so on the iPad).
Then you can just put buttons, labels whatever you want on top of that.
Should work fine :)

Add a video into splash screen or in the first view of the app (IOS xcode 4.0)

I'm a beginner in IOS but I need to show a video when the app is launching.
Please Can you help me?
If is impossible to implement a video on a splash view, there are any idea to create that?
Thanks.
If I have an orthographic mistake, sorry I come from Spain. ;D
The "splash" screen can only be an image to be used as a placeholder until your app is able to start up. Even if you found a way to get a video to play, which I don't think is possible, it is against Apple's HIG for how the startup screen is supposed to be used.
It would be possible to load your video in its own view immediately after the splash screen. You would need to check for a first time run to determine whether to show it, unless you plan to show it each and every time. Hope this helps.
Apple Human Interface Guide

iPad orientation

I have question regarding changing orientation on iPad.
I use MonoTouch, but if Obj-C programmers can help, it will be just as great.
First of all, I figured out if I provide different splash screen images for different orientations, app will show the right one. This can be done for any orientation, such as "Default-LandscapeLeft.png", or generic one "Default-Landscape.png".
All of my images are of correct dimensions and yet, when I start it in portrait mode, it shows it enlarged. All of other modes work perfectly well.
Second problem is I want my app to continue to be in that orientation after my first controller appear. At the moment, it shows portrait in any case. I started generating orientation notifications before first controller appeared (UINavigationController), but I think it responds only on orientation changes. After I moved device, it rotates and from that moment, everything works fine. BUT, I want to "inherit" orientation info from my splash screen.
Any idea will be appreciated.
Thanks guys and girls.
Cheers
Images for different orientations:
Default.png and Default-Landscape.png should be provided + setting the app settings to provide the required orientations.
Second problem:
After creating the first controller call
myController.WillRotate(UIApplication.SharedApplication.StatusBarOrientation, 0);