Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
avfmediaplayer.mm File Reference

(c3f41165ada7c7487a76c5432bde9ea43458669c)

#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>
#include <QtCore/qmutex.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
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()

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

Definition at line 585 of file avfmediaplayer.mm.

◆ setURL()

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

Definition at line 578 of file avfmediaplayer.mm.

Variable Documentation

◆ AVF_BUFFER_LIKELY_KEEP_UP_KEY

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

Definition at line 27 of file avfmediaplayer.mm.

◆ AVF_CURRENT_ITEM_DURATION_KEY

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

Definition at line 32 of file avfmediaplayer.mm.

◆ AVF_CURRENT_ITEM_KEY

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

Definition at line 31 of file avfmediaplayer.mm.

◆ AVF_PLAYABLE_KEY

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

Definition at line 23 of file avfmediaplayer.mm.

◆ AVF_RATE_KEY

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

Definition at line 30 of file avfmediaplayer.mm.

◆ AVF_STATUS_KEY

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

Definition at line 26 of file avfmediaplayer.mm.

◆ AVF_TRACKS_KEY

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

Definition at line 22 of file avfmediaplayer.mm.

◆ AVFMediaPlayerObserverBufferLikelyToKeepUpContext

void * AVFMediaPlayerObserverBufferLikelyToKeepUpContext = &AVFMediaPlayerObserverBufferLikelyToKeepUpContext
static

Definition at line 38 of file avfmediaplayer.mm.

◆ AVFMediaPlayerObserverCurrentItemDurationObservationContext

void * AVFMediaPlayerObserverCurrentItemDurationObservationContext = &AVFMediaPlayerObserverCurrentItemDurationObservationContext
static

Definition at line 41 of file avfmediaplayer.mm.

◆ AVFMediaPlayerObserverCurrentItemObservationContext

void * AVFMediaPlayerObserverCurrentItemObservationContext = &AVFMediaPlayerObserverCurrentItemObservationContext
static

Definition at line 40 of file avfmediaplayer.mm.

◆ AVFMediaPlayerObserverPresentationSizeContext

void * AVFMediaPlayerObserverPresentationSizeContext = &AVFMediaPlayerObserverPresentationSizeContext
static

Definition at line 37 of file avfmediaplayer.mm.

◆ AVFMediaPlayerObserverRateObservationContext

void * AVFMediaPlayerObserverRateObservationContext
static
Initial value:
=
static void * AVFMediaPlayerObserverRateObservationContext

Definition at line 34 of file avfmediaplayer.mm.

◆ AVFMediaPlayerObserverStatusObservationContext

void * AVFMediaPlayerObserverStatusObservationContext = &AVFMediaPlayerObserverStatusObservationContext
static

Definition at line 36 of file avfmediaplayer.mm.

◆ AVFMediaPlayerObserverTracksContext

void * AVFMediaPlayerObserverTracksContext = &AVFMediaPlayerObserverTracksContext
static

Definition at line 39 of file avfmediaplayer.mm.

◆ m_bufferIsLikelyToKeepUp

BOOL m_bufferIsLikelyToKeepUp

Definition at line 78 of file avfmediaplayer.mm.

◆ m_data

NSData* m_data

Definition at line 79 of file avfmediaplayer.mm.

◆ m_mimeType

NSString* m_mimeType

Definition at line 80 of file avfmediaplayer.mm.

◆ m_player

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

Definition at line 74 of file avfmediaplayer.mm.

◆ m_playerItem

AVPlayerItem* m_playerItem

Definition at line 75 of file avfmediaplayer.mm.

◆ m_playerLayer

AVPlayerLayer* m_playerLayer

Definition at line 76 of file avfmediaplayer.mm.

◆ m_URL

NSURL* m_URL

Definition at line 77 of file avfmediaplayer.mm.