VersaPlayerView
open class VersaPlayerView : UIView, AVPictureInPictureControllerDelegate
Undocumented
-
VersaPlayer extension dictionary
Declaration
Swift
public var extensions: [String : VersaPlayerExtension] -
AVPlayer used in VersaPlayer implementation
Declaration
Swift
public var player: VersaPlayer! -
VPlayerRenderingView instance
Declaration
Swift
public var renderingView: VersaPlayerRenderingView! -
VersaPlayerPlaybackDelegate instance
Declaration
Swift
public var playbackDelegate: VersaPlayerPlaybackDelegate? -
VersaPlayerDecryptionDelegate instance to be used only when a VPlayer item with isEncrypted = true is passed
Declaration
Swift
public var decryptionDelegate: VersaPlayerDecryptionDelegate? -
AVPictureInPictureController instance
Declaration
Swift
public var pipController: AVPictureInPictureController? -
Whether player is prepared
Declaration
Swift
public var ready: Bool -
Whether it should autoplay when adding a VPlayerItem
Declaration
Swift
public var autoplay: Bool -
Whether Player is currently playing
Declaration
Swift
public var isPlaying: Bool -
Whether Player is seeking time
Declaration
Swift
public var isSeeking: Bool -
Whether Player is presented in Fullscreen
Declaration
Swift
public var isFullscreenModeEnabled: Bool -
Whether PIP Mode is enabled via pipController
Declaration
Swift
public var isPipModeEnabled: Bool -
Whether Player is Fast Forwarding
Declaration
Swift
public var isForwarding: Bool { get } -
Whether Player is Rewinding
Declaration
Swift
public var isRewinding: Bool { get } -
Undocumented
Declaration
Swift
public override init(frame: CGRect) -
Undocumented
Declaration
Swift
required public init?(coder aDecoder: NSCoder) -
Add a VersaPlayerExtension instance to the current player
Declaration
Swift
open func addExtension(extension ext: VersaPlayerExtension, with name: String)Parameters
extThe instance of the extension.
nameThe name of the extension.
-
Retrieves the instance of the VersaPlayerExtension with the name given
Declaration
Swift
open func getExtension(with name: String) -> VersaPlayerExtension?Parameters
nameThe name of the extension.
-
Prepares the player to play
Declaration
Swift
open func prepare() -
Layout a view within another view stretching to edges
Declaration
Swift
open func layout(view: UIView, into: UIView)Parameters
viewThe view to layout.
intoThe container view.
-
Enables or disables PIP when available (when device is supported)
Declaration
Swift
open func setNativePip(enabled: Bool)Parameters
enabledWhether or not to enable
-
Enables or disables fullscreen
Declaration
Swift
open func setFullscreen(enabled: Bool)Parameters
enabledWhether or not to enable
-
Sets the item to be played
Declaration
Swift
open func set(item: VersaPlayerItem?)Parameters
itemThe VPlayerItem instance to add to player.
-
Play
Declaration
Swift
@IBAction open func play() -
Pause
Declaration
Swift
@IBAction open func pause() -
Toggle Playback
Declaration
Swift
@IBAction open func togglePlayback() -
Undocumented
Declaration
Swift
open func pictureInPictureControllerDidStopPictureInPicture(_ pictureInPictureController: AVPictureInPictureController) -
Undocumented
Declaration
Swift
open func pictureInPictureControllerDidStartPictureInPicture(_ pictureInPictureController: AVPictureInPictureController) -
Undocumented
Declaration
Swift
open func pictureInPictureControllerWillStopPictureInPicture(_ pictureInPictureController: AVPictureInPictureController) -
Undocumented
Declaration
Swift
open func pictureInPictureControllerWillStartPictureInPicture(_ pictureInPictureController: AVPictureInPictureController)
-
VersaPlayerControls instance being used to display controls
Declaration
Swift
public var controls: VersaPlayerControls? { get } -
VersaPlayerControls instance to display controls in player, using VersaPlayerGestureRecieverView instance to handle gestures
Declaration
Swift
public func use(controls: VersaPlayerControls, with gestureReciever: VersaPlayerGestureRecieverView? = nil)Parameters
controlsVersaPlayerControls instance used to display controls
gestureRecieverOptional gesture reciever view to be used to recieve gestures
-
Update controls to specified time
Declaration
Swift
public func updateControls(toTime time: CMTime)Parameters
timeTime to be updated to
VersaPlayerView Class Reference