JUCE  v5.4.1-191-g0ab5e696f
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

References juce::getEnv().

◆ ~Controller()

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

References juce::getEnv().

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

References juce::getEnv().

◆ createControllerCallbacks()

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

References juce::getEnv().

◆ getPlaySpeed()

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

References juce::getEnv().

◆ getPosition()

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

References juce::getEnv().

◆ getVolume()

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

References juce::getEnv(), and int().

◆ 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

References juce::getEnv().

◆ 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

References juce::getEnv().

◆ setVolume()

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

References juce::getEnv(), and juce::jmin().

◆ stateChanged()

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

◆ stop()

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

References juce::getEnv().

Member Data Documentation

◆ controllerCallback

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

◆ controllerTransportControls

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

◆ nativeController

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

◆ owner

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

◆ wasPaused

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

◆ wasPlaying

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

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