Screen Sharing in iOS using opentok - ios

Hello i am using opentok for screen sharing.Everything is working fine but one issue is i am facing it works correctly in iOS simulator mean screen is sharing perfectly but in real iOS device screen is not sharing black screen is appearing on other device.

When using screen sharing you can share the contents of a given UIView inside your application. Due to iOS security restrictions you cannot share the content of any other view outside your application. (If you send your application to the background the other end will receive a black screen since the view you are sharing is not longer being rendered)
Please take a look to the screen sharing sample for more details: https://github.com/opentok/opentok-ios-sdk-samples-swift/tree/master/Screen-Sharing

Related

How to show app in a small size on home screen in iOS?

I am using swift to build a mobile app. I see some Android apps support showing in a smaller size on top-right on the home screen. I wonder how I can acheive this on iOS. Does it require any kind of permission?
Below is a screenshot about YouTube app show on the top-right of the homescreen.
The only comparable thing in iOS is for videos on an iPad — not every iPad supports it. It's called Picture In Picture.

How to take screenshot of a foreground appllication (like music) when screen is locked?

I am fairly new to iOS. I need your help.
Is is possible to take screenshot of an application (lets say Music) which is running in the foreground and when iOS device's screen is locked using a program? If so, can you please let me know the code correspondingly. (This is for personal work only)
The iOS APIs for taking screenshots are private, which means that you cannot programmatically take a screen shot of the phone. Also, since iOS apps are sandboxed, you do not have access to the Music app (or any other app), so you cannot capture an image of the view being presented.
However, if the user takes a screenshot, you can access that screen shot using PhotoKit by getting the latest image in the Screenshots smart album.

Overlay home screen like Facebook chatheads

I was wondering how I would create a small pop-up "subview" that appears on top of all apps and the home screen much like the Facebook chatheads?
I've seen plenty of threads on how to do this in android, but I was wondering how you would implement this in IOS obj-c?
You can not do that on iOS unless you are developing for JailBroken device.

iOS app not displaying correctly iPad

I am working on an App which should be able to run on iPhones and iPads.
I have been able to run it on iPhones and it is displaying perfectly. But when I run it on an iPad the App itself is very zoomed in. I am not sure what main issue.
This is how it displays on iPad:
And this is how it comes up on an iPhone:
Any idea how to fix it or what the issue is?
Your app isn't made to run on the iPad. When displayed on the iPad, it just stretches the display of the iPhone version (you can see that by the 1x button on the lower right corner of the screen). You need to setup your XCode project as a Universal App (instead of it being just for iPhone) and then you'll be able to take advantage of the entire iPad screen and design the display especially for it.
You can set the app as Universal on your project properties in XCode:

Youtube embedded player not working on the physical device

I followed the tutorial on how to embed youtube player in my ios application. The application works perfectly on the simulator. When I load it on the physical device it gives me a black screen but with no actions at all. I checked if I go to the right view controller and I found myself in the correct one.
Please make sure that you are embedding the You Tube API on a Apple device that runs iOS 7.0 or greater.

Resources