JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
VideoComponent::Pimpl::PlayerController Class Reference
Inheritance diagram for VideoComponent::Pimpl::PlayerController:
Collaboration diagram for VideoComponent::Pimpl::PlayerController:

Public Member Functions

 PlayerController (Pimpl &ownerToUse, bool useNativeControlsIfAvailable)
 
 ~PlayerController ()
 
void close ()
 
AVPlayer * getPlayer () const
 
NSView * getView ()
 
Result load (NSURL *url)
 
void loadAsync (URL url)
 
void setPlayer (AVPlayer *player)
 

Protected Member Functions

void attachPlaybackObserver ()
 
void attachPlayerStatusObserver ()
 
void detachPlaybackObserver ()
 
void detachPlayerStatusObserver ()
 

Protected Attributes

Pimplowner
 
PlayerAsyncInitialiser playerAsyncInitialiser
 
std::unique_ptr< NSObject, NSObjectDeleter > playerItemPlaybackStatusObserver
 
std::unique_ptr< NSObject, NSObjectDeleter > playerStatusObserver
 
bool useNativeControls
 

Private Attributes

AVPlayerLayer * playerLayer = nil
 
AVPlayerView * playerView = nil
 
NSView * view = nil
 

Constructor & Destructor Documentation

◆ PlayerController()

VideoComponent::Pimpl::PlayerController::PlayerController ( Pimpl ownerToUse,
bool  useNativeControlsIfAvailable 
)
inline

◆ ~PlayerController()

VideoComponent::Pimpl::PlayerController::~PlayerController ( )
inline

Member Function Documentation

◆ attachPlaybackObserver()

◆ attachPlayerStatusObserver()

◆ close()

void VideoComponent::Pimpl::PlayerController::close ( )
inline

◆ detachPlaybackObserver()

void VideoComponent::Pimpl::PlayerControllerBase< PlayerController >::detachPlaybackObserver ( )
inlineprotectedinherited

◆ detachPlayerStatusObserver()

◆ getPlayer()

◆ getView()

NSView* VideoComponent::Pimpl::PlayerController::getView ( )
inline

◆ load()

Result VideoComponent::Pimpl::PlayerController::load ( NSURL *  url)
inline

◆ loadAsync()

◆ setPlayer()

Member Data Documentation

◆ owner

◆ playerAsyncInitialiser

PlayerAsyncInitialiser VideoComponent::Pimpl::PlayerControllerBase< PlayerController >::playerAsyncInitialiser
protectedinherited

◆ playerItemPlaybackStatusObserver

std::unique_ptr<NSObject, NSObjectDeleter> VideoComponent::Pimpl::PlayerControllerBase< PlayerController >::playerItemPlaybackStatusObserver
protectedinherited

◆ playerLayer

AVPlayerLayer* VideoComponent::Pimpl::PlayerController::playerLayer = nil
private

◆ playerStatusObserver

std::unique_ptr<NSObject, NSObjectDeleter> VideoComponent::Pimpl::PlayerControllerBase< PlayerController >::playerStatusObserver
protectedinherited

◆ playerView

AVPlayerView* VideoComponent::Pimpl::PlayerController::playerView = nil
private

◆ useNativeControls

bool VideoComponent::Pimpl::PlayerControllerBase< PlayerController >::useNativeControls
protectedinherited

◆ view

NSView* VideoComponent::Pimpl::PlayerController::view = nil
private

The documentation for this class was generated from the following file: