VersaPlayerControls
open class VersaPlayerControls : UIView
Undocumented
-
VersaPlayer intance being controlled
Declaration
Swift
public var handler: VersaPlayerView!
-
VersaPlayerControlsBehaviour being used to validate ui
Declaration
Swift
public var behaviour: VersaPlayerControlsBehaviour!
-
VersaPlayerControlsCoordinator instance
Declaration
Swift
public var controlsCoordinator: VersaPlayerControlsCoordinator!
-
VersaStatefulButton instance to represent the play/pause button
Declaration
Swift
@IBOutlet public weak var playPauseButton: VersaStatefulButton?
-
VersaStatefulButton instance to represent the fullscreen toggle button
Declaration
Swift
@IBOutlet public weak var fullscreenButton: VersaStatefulButton?
-
VersaStatefulButton instance to represent the PIP button
Declaration
Swift
@IBOutlet public weak var pipButton: VersaStatefulButton?
-
VersaStatefulButton instance to represent the rewind button
Declaration
Swift
@IBOutlet public weak var rewindButton: VersaStatefulButton?
-
VersaStatefulButton instance to represent the forward button
Declaration
Swift
@IBOutlet public weak var forwardButton: VersaStatefulButton?
-
VersaStatefulButton instance to represent the skip forward button
Declaration
Swift
@IBOutlet public weak var skipForwardButton: VersaStatefulButton?
-
VersaStatefulButton instance to represent the skip backward button
Declaration
Swift
@IBOutlet public weak var skipBackwardButton: VersaStatefulButton?
-
VersaSeekbarSlider instance to represent the seekbar slider
Declaration
Swift
@IBOutlet public weak var seekbarSlider: VersaSeekbarSlider?
-
VersaTimeLabel instance to represent the current time label
Declaration
Swift
@IBOutlet public weak var currentTimeLabel: VersaTimeLabel?
-
VersaTimeLabel instance to represent the total time label
Declaration
Swift
@IBOutlet public weak var totalTimeLabel: VersaTimeLabel?
-
UIView to be shown when buffering
Declaration
Swift
@IBOutlet public weak var bufferingView: UIView?
-
Skip size in seconds to be used for skipping forward or backwards
Declaration
Swift
public var skipSize: Double
-
Undocumented
Declaration
Swift
override open func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)
-
Undocumented
Declaration
Swift
override open func didMoveToSuperview()
-
Notifies when time changes
Declaration
Swift
open func timeDidChange(toTime time: CMTime)
Parameters
time
CMTime representation of the current playback time
-
Remove coordinator from player
Declaration
Swift
open func removeFromPlayer()
-
Prepare controls targets and notification listeners
Declaration
Swift
open func prepare()
-
Layout in parent view
Declaration
Swift
open func layout()
-
Prepares the notification observers/listeners
Declaration
Swift
open func prepareNotificationListener()
-
Prepare the seekbar values
Declaration
Swift
open func prepareSeekbar()
-
Show buffering view
Declaration
Swift
open func showBuffering()
-
Hide buffering view
Declaration
Swift
open func hideBuffering()
-
Skip forward (n) seconds in time
Declaration
Swift
@IBAction open func skipForward()
-
Skip backward (n) seconds in time
Declaration
Swift
@IBAction open func skipBackward()
-
End seeking
Declaration
Swift
@IBAction open func seekingEnd()
-
Start Seeking
Declaration
Swift
@IBAction open func seekingStart()
-
Playhead changed in UISlider
Declaration
Swift
@IBAction open func playheadChanged(with sender: UISlider)
Parameters
sender
UISlider that updated
-
Toggle PIP mode
Declaration
Swift
@IBAction open func togglePip()
-
Toggle fullscreen mode
Declaration
Swift
@IBAction open func toggleFullscreen()
-
Toggle playback
Declaration
Swift
@IBAction open func togglePlayback()
-
Toggle rewind
Declaration
Swift
@IBAction open func rewindToggle()
-
Forward toggle
Declaration
Swift
@IBAction open func forwardToggle()