Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
avfmediaplayer.mm File Reference
#include "avfmediaplayer_p.h"
#include "avfvideorenderercontrol_p.h"
#include <avfvideosink_p.h>
#include <avfmetadata_p.h>
#include "qaudiooutput.h"
#include "private/qplatformaudiooutput_p.h"
#include <qpointer.h>
#include <QFileInfo>
#include <QtCore/qmath.h>
#import <AVFoundation/AVFoundation.h>
#include "moc_avfmediaplayer_p.cpp"
+ Include dependency graph for avfmediaplayer.mm:

Go to the source code of this file.

Classes

class  AVFMediaPlayerObserver
 

Functions

static void setURL (AVFMediaPlayerObserver *observer, const QByteArray &url, const QString &mimeType=QString())
 
static void setStreamURL (AVFMediaPlayerObserver *observer, const QByteArray &url)
 

Variables

static QT_USE_NAMESPACE NSString *const AVF_TRACKS_KEY = @"@"tracks"
 
static NSString *const AVF_PLAYABLE_KEY = @"@"playable"
 
static NSString *const AVF_STATUS_KEY = @"@"status"
 
static NSString *const AVF_BUFFER_LIKELY_KEEP_UP_KEY = @"@"playbackLikelyToKeepUp"
 
static NSString *const AVF_RATE_KEY = @"@"rate"
 
static NSString *const AVF_CURRENT_ITEM_KEY = @"@"currentItem"
 
static NSString *const AVF_CURRENT_ITEM_DURATION_KEY = @"@"currentItem.duration"
 
static voidAVFMediaPlayerObserverRateObservationContext = &AVFMediaPlayerObserverRateObservationContext
 
static voidAVFMediaPlayerObserverStatusObservationContext = &AVFMediaPlayerObserverStatusObservationContext
 
static voidAVFMediaPlayerObserverPresentationSizeContext = &AVFMediaPlayerObserverPresentationSizeContext
 
static voidAVFMediaPlayerObserverBufferLikelyToKeepUpContext = &AVFMediaPlayerObserverBufferLikelyToKeepUpContext
 
static voidAVFMediaPlayerObserverTracksContext = &AVFMediaPlayerObserverTracksContext
 
static voidAVFMediaPlayerObserverCurrentItemObservationContext = &AVFMediaPlayerObserverCurrentItemObservationContext
 
static voidAVFMediaPlayerObserverCurrentItemDurationObservationContext = &AVFMediaPlayerObserverCurrentItemDurationObservationContext
 
AVPlayer * m_player
 
AVPlayerItem * m_playerItem
 
AVPlayerLayer * m_playerLayer
 
NSURL * m_URL
 
BOOL m_bufferIsLikelyToKeepUp
 
NSData * m_data
 
NSString * m_mimeType
 

Function Documentation

◆ setStreamURL()

static void setStreamURL ( AVFMediaPlayerObserver observer,
const QByteArray url 
)
static

Definition at line 542 of file avfmediaplayer.mm.

References QString::fromUtf8(), QByteArrayLiteral, setURL(), and url.

Referenced by AVFMediaPlayer::setMedia(), and AVFMediaPlayer::streamReady().

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

◆ setURL()

static void setURL ( AVFMediaPlayerObserver observer,
const QByteArray url,
const QString mimeType = QString() 
)
static

Definition at line 535 of file avfmediaplayer.mm.

References AVFMediaPlayerObserver::setURL:mimeType:.

Referenced by AVFMediaPlayer::setMedia(), and setStreamURL().

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

Variable Documentation

◆ AVF_BUFFER_LIKELY_KEEP_UP_KEY

NSString* const AVF_BUFFER_LIKELY_KEEP_UP_KEY = @"@"playbackLikelyToKeepUp"
static

Definition at line 26 of file avfmediaplayer.mm.

◆ AVF_CURRENT_ITEM_DURATION_KEY

NSString* const AVF_CURRENT_ITEM_DURATION_KEY = @"@"currentItem.duration"
static

Definition at line 31 of file avfmediaplayer.mm.

◆ AVF_CURRENT_ITEM_KEY

NSString* const AVF_CURRENT_ITEM_KEY = @"@"currentItem"
static

Definition at line 30 of file avfmediaplayer.mm.

◆ AVF_PLAYABLE_KEY

NSString* const AVF_PLAYABLE_KEY = @"@"playable"
static

Definition at line 22 of file avfmediaplayer.mm.

◆ AVF_RATE_KEY

NSString* const AVF_RATE_KEY = @"@"rate"
static

Definition at line 29 of file avfmediaplayer.mm.

◆ AVF_STATUS_KEY

NSString* const AVF_STATUS_KEY = @"@"status"
static

Definition at line 25 of file avfmediaplayer.mm.

◆ AVF_TRACKS_KEY

QT_USE_NAMESPACE NSString* const AVF_TRACKS_KEY = @"@"tracks"
static

Definition at line 21 of file avfmediaplayer.mm.

◆ AVFMediaPlayerObserverBufferLikelyToKeepUpContext

void* AVFMediaPlayerObserverBufferLikelyToKeepUpContext = &AVFMediaPlayerObserverBufferLikelyToKeepUpContext
static

Definition at line 36 of file avfmediaplayer.mm.

◆ AVFMediaPlayerObserverCurrentItemDurationObservationContext

void* AVFMediaPlayerObserverCurrentItemDurationObservationContext = &AVFMediaPlayerObserverCurrentItemDurationObservationContext
static

Definition at line 39 of file avfmediaplayer.mm.

◆ AVFMediaPlayerObserverCurrentItemObservationContext

void* AVFMediaPlayerObserverCurrentItemObservationContext = &AVFMediaPlayerObserverCurrentItemObservationContext
static

