|
| enum | {
MEDIA_INFO_UNKNOWN = 1
,
MEDIA_INFO_VIDEO_RENDERING_START = 3
,
MEDIA_INFO_VIDEO_TRACK_LAGGING = 700
,
MEDIA_INFO_BUFFERING_START = 701
,
MEDIA_INFO_BUFFERING_END = 702
,
MEDIA_INFO_NETWORK_BANDWIDTH = 703
,
MEDIA_INFO_BAD_INTERLEAVING = 800
,
MEDIA_INFO_NOT_SEEKABLE = 801
,
MEDIA_INFO_METADATA_UPDATE = 802
,
MEDIA_INFO_AUDIO_NOT_PLAYING = 804
,
MEDIA_INFO_VIDEO_NOT_PLAYING = 805
,
MEDIA_INFO_UNSUPPORTED_SUBTITE = 901
,
MEDIA_INFO_SUBTITLE_TIMED_OUT = 902
} |
| |
| enum class | State {
idle
,
initialised
,
preparing
,
prepared
,
started
,
paused
,
stopped
,
complete
,
error
,
end
} |
| |
◆ anonymous enum
| Enumerator |
|---|
| MEDIA_INFO_UNKNOWN | |
| MEDIA_INFO_VIDEO_RENDERING_START | |
| MEDIA_INFO_VIDEO_TRACK_LAGGING | |
| MEDIA_INFO_BUFFERING_START | |
| MEDIA_INFO_BUFFERING_END | |
| MEDIA_INFO_NETWORK_BANDWIDTH | |
| MEDIA_INFO_BAD_INTERLEAVING | |
| MEDIA_INFO_NOT_SEEKABLE | |
| MEDIA_INFO_METADATA_UPDATE | |
| MEDIA_INFO_AUDIO_NOT_PLAYING | |
| MEDIA_INFO_VIDEO_NOT_PLAYING | |
| MEDIA_INFO_UNSUPPORTED_SUBTITE | |
| MEDIA_INFO_SUBTITLE_TIMED_OUT | |
◆ State
| Enumerator |
|---|
| idle | |
| initialised | |
| preparing | |
| prepared | |
| started | |
| paused | |
| stopped | |
| complete | |
| error | |
| end | |
◆ Player()
| VideoComponent::Pimpl::MediaSession::Player::Player |
( |
MediaSession & |
ownerToUse | ) |
|
|
inline |
◆ closeVideo()
| void VideoComponent::Pimpl::MediaSession::Player::closeVideo |
( |
| ) |
|
|
inline |
◆ errorCodeToString()
| static String VideoComponent::Pimpl::MediaSession::Player::errorCodeToString |
( |
int |
code | ) |
|
|
inlinestaticprivate |
◆ getAllowedActions()
| int VideoComponent::Pimpl::MediaSession::Player::getAllowedActions |
( |
| ) |
const |
|
inlinenoexcept |
◆ getAudioVolume()
| float VideoComponent::Pimpl::MediaSession::Player::getAudioVolume |
( |
| ) |
const |
|
inline |
◆ getCurrentStateInfo()
| StateInfo VideoComponent::Pimpl::MediaSession::Player::getCurrentStateInfo |
( |
| ) |
const |
|
inlineprivatenoexcept |
References currentState, and stateInfos.
Referenced by closeVideo(), getAllowedActions(), getPlaybackStateFlag(), getPlayPosition(), getPlaySpeed(), getVideoDuration(), getVideoNativeSize(), isPlaying(), pause(), play(), setAudioVolume(), setPlayPosition(), and setPlaySpeed().
◆ getNativeMediaPlayerListenerInterfaces()
| static StringArray VideoComponent::Pimpl::MediaSession::Player::getNativeMediaPlayerListenerInterfaces |
( |
| ) |
|
|
inlinestaticprivate |
◆ getPlaybackStateFlag()
| int VideoComponent::Pimpl::MediaSession::Player::getPlaybackStateFlag |
( |
| ) |
const |
|
inlinenoexcept |
◆ getPlayPosition()
| jint VideoComponent::Pimpl::MediaSession::Player::getPlayPosition |
( |
| ) |
const |
|
inline |
◆ getPlaySpeed()
| double VideoComponent::Pimpl::MediaSession::Player::getPlaySpeed |
( |
| ) |
const |
|
inline |
◆ getVideoDuration()
| jlong VideoComponent::Pimpl::MediaSession::Player::getVideoDuration |
( |
| ) |
const |
|
inline |
◆ getVideoNativeSize()
| Rectangle< int > VideoComponent::Pimpl::MediaSession::Player::getVideoNativeSize |
( |
| ) |
const |
|
inline |
◆ infoCodeToString()
| static String VideoComponent::Pimpl::MediaSession::Player::infoCodeToString |
( |
int |
code | ) |
|
|
inlinestaticprivate |
References MEDIA_INFO_AUDIO_NOT_PLAYING, MEDIA_INFO_BAD_INTERLEAVING, MEDIA_INFO_BUFFERING_END, MEDIA_INFO_BUFFERING_START, MEDIA_INFO_METADATA_UPDATE, MEDIA_INFO_NETWORK_BANDWIDTH, MEDIA_INFO_NOT_SEEKABLE, MEDIA_INFO_SUBTITLE_TIMED_OUT, MEDIA_INFO_UNKNOWN, MEDIA_INFO_UNSUPPORTED_SUBTITE, MEDIA_INFO_VIDEO_NOT_PLAYING, MEDIA_INFO_VIDEO_RENDERING_START, and MEDIA_INFO_VIDEO_TRACK_LAGGING.
Referenced by onInfo().
◆ isPlaying()
| bool VideoComponent::Pimpl::MediaSession::Player::isPlaying |
( |
| ) |
const |
|
inline |
◆ isVideoOpen()
| bool VideoComponent::Pimpl::MediaSession::Player::isVideoOpen |
( |
| ) |
const |
|
inlinenoexcept |
◆ load()
| void VideoComponent::Pimpl::MediaSession::Player::load |
( |
const LocalRef< jstring > & |
mediaId, |
|
|
const LocalRef< jobject > & |
extras |
|
) |
| |
|
inline |
◆ onBufferingUpdate()
| void VideoComponent::Pimpl::MediaSession::Player::onBufferingUpdate |
( |
LocalRef< jobject > & |
mediaPlayer, |
|
|
int |
progress |
|
) |
| |
|
inlineoverrideprivatevirtual |
◆ onCompletion()
| void VideoComponent::Pimpl::MediaSession::Player::onCompletion |
( |
LocalRef< jobject > & |
mediaPlayer | ) |
|
|
inlineoverrideprivatevirtual |
◆ onError()
| bool VideoComponent::Pimpl::MediaSession::Player::onError |
( |
LocalRef< jobject > & |
mediaPlayer, |
|
|
int |
what, |
|
|
int |
extra |
|
) |
| |
|
inlineoverrideprivatevirtual |
◆ onInfo()
| bool VideoComponent::Pimpl::MediaSession::Player::onInfo |
( |
LocalRef< jobject > & |
mediaPlayer, |
|
|
int |
what, |
|
|
int |
extra |
|
) |
| |
|
inlineoverrideprivatevirtual |
◆ onPrepared()
| void VideoComponent::Pimpl::MediaSession::Player::onPrepared |
( |
LocalRef< jobject > & |
mediaPlayer | ) |
|
|
inlineoverrideprivatevirtual |
◆ onSeekComplete()
| void VideoComponent::Pimpl::MediaSession::Player::onSeekComplete |
( |
LocalRef< jobject > & |
mediaPlayer | ) |
|
|
inlineoverrideprivatevirtual |
◆ pause()
| void VideoComponent::Pimpl::MediaSession::Player::pause |
( |
| ) |
|
|
inline |
◆ play()
| void VideoComponent::Pimpl::MediaSession::Player::play |
( |
| ) |
|
|
inline |
◆ setAudioVolume()
| void VideoComponent::Pimpl::MediaSession::Player::setAudioVolume |
( |
float |
newVolume | ) |
|
|
inline |
◆ setDisplay()
| void VideoComponent::Pimpl::MediaSession::Player::setDisplay |
( |
const LocalRef< jobject > & |
surfaceHolder | ) |
|
|
inline |
◆ setPlayPosition()
| void VideoComponent::Pimpl::MediaSession::Player::setPlayPosition |
( |
jint |
newPositionMs | ) |
|
|
inline |
◆ setPlaySpeed()
| void VideoComponent::Pimpl::MediaSession::Player::setPlaySpeed |
( |
double |
newSpeed | ) |
|
|
inline |
◆ currentState
◆ lastAudioVolume
| float VideoComponent::Pimpl::MediaSession::Player::lastAudioVolume = std::numeric_limits<float>::min() |
|
private |
◆ mediaPlayerListener
◆ nativeMediaPlayer
| GlobalRef VideoComponent::Pimpl::MediaSession::Player::nativeMediaPlayer |
|
private |
Referenced by closeVideo(), getPlayPosition(), getPlaySpeed(), getVideoDuration(), getVideoNativeSize(), load(), pause(), play(), setAudioVolume(), setDisplay(), setPlayPosition(), and setPlaySpeed().
◆ nativeMediaPlayerListener
| GlobalRef VideoComponent::Pimpl::MediaSession::Player::nativeMediaPlayerListener |
|
private |
◆ owner
| MediaSession& VideoComponent::Pimpl::MediaSession::Player::owner |
|
private |
◆ stateInfos
| constexpr StateInfo VideoComponent::Pimpl::MediaSession::Player::stateInfos[] |
|
staticconstexprprivate |
◆ videoSurfaceHolder
| GlobalRef VideoComponent::Pimpl::MediaSession::Player::videoSurfaceHolder |
|
private |
The documentation for this class was generated from the following file: