winrt: Add media playback service

This introduces a MediaPlayer service based on the MFEngineEx API. Only
scene graph video rendering is supported at this time. The video renderer
control is abstracted in order to provide a base for future video nodes
which do not source their content from the MF engine.

[ChangeLog] Media player support was added to the winrt backend.

Change-Id: I8155a1030466ea352fad0a87d1ae97a88983760c
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
This commit is contained in:
Andrew Knight
2014-08-21 10:55:10 +03:00
committed by Maurice Kalinowski
parent 5d04ed2a0a
commit 778b233bcd
12 changed files with 1921 additions and 1 deletions

View File

@@ -43,9 +43,15 @@
#include <QtCore/QFile>
#include "qwinrtserviceplugin.h"
#include "qwinrtmediaplayerservice.h"
QT_USE_NAMESPACE
QMediaService *QWinRTServicePlugin::create(QString const &key)
{
if (key == QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER))
return new QWinRTMediaPlayerService(this);
return Q_NULLPTR;
}
@@ -57,5 +63,8 @@ void QWinRTServicePlugin::release(QMediaService *service)
QMediaServiceProviderHint::Features QWinRTServicePlugin::supportedFeatures(
const QByteArray &service) const
{
if (service == Q_MEDIASERVICE_MEDIAPLAYER)
return QMediaServiceProviderHint::StreamPlayback | QMediaServiceProviderHint::VideoSurface;
return QMediaServiceProviderHint::Features();
}