diff options
author | Andy Nichols <andy.nichols@digia.com> | 2013-08-14 16:42:44 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-27 14:15:54 +0200 |
commit | 17a700292ad9289e8de199dc50b3e222ede42e1d (patch) | |
tree | efdd51bbb96f3a71525d2b956b301bbc84f70d36 /src/plugins/avfoundation/mediaplayer/mediaplayer.pro | |
parent | d3531cb0cc41a901b11a02d41685532684511bbd (diff) |
AVFoundation: Enable use of QMediaPlayer for audio on iOS
This commit disables the video components of the AVFoundation
mediaplayer backend when building for iOS and enables the use of
QMediaPlayer with audio assets.
Change-Id: Iadd6f9c61ed1e656301326e90a22cbca6428b654
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src/plugins/avfoundation/mediaplayer/mediaplayer.pro')
-rw-r--r-- | src/plugins/avfoundation/mediaplayer/mediaplayer.pro | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/src/plugins/avfoundation/mediaplayer/mediaplayer.pro b/src/plugins/avfoundation/mediaplayer/mediaplayer.pro index a61c62d01..21edf89ff 100644 --- a/src/plugins/avfoundation/mediaplayer/mediaplayer.pro +++ b/src/plugins/avfoundation/mediaplayer/mediaplayer.pro @@ -20,32 +20,39 @@ HEADERS += \ avfmediaplayermetadatacontrol.h \ avfmediaplayerservice.h \ avfmediaplayersession.h \ - avfmediaplayerserviceplugin.h \ - avfvideorenderercontrol.h \ - avfdisplaylink.h \ - avfvideoframerenderer.h \ - avfvideooutput.h + avfmediaplayerserviceplugin.h OBJECTIVE_SOURCES += \ avfmediaplayercontrol.mm \ avfmediaplayermetadatacontrol.mm \ avfmediaplayerservice.mm \ avfmediaplayerserviceplugin.mm \ - avfmediaplayersession.mm \ - avfvideorenderercontrol.mm \ - avfdisplaylink.mm \ - avfvideoframerenderer.mm \ - avfvideooutput.mm - -qtHaveModule(widgets) { - QT += multimediawidgets-private opengl - HEADERS += \ - avfvideowidgetcontrol.h \ - avfvideowidget.h + avfmediaplayersession.mm +!ios { + HEADERS += \ + avfvideorenderercontrol.h \ + avfdisplaylink.h \ + avfvideoframerenderer.h \ + avfvideooutput.h OBJECTIVE_SOURCES += \ - avfvideowidgetcontrol.mm \ - avfvideowidget.mm + avfvideorenderercontrol.mm \ + avfdisplaylink.mm \ + avfvideoframerenderer.mm \ + avfvideooutput.mm + + LIBS += -framework QuartzCore -framework AppKit + + qtHaveModule(widgets) { + QT += multimediawidgets-private opengl + HEADERS += \ + avfvideowidgetcontrol.h \ + avfvideowidget.h + + OBJECTIVE_SOURCES += \ + avfvideowidgetcontrol.mm \ + avfvideowidget.mm + } } OTHER_FILES += \ |