JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
VideoComponent::Pimpl::MediaSession::Controller Class Reference
Collaboration diagram for VideoComponent::Pimpl::MediaSession::Controller:

Public Member Functions

 Controller (MediaSession &ownerToUse, const LocalRef< jobject > &nativeControllerToUse)
 
 ~Controller ()
 
void closeVideo ()
 
double getPlaySpeed () const
 
double getPosition () const
 
float getVolume () const
 
void load (const URL &url)
 
void play ()
 
void setPosition (double newPosition)
 
void setVolume (float newVolume)
 
void stop ()
 

Private Member Functions

LocalRef< jobject > createControllerCallbacks ()
 
void stateChanged (jobject playbackState)
 

Static Private Member Functions

static void audioInfoChanged (JNIEnv *, jobject, jlong host, jobject playbackInfo)
 
static void metadataChanged (JNIEnv *, jobject, jlong host, jobject metadata)
 
static void playbackStateChanged (JNIEnv *, jobject, jlong host, jobject state)
 
static void sessionDestroyed (JNIEnv *, jobject, jlong host)
 

Private Attributes

GlobalRef controllerCallback
 
GlobalRef controllerTransportControls
 
GlobalRef nativeController
 
MediaSessionowner
 
bool wasPaused = true
 
bool wasPlaying = false
 

Constructor & Destructor Documentation

◆ Controller()

VideoComponent::Pimpl::MediaSession::Controller::Controller ( MediaSession ownerToUse,
const LocalRef< jobject > &  nativeControllerToUse 
)
inline

◆ ~Controller()

VideoComponent::Pimpl::MediaSession::Controller::~Controller ( )
inline

Member Function Documentation

◆ audioInfoChanged()

static void VideoComponent::Pimpl::MediaSession::Controller::audioInfoChanged ( JNIEnv *  ,
jobject  ,
jlong  host,
jobject  playbackInfo 
)
inlinestaticprivate

◆ closeVideo()

void VideoComponent::Pimpl::MediaSession::Controller::closeVideo ( )
inline

◆ createControllerCallbacks()

LocalRef<jobject> VideoComponent::Pimpl::MediaSession::Controller::createControllerCallbacks ( )
inlineprivate

References juce::getEnv().

◆ getPlaySpeed()

double VideoComponent::Pimpl::MediaSession::Controller::getPlaySpeed ( ) const
inline

◆ getPosition()

double VideoComponent::Pimpl::MediaSession::Controller::getPosition ( ) const
inline

◆ getVolume()

float VideoComponent::Pimpl::MediaSession::Controller::getVolume ( ) const
inline

◆ load()

void VideoComponent::Pimpl::MediaSession::Controller::load ( const URL &  url)
inline

◆ metadataChanged()

static void VideoComponent::Pimpl::MediaSession::Controller::metadataChanged ( JNIEnv *  ,
jobject  ,
jlong  host,
jobject  metadata 
)
inlinestaticprivate

◆ play()

void VideoComponent::Pimpl::MediaSession::Controller::play ( )
inline

◆ playbackStateChanged()

static void VideoComponent::Pimpl::MediaSession::Controller::playbackStateChanged ( JNIEnv *  ,
jobject  ,
jlong  host,
jobject  state 
)
inlinestaticprivate

◆ sessionDestroyed()

static void VideoComponent::Pimpl::MediaSession::Controller::sessionDestroyed ( JNIEnv *  ,
jobject  ,
jlong  host 
)
inlinestaticprivate

References JUCE_VIDEO_LOG.

◆ setPosition()

void VideoComponent::Pimpl::MediaSession::Controller::setPosition ( double  newPosition)
inline

◆ setVolume()

void VideoComponent::Pimpl::MediaSession::Controller::setVolume ( float  newVolume)
inline

◆ stateChanged()

void VideoComponent::Pimpl::MediaSession::Controller::stateChanged ( jobject  playbackState)
inlineprivate

◆ stop()

void VideoComponent::Pimpl::MediaSession::Controller::stop ( )
inline

Member Data Documentation

◆ controllerCallback

GlobalRef VideoComponent::Pimpl::MediaSession::Controller::controllerCallback
private

Referenced by Controller(), and ~Controller().

◆ controllerTransportControls

GlobalRef VideoComponent::Pimpl::MediaSession::Controller::controllerTransportControls
private

Referenced by closeVideo(), load(), play(), setPosition(), and stop().

◆ nativeController

GlobalRef VideoComponent::Pimpl::MediaSession::Controller::nativeController
private

◆ owner

MediaSession& VideoComponent::Pimpl::MediaSession::Controller::owner
private

Referenced by stateChanged().

◆ wasPaused

bool VideoComponent::Pimpl::MediaSession::Controller::wasPaused = true
private

Referenced by stateChanged().

◆ wasPlaying

bool VideoComponent::Pimpl::MediaSession::Controller::wasPlaying = false
private

Referenced by stateChanged().


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