#include <fsPartMediaPlayer.h>
Public Member Functions | |
| HRESULT | Set_Volume (long lVolume) |
| HRESULT | HandleGraphEvent () |
| IMediaSeeking * | Get_MediaSeeking () |
| fsPartMediaPlayerState | Get_State () |
| HRESULT | NotifyOwnerMessage (HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) |
| void | AutoSize () |
| HRESULT | Close () |
| void | Initialize (HWND hVideoOutWindow) |
| HRESULT | Stop () |
| HRESULT | Pause () |
| HRESULT | Run () |
| HRESULT | Open (HANDLE hFile, UINT64 uMaxAvail=_UI64_MAX) |
| HRESULT | Open2 (LPCSTR pszFile) |
| fsPartMediaPlayer () | |
| virtual | ~fsPartMediaPlayer () |
Protected Attributes | |
| HRESULT | m_hr |
| fsFileStream | m_stream |
| fsFileReader | m_reader |
| fsPartMediaPlayerState | m_state |
| HWND | m_hOutWnd |
| IGraphBuilder * | m_pGB |
| IMediaControl * | m_pMC |
| IMediaEventEx * | m_pME |
| IMediaSeeking * | m_pMS |
| IVideoWindow * | m_pVW |
| IBasicAudio * | m_pBA |
| double | m_fVideoRatio |
Definition at line 28 of file fsPartMediaPlayer.h.
| fsPartMediaPlayer::fsPartMediaPlayer | ( | ) |
Definition at line 8 of file fsPartMediaPlayer.cpp.
References m_fVideoRatio, m_hOutWnd, m_pBA, m_pGB, m_pMC, m_pME, m_pMS, m_pVW, m_reader, m_state, NULL, and VFPS_CLOSED.
| fsPartMediaPlayer::~fsPartMediaPlayer | ( | ) | [virtual] |
| HRESULT fsPartMediaPlayer::Set_Volume | ( | long | lVolume | ) |
Definition at line 250 of file fsPartMediaPlayer.cpp.
Referenced by CDownloads_VideoPreview::Set_Volume().
| HRESULT fsPartMediaPlayer::HandleGraphEvent | ( | ) |
Definition at line 231 of file fsPartMediaPlayer.cpp.
References hr, HRESULT, LONG, m_pME, S_OK, and Stop().
Referenced by CDownloads_VideoPreview::OnGraphMessage().
| IMediaSeeking * fsPartMediaPlayer::Get_MediaSeeking | ( | ) |
Definition at line 223 of file fsPartMediaPlayer.cpp.
References m_pMS.
Referenced by CDownloads_VideoPreview::Play().
| fsPartMediaPlayerState fsPartMediaPlayer::Get_State | ( | ) |
Definition at line 218 of file fsPartMediaPlayer.cpp.
References m_state.
Referenced by CDownloads_VideoPreview::IsPaused(), CDownloads_VideoPreview::IsPlaying(), CPluginFrame2::OnEraseBkgnd(), CPlugFrame2Tabs::OnEraseBkgnd(), CMainFrame::OnEraseBkgnd(), CDownloadsWnd::OnEraseBkgnd(), CDownloads_VideoPreview::OnEraseBkgnd(), CDownloads_InfoFrame::OnEraseBkgnd(), CDownloads_Info::OnEraseBkgnd(), CDownloads_Downloads::OnEraseBkgnd(), CClientAreaWnd::OnEraseBkgnd(), CChildView::OnEraseBkgnd(), and CDownloads_VideoPreview::Play().
| HRESULT fsPartMediaPlayer::NotifyOwnerMessage | ( | HWND | hWnd, | |
| UINT | msg, | |||
| WPARAM | wp, | |||
| LPARAM | lp | |||
| ) |
Definition at line 210 of file fsPartMediaPlayer.cpp.
References m_pVW, and S_FALSE.
Referenced by CVideoWindow::WindowProc(), and CDownloads_VideoPreview::WindowProc().
| void fsPartMediaPlayer::AutoSize | ( | ) |
Definition at line 181 of file fsPartMediaPlayer.cpp.
References simple_client::h, m_fVideoRatio, m_hOutWnd, and m_pVW.
Referenced by CVideoWindow::OnSize(), Open(), and Open2().
| HRESULT fsPartMediaPlayer::Close | ( | ) |
Definition at line 154 of file fsPartMediaPlayer.cpp.
References fsFileStream::Detach(), hr, HRESULT, m_pBA, m_pGB, m_pMC, m_pME, m_pMS, m_pVW, m_state, m_stream, NULL, OAFALSE, S_OK, SAFE_RELEASE, and VFPS_CLOSED.
Referenced by Open(), Open2(), CDownloads_VideoPreview::Stop(), and ~fsPartMediaPlayer().
| void fsPartMediaPlayer::Initialize | ( | HWND | hVideoOutWindow | ) |
Definition at line 149 of file fsPartMediaPlayer.cpp.
References m_hOutWnd.
Referenced by CVideoWindow::OnCreate().
| HRESULT fsPartMediaPlayer::Stop | ( | void | ) |
Definition at line 121 of file fsPartMediaPlayer.cpp.
References FAILED, hr, HRESULT, m_pMC, m_pMS, m_state, NULL, pos(), S_OK, and VFPS_STOPPED.
Referenced by HandleGraphEvent().
| HRESULT fsPartMediaPlayer::Pause | ( | void | ) |
Definition at line 115 of file fsPartMediaPlayer.cpp.
References m_pMC, m_state, and VFPS_PAUSED.
Referenced by CDownloads_VideoPreview::Pause().
| HRESULT fsPartMediaPlayer::Run | ( | void | ) |
Definition at line 109 of file fsPartMediaPlayer.cpp.
References m_pMC, m_state, and VFPS_RUNNING.
Referenced by CDownloads_VideoPreview::Play().
| HRESULT fsPartMediaPlayer::Open | ( | HANDLE | hFile, | |
| UINT64 | uMaxAvail = _UI64_MAX | |||
| ) |
Definition at line 31 of file fsPartMediaPlayer.cpp.
References fsFileStream::Attach(), AutoSize(), Close(), E_FAIL, FAILED, fsFileStream::Get_MediaType(), CAsyncReader::GetPin(), hr, HRESULT, LONG, m_fVideoRatio, m_hOutWnd, m_pBA, m_pGB, m_pMC, m_pME, m_pMS, m_pVW, m_reader, m_state, m_stream, NULL, OAFALSE, OATRUE, RIF, S_OK, SAFE_RELEASE, fsFileReader::Set_MediaType(), VFPS_STOPPED, and WM_VIDEONOTIFY.
Referenced by CDownloads_VideoPreview::Play().
| HRESULT fsPartMediaPlayer::Open2 | ( | LPCSTR | pszFile | ) |
Definition at line 258 of file fsPartMediaPlayer.cpp.
References AutoSize(), BOOL, Close(), CP_ACP, FAILED, FALSE, hr, HRESULT, l, LONG, m_fVideoRatio, m_hOutWnd, m_pBA, m_pGB, m_pMC, m_pME, m_pMS, m_pVW, m_state, NULL, OAFALSE, OATRUE, RIF, S_OK, SAFE_RELEASE, TRUE, VFPS_STOPPED, and WM_VIDEONOTIFY.
Referenced by CDownloads_VideoPreview::Play().
HRESULT fsPartMediaPlayer::m_hr [protected] |
Definition at line 62 of file fsPartMediaPlayer.h.
fsFileStream fsPartMediaPlayer::m_stream [protected] |
fsFileReader fsPartMediaPlayer::m_reader [protected] |
fsPartMediaPlayerState fsPartMediaPlayer::m_state [protected] |
Definition at line 65 of file fsPartMediaPlayer.h.
Referenced by Close(), fsPartMediaPlayer(), Get_State(), Open(), Open2(), Pause(), Run(), and Stop().
HWND fsPartMediaPlayer::m_hOutWnd [protected] |
Definition at line 66 of file fsPartMediaPlayer.h.
Referenced by AutoSize(), fsPartMediaPlayer(), Initialize(), Open(), and Open2().
IGraphBuilder* fsPartMediaPlayer::m_pGB [protected] |
Definition at line 67 of file fsPartMediaPlayer.h.
Referenced by Close(), fsPartMediaPlayer(), Open(), and Open2().
IMediaControl* fsPartMediaPlayer::m_pMC [protected] |
Definition at line 68 of file fsPartMediaPlayer.h.
Referenced by Close(), fsPartMediaPlayer(), Open(), Open2(), Pause(), Run(), and Stop().
IMediaEventEx* fsPartMediaPlayer::m_pME [protected] |
Definition at line 69 of file fsPartMediaPlayer.h.
Referenced by Close(), fsPartMediaPlayer(), HandleGraphEvent(), Open(), and Open2().
IMediaSeeking* fsPartMediaPlayer::m_pMS [protected] |
Definition at line 70 of file fsPartMediaPlayer.h.
Referenced by Close(), fsPartMediaPlayer(), Get_MediaSeeking(), Open(), Open2(), and Stop().
IVideoWindow* fsPartMediaPlayer::m_pVW [protected] |
Definition at line 71 of file fsPartMediaPlayer.h.
Referenced by AutoSize(), Close(), fsPartMediaPlayer(), NotifyOwnerMessage(), Open(), and Open2().
IBasicAudio* fsPartMediaPlayer::m_pBA [protected] |
Definition at line 72 of file fsPartMediaPlayer.h.
Referenced by Close(), fsPartMediaPlayer(), Open(), Open2(), and Set_Volume().
double fsPartMediaPlayer::m_fVideoRatio [protected] |
Definition at line 73 of file fsPartMediaPlayer.h.
Referenced by AutoSize(), fsPartMediaPlayer(), Open(), and Open2().
1.5.6