Definition at line 38 of file avfmediaplayer.mm.

◆ AVFMediaPlayerObserverPresentationSizeContext

void* AVFMediaPlayerObserverPresentationSizeContext = &AVFMediaPlayerObserverPresentationSizeContext
static

Definition at line 35 of file avfmediaplayer.mm.

◆ AVFMediaPlayerObserverRateObservationContext

void* AVFMediaPlayerObserverRateObservationContext = &AVFMediaPlayerObserverRateObservationContext
static

Definition at line 33 of file avfmediaplayer.mm.

◆ AVFMediaPlayerObserverStatusObservationContext

void* AVFMediaPlayerObserverStatusObservationContext = &AVFMediaPlayerObserverStatusObservationContext
static

Definition at line 34 of file avfmediaplayer.mm.

◆ AVFMediaPlayerObserverTracksContext

void* AVFMediaPlayerObserverTracksContext = &AVFMediaPlayerObserverTracksContext
static

Definition at line 37 of file avfmediaplayer.mm.

◆ m_bufferIsLikelyToKeepUp

BOOL m_bufferIsLikelyToKeepUp

Definition at line 70 of file avfmediaplayer.mm.

◆ m_data

NSData* m_data

Definition at line 71 of file avfmediaplayer.mm.

Referenced by QQmlSA::Element::Element(), icutils::Node::Node(), QConicalGradient::QConicalGradient(), QConicalGradient::QConicalGradient(), QHVContainer< T >::QHVContainer(), QIconCacheGtkReader::QIconCacheGtkReader(), QLinearGradient::QLinearGradient(), QLinearGradient::QLinearGradient(), QQmltcObjectCreationHelper::QQmltcObjectCreationHelper(), QQmltcObjectCreationHelper::QQmltcObjectCreationHelper(), QRadialGradient::QRadialGradient(), QRadialGradient::QRadialGradient(), QRadialGradient::QRadialGradient(), QRadialGradient::QRadialGradient(), QRadialGradient::QRadialGradient(), QV4::SharedInternalClassDataPrivate< PropertyAttributes >::SharedInternalClassDataPrivate(), QV4::SharedInternalClassDataPrivate< PropertyAttributes >::SharedInternalClassDataPrivate(), QQmlSA::SourceLocation::SourceLocation(), QQmlSA::SourceLocation::SourceLocation(), QV4::SharedInternalClassDataPrivate< PropertyAttributes >::~SharedInternalClassDataPrivate(), QConicalGradient::angle(), QByteArrayView::back(), QRadialGradient::center(), QConicalGradient::center(), QRadialGradient::centerRadius(), QModelRoleData::clearData(), QSGMaterialShader::RenderState::combinedMatrix(), QHashedCStringRef::constData(), QRhiTextureSubresourceUploadDescription::data(), QModelRoleData::data(), QByteArrayView::data(), QModelRoleData::data(), QSGMaterialShader::RenderState::determinant(), QSGMaterialShader::RenderState::devicePixelRatio(), QSGMaterialShader::RenderState::deviceRect(), QLinearGradient::finalStop(), QRadialGradient::focalPoint(), QRadialGradient::focalRadius(), QByteArrayView::front(), QQmltcObjectCreationHelper::get(), QV4::SharedInternalClassDataPrivate< PropertyAttributes >::grow(), icutils::Node::hasPermanentMark(), icutils::Node::hasTemporaryMark(), icutils::Node::index(), QByteArrayView::isNull(), QIconCacheGtkReader::lookup(), QByteArrayView::mid(), QSGMaterialShader::RenderState::modelViewMatrix(), QDBusReply< T >::operator=(), QQmlSA::SourceLocation::operator=(), icutils::Node::operator==(), QByteArrayView::operator[](), QMaxHeap< T >::pop(), QSGMaterialShader::RenderState::projectionMatrix(), QMaxHeap< T >::push(), QRadialGradient::radius(), QSGMaterialShader::RenderState::resourceUpdateBatch(), QSGMaterialShader::RenderState::rhi(), QQmltcObjectCreationHelper::set(), QConicalGradient::setAngle(), QRadialGradient::setCenter(), QConicalGradient::setCenter(), QRadialGradient::setCenterRadius(), QRhiTextureSubresourceUploadDescription::setData(), QModelRoleData::setData(), QLinearGradient::setFinalStop(), QRadialGradient::setFocalPoint(), QRadialGradient::setFocalRadius(), icutils::Node::setPermanentMark(), QRadialGradient::setRadius(), QLinearGradient::setStart(), icutils::Node::setTemporaryMark(), QLinearGradient::start(), QSGMaterialShader::RenderState::uniformData(), QSGGeometry::vertexData(), QSGGeometry::vertexData(), QSGGeometry::vertexDataAsColoredPoint2D(), QSGGeometry::vertexDataAsColoredPoint2D(), QSGGeometry::vertexDataAsPoint2D(), QSGGeometry::vertexDataAsPoint2D(), QSGGeometry::vertexDataAsTexturedPoint2D(), QSGGeometry::vertexDataAsTexturedPoint2D(), QSGMaterialShader::RenderState::viewportRect(), and QHashedCStringRef::writeUtf16().

◆ m_mimeType

NSString* m_mimeType

◆ m_player

AVPlayer* m_player
Initial value:
{
@private
AVFCameraSession * m_session

Definition at line 66 of file avfmediaplayer.mm.

◆ m_playerItem

AVPlayerItem* m_playerItem

Definition at line 67 of file avfmediaplayer.mm.

◆ m_playerLayer

AVPlayerLayer* m_playerLayer

Definition at line 68 of file avfmediaplayer.mm.

◆ m_URL

NSURL* m_URL

Definition at line 69 of file avfmediaplayer.mm.