Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
androidmediaplayer.cpp File Reference

(4b88a8bd4488e857280c80904a99475a3e831138)

#include "androidmediaplayer_p.h"
#include "androidsurfacetexture_p.h"
#include <QList>
#include <QReadWriteLock>
#include <QString>
#include <QtCore/qcoreapplication.h>
#include <qloggingcategory.h>
#include "moc_androidmediaplayer_p.cpp"
+ Include dependency graph for androidmediaplayer.cpp:

Go to the source code of this file.

Typedefs

typedef QList< AndroidMediaPlayer * > MediaPlayerList
 

Functions

static QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY (lcAudio, "qt.multimedia.audio") AndroidMediaPlayer
 
AndroidMediaPlayer::TrackInfo convertTrackInfo (int streamNumber, QJniObject androidTrackInfo)
 
static void onErrorNative (JNIEnv *env, jobject thiz, jint what, jint extra, jlong id)
 
static void onBufferingUpdateNative (JNIEnv *env, jobject thiz, jint percent, jlong id)
 
static void onProgressUpdateNative (JNIEnv *env, jobject thiz, jint progress, jlong id)
 
static void onDurationChangedNative (JNIEnv *env, jobject thiz, jint duration, jlong id)
 
static void onInfoNative (JNIEnv *env, jobject thiz, jint what, jint extra, jlong id)
 
static void onStateChangedNative (JNIEnv *env, jobject thiz, jint state, jlong id)
 
static void onVideoSizeChangedNative (JNIEnv *env, jobject thiz, jint width, jint height, jlong id)
 
static AndroidMediaPlayergetMediaPlayer (jlong ptr)
 
static void onTrackInfoChangedNative (JNIEnv *env, jobject thiz, jlong ptr)
 
static void onTimedTextChangedNative (JNIEnv *env, jobject thiz, jstring timedText, jint time, jlong ptr)
 

Variables

static const char QtAndroidMediaPlayerClassName [] = "org/qtproject/qt/android/multimedia/QtAndroidMediaPlayer"
 

Typedef Documentation

◆ MediaPlayerList

Definition at line 14 of file androidmediaplayer.cpp.

Function Documentation

◆ convertTrackInfo()

AndroidMediaPlayer::TrackInfo convertTrackInfo ( int streamNumber,
QJniObject androidTrackInfo )

Definition at line 107 of file androidmediaplayer.cpp.

References mimeType, and AndroidMediaPlayer::Unknown.

Referenced by AndroidMediaPlayer::tracksInfo().

+ Here is the caller graph for this function:

◆ getMediaPlayer()

static AndroidMediaPlayer * getMediaPlayer ( jlong ptr)
static

Definition at line 471 of file androidmediaplayer.cpp.

References ptr().

Referenced by onTimedTextChangedNative(), and onTrackInfoChangedNative().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onBufferingUpdateNative()

static void onBufferingUpdateNative ( JNIEnv * env,
jobject thiz,
jint percent,
jlong id )
static

Definition at line 395 of file androidmediaplayer.cpp.

References i, Q_EMIT, Q_UNLIKELY, and Q_UNUSED.

Referenced by AndroidMediaPlayer::registerNativeMethods().

+ Here is the caller graph for this function:

◆ onDurationChangedNative()

static void onDurationChangedNative ( JNIEnv * env,
jobject thiz,
jint duration,
jlong id )
static

Definition at line 419 of file androidmediaplayer.cpp.

References i, Q_EMIT, Q_UNLIKELY, and Q_UNUSED.

Referenced by AndroidMediaPlayer::registerNativeMethods().

+ Here is the caller graph for this function:

◆ onErrorNative()

static void onErrorNative ( JNIEnv * env,
jobject thiz,
jint what,
jint extra,
jlong id )
static

Definition at line 383 of file androidmediaplayer.cpp.

References i, Q_EMIT, Q_UNLIKELY, and Q_UNUSED.

Referenced by AndroidMediaPlayer::registerNativeMethods().

+ Here is the caller graph for this function:

◆ onInfoNative()

static void onInfoNative ( JNIEnv * env,
jobject thiz,
jint what,
jint extra,
jlong id )
static

Definition at line 431 of file androidmediaplayer.cpp.

References i, Q_EMIT, Q_UNLIKELY, and Q_UNUSED.

Referenced by AndroidMediaPlayer::registerNativeMethods().

+ Here is the caller graph for this function:

◆ onProgressUpdateNative()

static void onProgressUpdateNative ( JNIEnv * env,
jobject thiz,
jint progress,
jlong id )
static

Definition at line 407 of file androidmediaplayer.cpp.

References i, Q_EMIT, Q_UNLIKELY, and Q_UNUSED.

Referenced by AndroidMediaPlayer::registerNativeMethods().

+ Here is the caller graph for this function:

◆ onStateChangedNative()

static void onStateChangedNative ( JNIEnv * env,
jobject thiz,
jint state,
jlong id )
static

Definition at line 443 of file androidmediaplayer.cpp.

References i, Q_EMIT, Q_UNLIKELY, Q_UNUSED, and state.

Referenced by AndroidMediaPlayer::registerNativeMethods().

+ Here is the caller graph for this function:

◆ onTimedTextChangedNative()

static void onTimedTextChangedNative ( JNIEnv * env,
jobject thiz,
jstring timedText,
jint time,
jlong ptr )
static

Definition at line 493 of file androidmediaplayer.cpp.

References emit, QString::fromUtf8(), getMediaPlayer(), ptr(), Q_UNUSED, and time.

Referenced by AndroidMediaPlayer::registerNativeMethods().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onTrackInfoChangedNative()

static void onTrackInfoChangedNative ( JNIEnv * env,
jobject thiz,
jlong ptr )
static

Definition at line 480 of file androidmediaplayer.cpp.

References emit, getMediaPlayer(), ptr(), and Q_UNUSED.

Referenced by AndroidMediaPlayer::registerNativeMethods().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onVideoSizeChangedNative()

static void onVideoSizeChangedNative ( JNIEnv * env,
jobject thiz,
jint width,
jint height,
jlong id )
static

Definition at line 455 of file androidmediaplayer.cpp.

References i, Q_EMIT, Q_UNLIKELY, and Q_UNUSED.

Referenced by AndroidMediaPlayer::registerNativeMethods().

+ Here is the caller graph for this function:

◆ Q_LOGGING_CATEGORY()

static QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY ( lcAudio ,
"qt.multimedia.audio"  )
static

Definition at line 20 of file androidmediaplayer.cpp.

References context, and QtAndroidMediaPlayerClassName.

Variable Documentation

◆ QtAndroidMediaPlayerClassName

const char QtAndroidMediaPlayerClassName[] = "org/qtproject/qt/android/multimedia/QtAndroidMediaPlayer"
static