Getting a snapshot image of a video

The following code captures and display a static image of the Publisher video, adds it to the main view, and sets a UIImage object for the image:

The following code captures and display a static image of the subscriber video, adds it to the main view, and sets a UIImage object for the image: