io.qt.multimedia.QMediaPlayer Maven / Gradle / Ivy
Show all versions of qtjambi-multimedia Show documentation
package io.qt.multimedia;
import io.qt.*;
/**
* Allows the playing of a media files
* Java wrapper for Qt class QMediaPlayer
*/
public class QMediaPlayer extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
@QtPropertyMember(enabled=false)
private Object __rcAudioBufferOutput;
@QtPropertyMember(enabled=false)
private Object __rcAudioOutput;
@QtPropertyMember(enabled=false)
private Object __rcSourceDevice;
@QtPropertyMember(enabled=false)
private Object __rcVideoOutput;
@QtPropertyMember(enabled=false)
private Object __rcVideoSink;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QMediaPlayer.class);
/**
* Java wrapper for Qt enum QMediaPlayer::Error
*/
public enum Error implements QtEnumerator {
/**
* Representing QMediaPlayer:: NoError
*/
NoError(0),
/**
* Representing QMediaPlayer:: ResourceError
*/
ResourceError(1),
/**
* Representing QMediaPlayer:: FormatError
*/
FormatError(2),
/**
* Representing QMediaPlayer:: NetworkError
*/
NetworkError(3),
/**
* Representing QMediaPlayer:: AccessDeniedError
*/
AccessDeniedError(4);
static {
QtJambi_LibraryUtilities.initialize();
}
private Error(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Error resolve(int value) {
switch (value) {
case 0: return NoError;
case 1: return ResourceError;
case 2: return FormatError;
case 3: return NetworkError;
case 4: return AccessDeniedError;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QMediaPlayer::Loops
*/
public enum Loops implements QtEnumerator {
/**
* Representing QMediaPlayer:: Infinite
*/
Infinite(-1),
/**
* Representing QMediaPlayer:: Once
*/
Once(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private Loops(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Loops resolve(int value) {
switch (value) {
case -1: return Infinite;
case 1: return Once;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QMediaPlayer::MediaStatus
*/
public enum MediaStatus implements QtEnumerator {
/**
* Representing QMediaPlayer:: NoMedia
*/
NoMedia(0),
/**
* Representing QMediaPlayer:: LoadingMedia
*/
LoadingMedia(1),
/**
* Representing QMediaPlayer:: LoadedMedia
*/
LoadedMedia(2),
/**
* Representing QMediaPlayer:: StalledMedia
*/
StalledMedia(3),
/**
* Representing QMediaPlayer:: BufferingMedia
*/
BufferingMedia(4),
/**
* Representing QMediaPlayer:: BufferedMedia
*/
BufferedMedia(5),
/**
* Representing QMediaPlayer:: EndOfMedia
*/
EndOfMedia(6),
/**
* Representing QMediaPlayer:: InvalidMedia
*/
InvalidMedia(7);
static {
QtJambi_LibraryUtilities.initialize();
}
private MediaStatus(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull MediaStatus resolve(int value) {
switch (value) {
case 0: return NoMedia;
case 1: return LoadingMedia;
case 2: return LoadedMedia;
case 3: return StalledMedia;
case 4: return BufferingMedia;
case 5: return BufferedMedia;
case 6: return EndOfMedia;
case 7: return InvalidMedia;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QMediaPlayer::PlaybackState
*/
public enum PlaybackState implements QtEnumerator {
/**
* Representing QMediaPlayer:: StoppedState
*/
StoppedState(0),
/**
* Representing QMediaPlayer:: PlayingState
*/
PlayingState(1),
/**
* Representing QMediaPlayer:: PausedState
*/
PausedState(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private PlaybackState(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull PlaybackState resolve(int value) {
switch (value) {
case 0: return StoppedState;
case 1: return PlayingState;
case 2: return PausedState;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QMediaPlayer:: activeTracksChanged()
*/
@QtPropertyNotify(name="activeAudioTrack")
public final @NonNull Signal0 activeTracksChanged = new Signal0();
/**
* See QMediaPlayer:: audioBufferOutputChanged()
*/
@QtPropertyNotify(name="audioBufferOutput")
public final @NonNull Signal0 audioBufferOutputChanged = new Signal0();
/**
* See QMediaPlayer:: audioOutputChanged()
*/
@QtPropertyNotify(name="audioOutput")
public final @NonNull Signal0 audioOutputChanged = new Signal0();
/**
* See QMediaPlayer:: bufferProgressChanged(float)
*/
@QtPropertyNotify(name="bufferProgress")
public final @NonNull Signal1 bufferProgressChanged = new Signal1<>();
/**
* See QMediaPlayer:: durationChanged(qint64)
*/
@QtPropertyNotify(name="duration")
public final @NonNull Signal1 durationChanged = new Signal1<>();
/**
* See QMediaPlayer:: errorChanged()
*/
@QtPropertyNotify(name="error")
public final @NonNull Signal0 errorChanged = new Signal0();
/**
* See QMediaPlayer:: errorOccurred(QMediaPlayer::Error, QString)
*/
public final @NonNull Signal2 errorOccurred = new Signal2<>();
/**
* See QMediaPlayer:: hasAudioChanged(bool)
*/
@QtPropertyNotify(name="hasAudio")
public final @NonNull Signal1 hasAudioChanged = new Signal1<>();
/**
* See QMediaPlayer:: hasVideoChanged(bool)
*/
@QtPropertyNotify(name="hasVideo")
public final @NonNull Signal1 hasVideoChanged = new Signal1<>();
/**
* See QMediaPlayer:: loopsChanged()
*/
@QtPropertyNotify(name="loops")
public final @NonNull Signal0 loopsChanged = new Signal0();
/**
* See QMediaPlayer:: mediaStatusChanged(QMediaPlayer::MediaStatus)
*/
@QtPropertyNotify(name="mediaStatus")
public final @NonNull Signal1 mediaStatusChanged = new Signal1<>();
/**
* See QMediaPlayer:: metaDataChanged()
*/
@QtPropertyNotify(name="metaData")
public final @NonNull Signal0 metaDataChanged = new Signal0();
/**
* See QMediaPlayer:: playbackRateChanged(qreal)
*/
@QtPropertyNotify(name="playbackRate")
public final @NonNull Signal1 playbackRateChanged = new Signal1<>();
/**
* See QMediaPlayer:: playbackStateChanged(QMediaPlayer::PlaybackState)
*/
@QtPropertyNotify(name="playbackState")
public final @NonNull Signal1 playbackStateChanged = new Signal1<>();
/**
* See QMediaPlayer:: playingChanged(bool)
*/
@QtPropertyNotify(name="playing")
public final @NonNull Signal1 playingChanged = new Signal1<>();
/**
* See QMediaPlayer:: positionChanged(qint64)
*/
@QtPropertyNotify(name="position")
public final @NonNull Signal1 positionChanged = new Signal1<>();
/**
* See QMediaPlayer:: seekableChanged(bool)
*/
@QtPropertyNotify(name="seekable")
public final @NonNull Signal1 seekableChanged = new Signal1<>();
/**
* See QMediaPlayer:: sourceChanged(QUrl)
*/
@QtPropertyNotify(name="source")
public final @NonNull Signal1 sourceChanged = new Signal1<>();
/**
* See QMediaPlayer:: tracksChanged()
*/
@QtPropertyNotify(name="audioTracks")
public final @NonNull Signal0 tracksChanged = new Signal0();
/**
* See QMediaPlayer:: videoOutputChanged()
*/
@QtPropertyNotify(name="videoOutput")
public final @NonNull Signal0 videoOutputChanged = new Signal0();
/**
* See QMediaPlayer:: QMediaPlayer(QObject*)
* @param parent
*/
public QMediaPlayer(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QMediaPlayer instance, io.qt.core.QObject parent);
/**
* See QMediaPlayer:: activeAudioTrack()const
* @return
*/
@QtPropertyReader(name="activeAudioTrack")
@QtUninvokable
public final int activeAudioTrack(){
return activeAudioTrack_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int activeAudioTrack_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: activeSubtitleTrack()const
* @return
*/
@QtPropertyReader(name="activeSubtitleTrack")
@QtUninvokable
public final int activeSubtitleTrack(){
return activeSubtitleTrack_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int activeSubtitleTrack_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: activeVideoTrack()const
* @return
*/
@QtPropertyReader(name="activeVideoTrack")
@QtUninvokable
public final int activeVideoTrack(){
return activeVideoTrack_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int activeVideoTrack_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: audioBufferOutput()const
* @return
*/
@QtPropertyReader(name="audioBufferOutput")
@QtUninvokable
public final io.qt.multimedia.@Nullable QAudioBufferOutput audioBufferOutput(){
return audioBufferOutput_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.multimedia.QAudioBufferOutput audioBufferOutput_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: audioOutput()const
* @return
*/
@QtPropertyReader(name="audioOutput")
@QtUninvokable
public final io.qt.multimedia.@Nullable QAudioOutput audioOutput(){
return audioOutput_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.multimedia.QAudioOutput audioOutput_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: audioTracks()const
* @return
*/
@QtPropertyReader(name="audioTracks")
@QtUninvokable
public final io.qt.core.@NonNull QList audioTracks(){
return audioTracks_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList audioTracks_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: bufferProgress()const
* @return
*/
@QtPropertyReader(name="bufferProgress")
@QtUninvokable
public final float bufferProgress(){
return bufferProgress_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float bufferProgress_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: bufferedTimeRange()const
* @return
*/
@QtUninvokable
public final io.qt.multimedia.@NonNull QMediaTimeRange bufferedTimeRange(){
return bufferedTimeRange_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.multimedia.QMediaTimeRange bufferedTimeRange_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: duration()const
* @return
*/
@QtPropertyReader(name="duration")
@QtUninvokable
public final long duration(){
return duration_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long duration_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: error()const
* @return
*/
@QtPropertyReader(name="error")
@QtUninvokable
public final io.qt.multimedia.QMediaPlayer.@NonNull Error error(){
return io.qt.multimedia.QMediaPlayer.Error.resolve(error_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int error_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: errorString()const
* @return
*/
@QtPropertyReader(name="errorString")
@QtUninvokable
public final java.lang.@NonNull String errorString(){
return errorString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String errorString_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: hasAudio()const
* @return
*/
@QtPropertyReader(name="hasAudio")
@QtUninvokable
public final boolean hasAudio(){
return hasAudio_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasAudio_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: hasVideo()const
* @return
*/
@QtPropertyReader(name="hasVideo")
@QtUninvokable
public final boolean hasVideo(){
return hasVideo_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasVideo_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: isAvailable()const
* @return
*/
@QtUninvokable
public final boolean isAvailable(){
return isAvailable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isAvailable_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: isPlaying()const
* @return
*/
@QtPropertyReader(name="playing")
@QtUninvokable
public final boolean isPlaying(){
return isPlaying_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isPlaying_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: isSeekable()const
* @return
*/
@QtPropertyReader(name="seekable")
@QtUninvokable
public final boolean isSeekable(){
return isSeekable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isSeekable_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: loops()const
* @return
*/
@QtPropertyReader(name="loops")
@QtUninvokable
public final int loops(){
return loops_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int loops_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: mediaStatus()const
* @return
*/
@QtPropertyReader(name="mediaStatus")
@QtUninvokable
public final io.qt.multimedia.QMediaPlayer.@NonNull MediaStatus mediaStatus(){
return io.qt.multimedia.QMediaPlayer.MediaStatus.resolve(mediaStatus_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int mediaStatus_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: metaData()const
* @return
*/
@QtPropertyReader(name="metaData")
@QtUninvokable
public final io.qt.multimedia.@NonNull QMediaMetaData metaData(){
return metaData_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.multimedia.QMediaMetaData metaData_native_constfct(long __this__nativeId);
/**
*
*/
public final void pause(){
pause_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void pause_native(long __this__nativeId);
/**
*
*/
public final void play(){
play_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void play_native(long __this__nativeId);
/**
* See QMediaPlayer:: playbackRate()const
* @return
*/
@QtPropertyReader(name="playbackRate")
@QtUninvokable
public final double playbackRate(){
return playbackRate_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double playbackRate_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: playbackState()const
* @return
*/
@QtPropertyReader(name="playbackState")
@QtUninvokable
public final io.qt.multimedia.QMediaPlayer.@NonNull PlaybackState playbackState(){
return io.qt.multimedia.QMediaPlayer.PlaybackState.resolve(playbackState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int playbackState_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: position()const
* @return
*/
@QtPropertyReader(name="position")
@QtUninvokable
public final long position(){
return position_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long position_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: setActiveAudioTrack(int)
* @param index
*/
@QtPropertyWriter(name="activeAudioTrack")
@QtUninvokable
public final void setActiveAudioTrack(int index){
setActiveAudioTrack_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native void setActiveAudioTrack_native_int(long __this__nativeId, int index);
/**
* See QMediaPlayer:: setActiveSubtitleTrack(int)
* @param index
*/
@QtPropertyWriter(name="activeSubtitleTrack")
@QtUninvokable
public final void setActiveSubtitleTrack(int index){
setActiveSubtitleTrack_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native void setActiveSubtitleTrack_native_int(long __this__nativeId, int index);
/**
* See QMediaPlayer:: setActiveVideoTrack(int)
* @param index
*/
@QtPropertyWriter(name="activeVideoTrack")
@QtUninvokable
public final void setActiveVideoTrack(int index){
setActiveVideoTrack_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native void setActiveVideoTrack_native_int(long __this__nativeId, int index);
/**
* See QMediaPlayer:: setAudioBufferOutput(QAudioBufferOutput*)
* @param output
*/
@QtPropertyWriter(name="audioBufferOutput")
@QtUninvokable
public final void setAudioBufferOutput(io.qt.multimedia.@Nullable QAudioBufferOutput output){
InternalAccess.NativeIdInfo __output__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(output);
setAudioBufferOutput_native_QAudioBufferOutput_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __output__NativeIdInfo.nativeId());
if (__output__NativeIdInfo.needsReferenceCounting()) {
__rcAudioBufferOutput = output;
}else{
__rcAudioBufferOutput = null;
}
}
@QtUninvokable
private native void setAudioBufferOutput_native_QAudioBufferOutput_ptr(long __this__nativeId, long output);
/**
* See QMediaPlayer:: setAudioOutput(QAudioOutput*)
* @param output
*/
@QtPropertyWriter(name="audioOutput")
@QtUninvokable
public final void setAudioOutput(io.qt.multimedia.@Nullable QAudioOutput output){
InternalAccess.NativeIdInfo __output__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(output);
setAudioOutput_native_QAudioOutput_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __output__NativeIdInfo.nativeId());
if (__output__NativeIdInfo.needsReferenceCounting()) {
__rcAudioOutput = output;
}else{
__rcAudioOutput = null;
}
}
@QtUninvokable
private native void setAudioOutput_native_QAudioOutput_ptr(long __this__nativeId, long output);
/**
* See QMediaPlayer:: setLoops(int)
* @param loops
*/
@QtPropertyWriter(name="loops")
@QtUninvokable
public final void setLoops(int loops){
setLoops_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), loops);
}
@QtUninvokable
private native void setLoops_native_int(long __this__nativeId, int loops);
/**
* See QMediaPlayer:: setPlaybackRate(qreal)
* @param rate
*/
@QtPropertyWriter(name="playbackRate")
public final void setPlaybackRate(double rate){
setPlaybackRate_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), rate);
}
private native void setPlaybackRate_native_qreal(long __this__nativeId, double rate);
/**
* See QMediaPlayer:: setPosition(qint64)
* @param position
*/
@QtPropertyWriter(name="position")
public final void setPosition(long position){
setPosition_native_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), position);
}
private native void setPosition_native_qint64(long __this__nativeId, long position);
/**
* See QMediaPlayer:: setSource(QUrl)
* @param source
*/
@QtPropertyWriter(name="source")
public final void setSource(io.qt.core.@NonNull QUrl source){
setSource_native_cref_QUrl(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(source));
}
private native void setSource_native_cref_QUrl(long __this__nativeId, long source);
/**
* See QMediaPlayer:: setSourceDevice(QIODevice*, QUrl)
* @param device
* @param sourceUrl
*/
public final void setSourceDevice(io.qt.core.@Nullable QIODevice device, io.qt.core.@NonNull QUrl sourceUrl){
InternalAccess.NativeIdInfo __device__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(device);
setSourceDevice_native_QIODevice_ptr_cref_QUrl(QtJambi_LibraryUtilities.internal.nativeId(this), __device__NativeIdInfo.nativeId(), QtJambi_LibraryUtilities.internal.checkedNativeId(sourceUrl));
if (__device__NativeIdInfo.needsReferenceCounting()) {
__rcSourceDevice = device;
}else{
__rcSourceDevice = null;
}
}
private native void setSourceDevice_native_QIODevice_ptr_cref_QUrl(long __this__nativeId, long device, long sourceUrl);
/**
* See QMediaPlayer:: setVideoOutput(QObject*)
* @param arg__1
*/
@QtPropertyWriter(name="videoOutput")
@QtUninvokable
public final void setVideoOutput(io.qt.core.@Nullable QObject arg__1){
InternalAccess.NativeIdInfo __arg__1__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(arg__1);
setVideoOutput_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __arg__1__NativeIdInfo.nativeId());
if (__arg__1__NativeIdInfo.needsReferenceCounting()) {
__rcVideoOutput = arg__1;
}else{
__rcVideoOutput = null;
}
}
@QtUninvokable
private native void setVideoOutput_native_QObject_ptr(long __this__nativeId, long arg__1);
/**
* See QMediaPlayer:: setVideoSink(QVideoSink*)
* @param sink
*/
@QtUninvokable
public final void setVideoSink(io.qt.multimedia.@Nullable QVideoSink sink){
InternalAccess.NativeIdInfo __sink__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(sink);
setVideoSink_native_QVideoSink_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __sink__NativeIdInfo.nativeId());
if (__sink__NativeIdInfo.needsReferenceCounting()) {
__rcVideoSink = sink;
}else{
__rcVideoSink = null;
}
}
@QtUninvokable
private native void setVideoSink_native_QVideoSink_ptr(long __this__nativeId, long sink);
/**
* See QMediaPlayer:: source()const
* @return
*/
@QtPropertyReader(name="source")
@QtUninvokable
public final io.qt.core.@NonNull QUrl source(){
return source_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QUrl source_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: sourceDevice()const
* @return
*/
@QtUninvokable
public final io.qt.core.@Nullable QIODevice sourceDevice(){
return sourceDevice_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QIODevice sourceDevice_native_constfct(long __this__nativeId);
/**
*
*/
public final void stop(){
stop_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void stop_native(long __this__nativeId);
/**
* See QMediaPlayer:: subtitleTracks()const
* @return
*/
@QtPropertyReader(name="subtitleTracks")
@QtUninvokable
public final io.qt.core.@NonNull QList subtitleTracks(){
return subtitleTracks_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList subtitleTracks_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: videoOutput()const
* @return
*/
@QtPropertyReader(name="videoOutput")
@QtUninvokable
public final io.qt.core.@Nullable QObject videoOutput(){
return videoOutput_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QObject videoOutput_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: videoSink()const
* @return
*/
@QtUninvokable
public final io.qt.multimedia.@Nullable QVideoSink videoSink(){
return videoSink_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.multimedia.QVideoSink videoSink_native_constfct(long __this__nativeId);
/**
* See QMediaPlayer:: videoTracks()const
* @return
*/
@QtPropertyReader(name="videoTracks")
@QtUninvokable
public final io.qt.core.@NonNull QList videoTracks(){
return videoTracks_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList videoTracks_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QMediaPlayer(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QMediaPlayer(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QMediaPlayer instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QMediaPlayer(io.qt.core.QObject)}
* with parent = null
.
*/
public QMediaPlayer() {
this((io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #activeAudioTrack()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getActiveAudioTrack() {
return activeAudioTrack();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #activeSubtitleTrack()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getActiveSubtitleTrack() {
return activeSubtitleTrack();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #activeVideoTrack()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getActiveVideoTrack() {
return activeVideoTrack();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #audioBufferOutput()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.multimedia.@Nullable QAudioBufferOutput getAudioBufferOutput() {
return audioBufferOutput();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #audioOutput()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.multimedia.@Nullable QAudioOutput getAudioOutput() {
return audioOutput();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #audioTracks()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QList getAudioTracks() {
return audioTracks();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #bufferProgress()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final float getBufferProgress() {
return bufferProgress();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #duration()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final long getDuration() {
return duration();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #error()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.multimedia.QMediaPlayer.@NonNull Error getError() {
return error();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #errorString()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getErrorString() {
return errorString();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #hasAudio()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getHasAudio() {
return hasAudio();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #hasVideo()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getHasVideo() {
return hasVideo();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isPlaying()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getPlaying() {
return isPlaying();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isSeekable()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getSeekable() {
return isSeekable();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #loops()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getLoops() {
return loops();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #mediaStatus()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.multimedia.QMediaPlayer.@NonNull MediaStatus getMediaStatus() {
return mediaStatus();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #metaData()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.multimedia.@NonNull QMediaMetaData getMetaData() {
return metaData();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #playbackRate()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final double getPlaybackRate() {
return playbackRate();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #playbackState()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.multimedia.QMediaPlayer.@NonNull PlaybackState getPlaybackState() {
return playbackState();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #position()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final long getPosition() {
return position();
}
/**
* Overloaded function for {@link #setSource(io.qt.core.QUrl)}.
*/
public final void setSource(java.lang.@NonNull String source) {
setSource(new io.qt.core.QUrl(source));
}
/**
* Overloaded function for {@link #setSourceDevice(io.qt.core.QIODevice, io.qt.core.QUrl)}
* with sourceUrl = new io.qt.core.QUrl()
.
*/
public final void setSourceDevice(io.qt.core.@Nullable QIODevice device) {
setSourceDevice(device, new io.qt.core.QUrl());
}
/**
* Overloaded function for {@link #setSourceDevice(io.qt.core.QIODevice, io.qt.core.QUrl)}.
*/
public final void setSourceDevice(io.qt.core.@Nullable QIODevice device, java.lang.@NonNull String sourceUrl) {
setSourceDevice(device, new io.qt.core.QUrl(sourceUrl));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #source()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QUrl getSource() {
return source();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #subtitleTracks()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QList getSubtitleTracks() {
return subtitleTracks();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #videoOutput()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@Nullable QObject getVideoOutput() {
return videoOutput();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #videoTracks()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QList getVideoTracks() {
return videoTracks();
}
}