svvitch
digital signage player
D:/vs_workspace/switch_sf/src/svvitch/MFContent.cpp
Go to the documentation of this file.
00001 #include "MFContent.h"
00002 #include <Poco/UnicodeConverter.h>
00003 
00004 
00005 MFContent::MFContent(Renderer& renderer, int splitType): Content(renderer, splitType) {
00006 }
00007 
00008 MFContent::‾MFContent() {
00009     initialize();
00010 }
00011 
00012 void MFContent::initialize() {
00013     close();
00014     HRESULT hr;
00015     hr = MFCreateMediaSession(NULL, &_session);
00016 }
00017 
00019 bool MFContent::open(const MediaItemPtr media, const int offset) {
00020     initialize();
00021     if (media->files().empty()) return false;
00022 
00023     HRESULT hr;
00024     return false;
00025 }
00026 
00030 void MFContent::play() {
00031 }
00032 
00036 void MFContent::stop() {
00037     _playing = false;
00038 }
00039 
00043 const bool MFContent::playing() const {
00044     return _playing;
00045 }
00046 
00047 const bool MFContent::finished() {
00048     return _finished;
00049 }
00050 
00052 void MFContent::close() {
00053     stop();
00054 }
00055 
00056 void MFContent::process(const DWORD& frame) {
00057 }
00058 
00059 void MFContent::draw(const DWORD& frame) {
00060 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines