Files
qtmultimedia/src/plugins/avfoundation/mediaplayer/mediaplayer.pro
Andy Nichols ea5d56c5ab AVFoundation: Add QVideoWindowControl support
This adds the capability to render videos directly to native
window surfaces when using the AVFoundation plugin.  This adds limited
support for displaying videos from QML on iOS.  These videos are
displayed in a CALayer above the QQuickWindow, so it will not be
possible to render any QtQuick items on top of a video using the
QVideoWindowControl to provide video.

[ChangeLog][QtMultimedia][iOS] Add limited support for playing videos in
QtQuick on iOS (Videos are played on top of scene with limited transform
support).

Change-Id: I80381d9a07b45b6fa1959678166e6da0004f8c19
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
2014-03-20 23:06:20 +01:00

62 lines
1.4 KiB
Prolog

load(qt_build_config)
#DEFINES += QT_DEBUG_AVF
# Avoid clash with a variable named `slots' in a Quartz header
CONFIG += no_keywords
TARGET = qavfmediaplayer
QT += multimedia-private network
PLUGIN_TYPE = mediaservice
PLUGIN_CLASS_NAME = AVFMediaPlayerServicePlugin
load(qt_plugin)
LIBS += -framework AVFoundation -framework CoreMedia
DEFINES += QMEDIA_AVF_MEDIAPLAYER
HEADERS += \
avfmediaplayercontrol.h \
avfmediaplayermetadatacontrol.h \
avfmediaplayerservice.h \
avfmediaplayersession.h \
avfmediaplayerserviceplugin.h \
avfvideooutput.h \
avfvideowindowcontrol.h
OBJECTIVE_SOURCES += \
avfmediaplayercontrol.mm \
avfmediaplayermetadatacontrol.mm \
avfmediaplayerservice.mm \
avfmediaplayerserviceplugin.mm \
avfmediaplayersession.mm \
avfvideooutput.mm \
avfvideowindowcontrol.mm
qtHaveModule(widgets) {
QT += multimediawidgets-private
HEADERS += \
avfvideowidgetcontrol.h \
avfvideowidget.h
OBJECTIVE_SOURCES += \
avfvideowidgetcontrol.mm \
avfvideowidget.mm
}
!ios {
LIBS += -framework QuartzCore -framework AppKit
HEADERS += \
avfvideorenderercontrol.h \
avfdisplaylink.h \
avfvideoframerenderer.h
OBJECTIVE_SOURCES += \
avfvideorenderercontrol.mm \
avfdisplaylink.mm \
avfvideoframerenderer.mm
}
OTHER_FILES += \
avfmediaplayer.json