diff options
Diffstat (limited to 'src/multimedia/platform/darwin/mediaplayer/avfmediaplayersession.mm')
-rw-r--r-- | src/multimedia/platform/darwin/mediaplayer/avfmediaplayersession.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/multimedia/platform/darwin/mediaplayer/avfmediaplayersession.mm b/src/multimedia/platform/darwin/mediaplayer/avfmediaplayersession.mm index 7fa6d25c6..386e66ecd 100644 --- a/src/multimedia/platform/darwin/mediaplayer/avfmediaplayersession.mm +++ b/src/multimedia/platform/darwin/mediaplayer/avfmediaplayersession.mm @@ -39,7 +39,9 @@ #include "avfmediaplayersession_p.h" #include "avfmediaplayerservice_p.h" +#include "avfmediaplayercontrol_p.h" #include "avfvideooutput_p.h" +#include "avfmetadata_p.h" #include <qpointer.h> #include <QFileInfo> @@ -945,6 +947,10 @@ void AVFMediaPlayerSession::processLoadStateChange(QMediaPlayer::State newState) AVPlayerItem *playerItem = [static_cast<AVFMediaPlayerSessionObserver*>(m_observer) playerItem]; + // get the meta data + QMediaMetaData metaData = AVFMetaData::fromAsset(playerItem.asset); + static_cast<AVFMediaPlayerControl *>(m_service->player())->setMetaData(metaData); + if (playerItem) { // Check each track for audio and video content AVAssetTrack *videoTrack = nil; |