Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Screen sharing in iOS app? [closed]

I want share my application iPad screen with other devices which are running the same application.

More detail: My application is a meeting application. Now I want that those who are the participants of that particular meeting can my screen when I share my application screen.

Conclusion: I want to share my app screen with other devices which have running the same app, JUST like Skype screen share.

like image 551
Archana Chaurasia Avatar asked Feb 18 '23 03:02

Archana Chaurasia


1 Answers

You will be needing a server for this. Its a long process. Briefing you with the overall details

  • You get the information when users are loggedIn.
  • User will try to send the image to the server first.
  • Get the screenshots images continuously from the user screen.follow this link
  • convert the image to NSData.
  • From server detect the other user(to whom screen is to be shared.) send the data to that user. And convert the NSData into UIImage and update the UI accordingly.
  • Loop the process.

    // for taking screen shot

     UIGraphicsBeginImageContext(self.window.bounds.size);
        [self.window.layer renderInContext:UIGraphicsGetCurrentContext()];
        UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
        UIGraphicsEndImageContext();
        NSData * data = UIImagePNGRepresentation(image);
        [data writeToFile:@"foo.png" atomically:YES];
    
like image 112
HDdeveloper Avatar answered Feb 23 '23 01:02

HDdeveloper