GCKAVPlayerItemVideoTap Class

GCKAVPlayerItemVideoTap Class Reference

Overview

AVPlayerItem tap that redirects video to a Remote Display session.

Using GCKAVPlayerItemVideoTap, the final video composition of an AVPlayerItem can be redirected to a Remote Display session. Together with GCKAVPlayerItemAudioTap, this allows to send media playing on the local device to a Remote Display receiver.

Inherits GCKVideoFrameInput.

Instance Method Summary

(void) - reset
 Reset the video tap. More...
 
(instancetype) - initWithSession:
 Initialize a new video frame input bound to the specified session. More...
 
(instancetype) - NS_UNAVAILABLE
 

Properties

AVPlayerItem * playerItem
 The tap's player item. More...
 
id< GCKRemoteDisplaySessionsession
 Remote Display session the input is bound to. More...
 
uint32_t width
 Width of the session's video stream. More...
 
uint32_t height
 Height of the session's video stream. More...
 

Method Detail

- (void) reset

Reset the video tap.

Frees all internal resources. The video tap can be used again after calling this method by setting a new player item.

- (instancetype) initWithSession: (id< GCKRemoteDisplaySession >)  session

Initialize a new video frame input bound to the specified session.

Property Documentation

- (AVPlayerItem*) playerItem
readwritenonatomicassign

The tap's player item.

After setting this property, the tap will start redirecting the final video composite of the player item to its Remote Display session until the tap is reset, deallocated or another player item is set.

- (id<GCKRemoteDisplaySession>) session
readnonatomicweakinherited

Remote Display session the input is bound to.

- (uint32_t) width
readnonatomicassigninherited

Width of the session's video stream.

- (uint32_t) height
readnonatomicassigninherited

Height of the session's video stream.

Google Cast iOS Sender API Reference v 2.10.1 4691