Inherits from UIView
Declared in PTMediaPlayerView.h

Overview

PTMediaPlayerView class manages the view component of the PMP framework

Tasks

Properties

Properties

player

Returns the internal player instance of PMP framework

@property (nonatomic, readonly, strong) AVPlayer *player

Discussion

Returns the internal player instance of PMP framework

IMPORTANT: Developers must use caution while calling any methods on this instance due to potential conflicts with the SDK. It is strongly recommended that the internal player instance be only used for reading specific AVPlayer properties and all methods that change the state of playback or configuration of the player be handled through the PTMediaPlayer instance.

Note: This property is only available after the PTMediaPlayer is initialized

Declared In

PTMediaPlayerView.h

videoGravity

Returns the video gravity property of the player.

@property (nonatomic, strong) NSString *videoGravity

Discussion

Returns the video gravity property of the player.

Declared In

PTMediaPlayerView.h