IVSPlayerView

Objective-C


@interface IVSPlayerView : UIView

Swift

class IVSPlayerView : UIView

A view whose backing layer is an instance of IVSPlayerLayer.

IVSConvenience

  • Convenience accessor for the player property on playerLayer.

    This property is key-value observable.

    Declaration

    Objective-C

    @property (nonatomic, nullable) IVSPlayer *player;

    Swift

    var player: IVSPlayer? { get set }
  • Convenience accessor for the videoGravity property on playerLayer.

    This property is key-value observable.

    Declaration

    Objective-C

    @property (nonatomic, copy) AVLayerVideoGravity _Nonnull videoGravity;

    Swift

    var videoGravity: AVLayerVideoGravity { get set }
  • Convenience accessor for the videoRect property on playerLayer.

    This property is key-value observable.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGRect videoRect;

    Swift

    var videoRect: CGRect { get }