equal
deleted
inserted
replaced
56 #include <QtCore/qwaitcondition.h> |
56 #include <QtCore/qwaitcondition.h> |
57 |
57 |
58 class DirectShowAudioEndpointControl; |
58 class DirectShowAudioEndpointControl; |
59 class DirectShowMetaDataControl; |
59 class DirectShowMetaDataControl; |
60 class DirectShowPlayerControl; |
60 class DirectShowPlayerControl; |
61 class DirectShowVideoOutputControl; |
|
62 class DirectShowVideoRendererControl; |
61 class DirectShowVideoRendererControl; |
63 class Vmr9VideoWindowControl; |
62 class Vmr9VideoWindowControl; |
64 |
63 |
65 QT_BEGIN_NAMESPACE |
64 QT_BEGIN_NAMESPACE |
66 class QMediaContent; |
65 class QMediaContent; |
79 }; |
78 }; |
80 |
79 |
81 DirectShowPlayerService(QObject *parent = 0); |
80 DirectShowPlayerService(QObject *parent = 0); |
82 ~DirectShowPlayerService(); |
81 ~DirectShowPlayerService(); |
83 |
82 |
84 QMediaControl* control(const char *name) const; |
83 QMediaControl* requestControl(const char *name); |
|
84 void releaseControl(QMediaControl *control); |
85 |
85 |
86 void load(const QMediaContent &media, QIODevice *stream); |
86 void load(const QMediaContent &media, QIODevice *stream); |
87 void play(); |
87 void play(); |
88 void pause(); |
88 void pause(); |
89 void stop(); |
89 void stop(); |
175 InvalidMedia |
175 InvalidMedia |
176 }; |
176 }; |
177 |
177 |
178 DirectShowPlayerControl *m_playerControl; |
178 DirectShowPlayerControl *m_playerControl; |
179 DirectShowMetaDataControl *m_metaDataControl; |
179 DirectShowMetaDataControl *m_metaDataControl; |
180 DirectShowVideoOutputControl *m_videoOutputControl; |
|
181 DirectShowVideoRendererControl *m_videoRendererControl; |
180 DirectShowVideoRendererControl *m_videoRendererControl; |
182 Vmr9VideoWindowControl *m_videoWindowControl; |
181 Vmr9VideoWindowControl *m_videoWindowControl; |
183 DirectShowAudioEndpointControl *m_audioEndpointControl; |
182 DirectShowAudioEndpointControl *m_audioEndpointControl; |
184 |
183 |
185 QThread *m_taskThread; |
184 QThread *m_taskThread; |