#include <Downloads_VideoPreview.h>
Public Member Functions | |
| CDownloads_VideoPreview () | |
| virtual | ~CDownloads_VideoPreview () |
| BOOL | IsMuteAvail () |
| BOOL | IsPaused () |
| BOOL | IsPauseAvail () |
| BOOL | IsPlaying () |
| void | set_InFVDownloads (BOOL b) |
| void | Convert () |
| void | ApplyLanguage () |
| void | SaveState () |
| void | UpdateCommand (UINT nID, BOOL *pbEnabled, BOOL *pbChecked) |
| CString | GetDuration () |
| UINT64 | Get_AvailFileSize () |
| UINT64 | Get_FileSize () |
| CString | Get_FileName () |
| void | Set_Volume (long lVolume) |
| fsPartMediaPlayer * | Get_Player () |
| void | Play () |
| vmsDownloadSmartPtr | Get_ActiveDownload () |
| void | Pause () |
| void | Stop () |
| BOOL | Create (CWnd *pWndParent) |
| void | Set_ActiveDownload (vmsDownloadSmartPtr dld) |
Public Attributes | |
| CVideoWindow | m_wndVideo |
Protected Member Functions | |
| virtual LRESULT | WindowProc (UINT message, WPARAM wParam, LPARAM lParam) |
| BOOL | OpenFile () |
| void | CloseFile () |
| afx_msg LRESULT | OnGraphMessage (WPARAM, LPARAM) |
| afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
| afx_msg void | OnSize (UINT nType, int cx, int cy) |
| afx_msg BOOL | OnEraseBkgnd (CDC *pDC) |
Protected Attributes | |
| BOOL | m_bUsingVideo2 |
| CShockwaveFlash | m_wndVideo2 |
| DWORD | m_dwDXVersion |
| CDlgVidSeek | m_vidseek |
| CDlgVidMan | m_vidman |
| HANDLE | m_hFile |
| vmsDownloadSmartPtr | m_pActiveDownload |
Friends | |
| class | CDownloadsWnd |
Definition at line 19 of file Downloads_VideoPreview.h.
| CDownloads_VideoPreview::CDownloads_VideoPreview | ( | ) |
Definition at line 18 of file Downloads_VideoPreview.cpp.
References FALSE, m_bUsingVideo2, m_dwDXVersion, m_hFile, m_pActiveDownload, CDlgVidMan::m_parent, m_vidman, and NULL.
| CDownloads_VideoPreview::~CDownloads_VideoPreview | ( | ) | [virtual] |
Definition at line 27 of file Downloads_VideoPreview.cpp.
| BOOL CDownloads_VideoPreview::IsMuteAvail | ( | ) |
Definition at line 439 of file Downloads_VideoPreview.cpp.
References m_bUsingVideo2.
Referenced by CDlgVidMan::UpdateCommand(), and CDlgVidMan::UpdateEnabled().
| BOOL CDownloads_VideoPreview::IsPaused | ( | ) |
Definition at line 432 of file Downloads_VideoPreview.cpp.
References FALSE, Get_Player(), fsPartMediaPlayer::Get_State(), m_bUsingVideo2, and VFPS_PAUSED.
Referenced by CDlgVidMan::UpdateCommand().
| BOOL CDownloads_VideoPreview::IsPauseAvail | ( | ) |
Definition at line 427 of file Downloads_VideoPreview.cpp.
References m_bUsingVideo2.
Referenced by CDlgVidMan::UpdateCommand().
| BOOL CDownloads_VideoPreview::IsPlaying | ( | ) |
Definition at line 422 of file Downloads_VideoPreview.cpp.
References Get_Player(), fsPartMediaPlayer::Get_State(), m_bUsingVideo2, and VFPS_RUNNING.
Referenced by CDlgVidMan::OnPlay(), CDlgVidMan::Update(), and CDlgVidMan::UpdateCommand().
| void CDownloads_VideoPreview::set_InFVDownloads | ( | BOOL | b | ) |
Definition at line 417 of file Downloads_VideoPreview.cpp.
References CDlgVidMan::m_bInFVDownloads, and m_vidman.
Referenced by CFlashVideoDownloadsWnd::CFlashVideoDownloadsWnd().
| void CDownloads_VideoPreview::Convert | ( | ) |
Definition at line 412 of file Downloads_VideoPreview.cpp.
References CDlgVidMan::Convert(), and m_vidman.
Referenced by CDownloads_Tasks::OnDldconvert(), and CFVDownloads_Tasks::OnFvdldConvert().
| void CDownloads_VideoPreview::ApplyLanguage | ( | ) |
Definition at line 407 of file Downloads_VideoPreview.cpp.
References CDlgVidMan::ApplyLanguage(), and m_vidman.
Referenced by CDownloads_Info::ApplyLanguage(), and CFlashVideoDownloadsWnd::Plugin_SetLanguage().
| void CDownloads_VideoPreview::SaveState | ( | ) |
Definition at line 371 of file Downloads_VideoPreview.cpp.
References m_vidman, and CDlgVidMan::SaveSettings().
Referenced by CDownloads_Info::SaveState().
| void CDownloads_VideoPreview::UpdateCommand | ( | UINT | nID, | |
| BOOL * | pbEnabled, | |||
| BOOL * | pbChecked | |||
| ) |
Definition at line 366 of file Downloads_VideoPreview.cpp.
References m_vidman, and CDlgVidMan::UpdateCommand().
Referenced by CFVDownloads_Tasks::OnUpdateToolBar(), and CDownloads_Tasks::OnUpdateToolBar().
| CString CDownloads_VideoPreview::GetDuration | ( | ) |
Definition at line 361 of file Downloads_VideoPreview.cpp.
References CDlgVidSeek::GetDuration(), and m_vidseek.
Referenced by CDlgVidMan::Update().
| UINT64 CDownloads_VideoPreview::Get_AvailFileSize | ( | ) |
Definition at line 314 of file Downloads_VideoPreview.cpp.
References BOOL, FALSE, m_pActiveDownload, NULL, TRUE, vmsSectionInfo::uDCurrent, vmsSectionInfo::uDEnd, and vmsSectionInfo::uDStart.
Referenced by Play(), and CDlgVidMan::Update().
| UINT64 CDownloads_VideoPreview::Get_FileSize | ( | ) |
Definition at line 306 of file Downloads_VideoPreview.cpp.
References m_pActiveDownload, and NULL.
Referenced by CDlgVidMan::Update().
| CString CDownloads_VideoPreview::Get_FileName | ( | ) |
Definition at line 295 of file Downloads_VideoPreview.cpp.
References CDownloads_Tasks::GetFileName(), m_pActiveDownload, and NULL.
Referenced by CDlgVidMan::Update().
| void CDownloads_VideoPreview::Set_Volume | ( | long | lVolume | ) |
Definition at line 290 of file Downloads_VideoPreview.cpp.
References Get_Player(), and fsPartMediaPlayer::Set_Volume().
Referenced by CDlgVidMan::ApplyVolume(), CDlgVidMan::ApplyVolumeSettings(), and CDlgVidMan::OnMute().
| fsPartMediaPlayer * CDownloads_VideoPreview::Get_Player | ( | ) |
Definition at line 274 of file Downloads_VideoPreview.cpp.
References CVideoWindow::m_player, and m_wndVideo.
Referenced by IsPaused(), IsPlaying(), OnGraphMessage(), Play(), and Set_Volume().
| void CDownloads_VideoPreview::Play | ( | ) |
Definition at line 153 of file Downloads_VideoPreview.cpp.
References CDlgVidMan::ApplyVolumeSettings(), BOOL, CShockwaveFlash::CallFunction(), CloseFile(), CShockwaveFlash::Create(), E_FAIL, FAILED, FALSE, Get_AvailFileSize(), fsPartMediaPlayer::Get_MediaSeeking(), Get_Player(), fsPartMediaPlayer::Get_State(), fsDirectXVersion::GetCurrentVersion(), hr, HRESULT, L_ERR, L_FAILEDTOOPENFILE, L_NEEDDX8ORBETTER, L_UNKMEDIATYPE, CShockwaveFlash::LoadMovie(), LS, m_bUsingVideo2, m_dwDXVersion, m_hFile, m_pActiveDownload, CVideoWindow::m_player, m_vidman, m_vidseek, m_wndVideo, m_wndVideo2, NULL, fsPartMediaPlayer::Open(), fsPartMediaPlayer::Open2(), OpenFile(), fsPartMediaPlayer::Run(), S_FALSE, S_OK, CDlgVidSeek::Set_MediaSeeking(), CShockwaveFlash::SetBackgroundColor(), TRUE, VFPS_CLOSED, and VFPS_RUNNING.
Referenced by CDlgVidMan::OnPlay().
| vmsDownloadSmartPtr CDownloads_VideoPreview::Get_ActiveDownload | ( | ) |
Definition at line 148 of file Downloads_VideoPreview.cpp.
References m_pActiveDownload.
Referenced by CDlgVidMan::OnConvert(), CDlgVidMan::UpdateCommand(), and CDlgVidMan::UpdateEnabled().
| void CDownloads_VideoPreview::Pause | ( | ) |
Definition at line 142 of file Downloads_VideoPreview.cpp.
References CVideoWindow::m_player, m_vidman, m_wndVideo, fsPartMediaPlayer::Pause(), and CDlgVidMan::Update().
Referenced by CDlgVidMan::OnPause(), and CDlgVidMan::OnPlay().
| void CDownloads_VideoPreview::Stop | ( | ) |
Definition at line 125 of file Downloads_VideoPreview.cpp.
References fsPartMediaPlayer::Close(), CloseFile(), FALSE, m_bUsingVideo2, CVideoWindow::m_player, m_vidman, m_vidseek, m_wndVideo, m_wndVideo2, NULL, CDlgVidSeek::Set_MediaSeeking(), and CDlgVidMan::Update().
Referenced by CDownloadsWnd::_Events(), OnGraphMessage(), CDlgVidMan::OnStop(), and Set_ActiveDownload().
| BOOL CDownloads_VideoPreview::Create | ( | CWnd * | pWndParent | ) |
Definition at line 51 of file Downloads_VideoPreview.cpp.
References FALSE, NULL, and TRUE.
Referenced by CFlashVideoDownloadsWnd::OnCreate(), and CDownloads_Info::OnCreate().
| void CDownloads_VideoPreview::Set_ActiveDownload | ( | vmsDownloadSmartPtr | dld | ) |
Definition at line 41 of file Downloads_VideoPreview.cpp.
References m_pActiveDownload, m_vidman, Stop(), and CDlgVidMan::Update().
Referenced by CDownloads_Info::Set_ActiveDownload(), and CFlashVideoDownloadsWnd::SetActiveDownload().
| LRESULT CDownloads_VideoPreview::WindowProc | ( | UINT | message, | |
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) | [protected, virtual] |
Definition at line 119 of file Downloads_VideoPreview.cpp.
References CVideoWindow::m_player, m_wndVideo, and fsPartMediaPlayer::NotifyOwnerMessage().
| BOOL CDownloads_VideoPreview::OpenFile | ( | ) | [protected] |
Definition at line 376 of file Downloads_VideoPreview.cpp.
References CloseFile(), FALSE, fsErrorToStr(), L_ERR, L_FAILEDTOOPENFILE, LS, m_hFile, m_pActiveDownload, NULL, and TRUE.
Referenced by Play().
| void CDownloads_VideoPreview::CloseFile | ( | ) | [protected] |
Definition at line 398 of file Downloads_VideoPreview.cpp.
References m_hFile.
Referenced by OpenFile(), Play(), and Stop().
| LRESULT CDownloads_VideoPreview::OnGraphMessage | ( | WPARAM | , | |
| LPARAM | ||||
| ) | [protected] |
Definition at line 279 of file Downloads_VideoPreview.cpp.
References Get_Player(), fsPartMediaPlayer::HandleGraphEvent(), m_vidman, Stop(), CDlgVidMan::Update(), and VFPS_STOPPED.
| int CDownloads_VideoPreview::OnCreate | ( | LPCREATESTRUCT | lpCreateStruct | ) | [protected] |
Definition at line 62 of file Downloads_VideoPreview.cpp.
References CVideoWindow::Create(), FALSE, IDC__DURATIONVAL, IDD_VIDMAN, IDD_VIDSEEK, CDlgVidSeek::m_hWndDuration, m_vidman, m_vidseek, and m_wndVideo.
| void CDownloads_VideoPreview::OnSize | ( | UINT | nType, | |
| int | cx, | |||
| int | cy | |||
| ) | [protected] |
Definition at line 81 of file Downloads_VideoPreview.cpp.
References m_bUsingVideo2, m_vidman, m_vidseek, m_wndVideo, and m_wndVideo2.
Referenced by CDlgVidSeek::OnSize().
| BOOL CDownloads_VideoPreview::OnEraseBkgnd | ( | CDC * | pDC | ) | [protected] |
Definition at line 104 of file Downloads_VideoPreview.cpp.
References fsPartMediaPlayer::Get_State(), CVideoWindow::m_player, m_wndVideo, and VFPS_CLOSED.
friend class CDownloadsWnd [friend] |
Definition at line 21 of file Downloads_VideoPreview.h.
Definition at line 59 of file Downloads_VideoPreview.h.
Referenced by Get_Player(), OnCreate(), CPluginFrame2::OnEraseBkgnd(), CPlugFrame2Tabs::OnEraseBkgnd(), CMainFrame::OnEraseBkgnd(), CDownloadsWnd::OnEraseBkgnd(), OnEraseBkgnd(), CDownloads_InfoFrame::OnEraseBkgnd(), CDownloads_Info::OnEraseBkgnd(), CDownloads_Downloads::OnEraseBkgnd(), CClientAreaWnd::OnEraseBkgnd(), CChildView::OnEraseBkgnd(), OnSize(), Pause(), Play(), Stop(), and WindowProc().
BOOL CDownloads_VideoPreview::m_bUsingVideo2 [protected] |
Definition at line 70 of file Downloads_VideoPreview.h.
Referenced by CDownloads_VideoPreview(), IsMuteAvail(), IsPauseAvail(), IsPaused(), IsPlaying(), OnSize(), Play(), and Stop().
CShockwaveFlash CDownloads_VideoPreview::m_wndVideo2 [protected] |
DWORD CDownloads_VideoPreview::m_dwDXVersion [protected] |
Definition at line 76 of file Downloads_VideoPreview.h.
Referenced by CDownloads_VideoPreview(), and Play().
CDlgVidSeek CDownloads_VideoPreview::m_vidseek [protected] |
Definition at line 80 of file Downloads_VideoPreview.h.
Referenced by GetDuration(), OnCreate(), OnSize(), Play(), and Stop().
CDlgVidMan CDownloads_VideoPreview::m_vidman [protected] |
Definition at line 82 of file Downloads_VideoPreview.h.
Referenced by CDownloadsWnd::_Events(), ApplyLanguage(), CDownloads_VideoPreview(), Convert(), OnCreate(), OnGraphMessage(), OnSize(), CDownloadsWnd::OnTimer(), Pause(), Play(), SaveState(), Set_ActiveDownload(), set_InFVDownloads(), Stop(), and UpdateCommand().
HANDLE CDownloads_VideoPreview::m_hFile [protected] |
Definition at line 83 of file Downloads_VideoPreview.h.
Referenced by CDownloads_VideoPreview(), CloseFile(), OpenFile(), and Play().
Definition at line 84 of file Downloads_VideoPreview.h.
Referenced by CDownloads_VideoPreview(), Get_ActiveDownload(), Get_AvailFileSize(), Get_FileName(), Get_FileSize(), OpenFile(), Play(), and Set_ActiveDownload().
1.5.6