win32 {
contains(config_test_directshow, yes): SUBDIRS += directshow
-# contains(config_test_wmf, yes) : SUBDIRS += wmf
+ contains(config_test_wmf, yes) : SUBDIRS += wmf
}
unix:!mac {
****************************************************************************/
#include "evr9videowindowcontrol.h"
+#include <QtWidgets/qwidget.h>
#include <QtCore/qdebug.h>
#include <QtCore/qglobal.h>
}
if (m_displayControl) {
- m_displayControl->SetVideoWindow(m_windowId);
+ m_displayControl->SetVideoWindow(HWND(m_windowId));
}
}
}
PAINTSTRUCT paint;
- if (HDC dc = ::BeginPaint(m_windowId, &paint)) {
+ if (HDC dc = ::BeginPaint(HWND(m_windowId), &paint)) {
HPEN pen = ::CreatePen(PS_SOLID, 1, m_windowColor);
HBRUSH brush = ::CreateSolidBrush(m_windowColor);
::SelectObject(dc, pen);
::DeleteObject(pen);
::DeleteObject(brush);
- ::EndPaint(m_windowId, &paint);
+ ::EndPaint(HWND(m_windowId), &paint);
}
}
if (m_content)
hr = m_content->GetValue(m_commonKeys[index], &var);
else if (m_metaData)
- hr = m_metaData->GetProperty(m_commonNames[index].utf16(), &var);
+ hr = m_metaData->GetProperty(reinterpret_cast<LPCWSTR>(m_commonNames[index].utf16()), &var);
if (SUCCEEDED(hr))
value = convertValue(var);
//add more later if necessary
switch (var.vt) {
case VT_LPWSTR:
- value = QString::fromUtf16(var.pwszVal);
+ value = QString::fromUtf16(reinterpret_cast<const ushort*>(var.pwszVal));
break;
case VT_UI4:
value = uint(var.ulVal);
m_availableMetaDatas.clear();
m_commonKeys.clear();
m_commonNames.clear();
- m_extendedMetaDatas.clear();
- m_extendedKeys.clear();
if (SUCCEEDED(MFGetService(mediaSource, MF_PROPERTY_HANDLER_SERVICE, IID_PPV_ARGS(&m_content)))) {
DWORD cProps;
m_availableMetaDatas.push_back(QtMultimedia::MetaData::Copyright);
//TODO: add more common keys
} else {
- m_availableMetaDatas.push_back(QString::fromUtf16(sName));
+ m_availableMetaDatas.push_back(QString::fromUtf16(reinterpret_cast<const ushort*>(sName)));
}
- m_commonNames.push_back(QString::fromUtf16(sName));
+ m_commonNames.push_back(QString::fromUtf16(reinterpret_cast<const ushort*>(sName)));
}
}
PropVariantClear(&varNames);
#include <QtCore/qdebug.h>
#include "mfplayercontrol.h"
-#ifndef Q_WS_SIMULATOR
+#if defined(HAVE_WIDGETS) && !defined(Q_WS_SIMULATOR)
#include "evr9videowindowcontrol.h"
#endif
#include "mfvideorenderercontrol.h"
SOURCES += wmfserviceplugin.cpp
include (player/player.pri)
+
+OTHER_FILES += \
+ wmf.json
#ifdef QMEDIA_MEDIAFOUNDATION_PLAYER
#include "mfplayerservice.h"
#endif
-#include <qmediaserviceprovider.h>
QMediaService* WMFServicePlugin::create(QString const& key)
{