|
@@ -133,55 +133,6 @@ BOOL CPlayerDlg::OnInitDialog()
|
|
|
::SetWindowPos(this->GetSafeHwnd(),HWND_TOP,m_monitorRect.left,m_monitorRect.top,0,0,SWP_HIDEWINDOW);//HWND_TOP
|
|
|
m_player->put_URL(m_pConfig->strRootPath);
|
|
|
}
|
|
|
- else if (m_pConfig->eMode == SALESRECORD || m_pConfig->eMode == THRIDSALESRECORD) // 客户经理录像模式播放
|
|
|
- {
|
|
|
- if (SALESRECORD == m_pConfig->eMode)
|
|
|
- {
|
|
|
- ::SetWindowPos(this->GetSafeHwnd(),HWND_TOP,m_monitorRect.left,m_monitorRect.top,0,0,SWP_HIDEWINDOW);//HWND_TOP
|
|
|
- }
|
|
|
- else{
|
|
|
- if (m_pConfig->nWndWidth > m_monitorRect.Width())
|
|
|
- {
|
|
|
- m_pConfig->nWndWidth = m_monitorRect.Width();
|
|
|
- }
|
|
|
- if (m_pConfig->nWndHeight > m_monitorRect.Height())
|
|
|
- {
|
|
|
- m_pConfig->nWndHeight = m_monitorRect.Height();
|
|
|
- }
|
|
|
- ::SetWindowPos(this->GetSafeHwnd(), HWND_TOPMOST, m_monitorRect.left+m_pConfig->nWndX,
|
|
|
- m_monitorRect.top+m_pConfig->nWndY,m_pConfig->nWndWidth,m_pConfig->nWndHeight,SWP_HIDEWINDOW);//HWND_TOP
|
|
|
- }
|
|
|
-
|
|
|
- SetTimer(WNDTOPMOST_TIMERID, 10, 0);
|
|
|
- SetTimer(FULLSCREEN_TIMERID, GetDoubleClickTime(), 0); // 开启Timer监视,防止WMP本身的全屏
|
|
|
- m_bTimer = true;
|
|
|
-
|
|
|
- m_settings = static_cast<CWMPSettings>(m_player->get_settings());
|
|
|
- m_settings.put_autoStart(FALSE);
|
|
|
- m_playlist = m_player->get_currentPlaylist();
|
|
|
- if (strstr(m_pConfig->strNamePrefix, "S"))
|
|
|
- {
|
|
|
- m_playlist.put_name(_T("现场销售录音录像"));
|
|
|
- }
|
|
|
- else if (strstr(m_pConfig->strNamePrefix, "W"))
|
|
|
- {
|
|
|
- m_playlist.put_name(_T("二次见证录音录像"));
|
|
|
- }
|
|
|
- else if (strstr(m_pConfig->strNamePrefix, "OFL")) // edit by ly 20180224
|
|
|
- {
|
|
|
- m_playlist.put_name(_T("离线录音录像"));
|
|
|
- }
|
|
|
-
|
|
|
- CString videoPath("");
|
|
|
- for(int i = 0; i != m_pConfig->nFileCnt; ++i)
|
|
|
- {
|
|
|
- videoPath.Format(_T("%s%s_%d.wmv"), m_pConfig->strRootPath, m_pConfig->strNamePrefix, i);
|
|
|
- m_playlist.appendItem(m_player->newMedia(videoPath));
|
|
|
- }
|
|
|
-
|
|
|
- m_control = static_cast<CWMPControls>(m_player->get_controls());
|
|
|
- m_control.play();
|
|
|
- }
|
|
|
else if (m_pConfig->eMode == LOCALAUDIO) // 本地音频模式播放
|
|
|
{
|
|
|
::SetWindowPos(this->GetSafeHwnd(),HWND_TOP,m_monitorRect.left,m_monitorRect.top,0,0,SWP_HIDEWINDOW);//HWND_TOP
|
|
@@ -216,7 +167,7 @@ BOOL CPlayerDlg::OnInitDialog()
|
|
|
|
|
|
m_settings = static_cast<CWMPSettings>(m_player->get_settings());
|
|
|
m_settings.put_autoStart(FALSE);
|
|
|
- m_settings.put_volume(m_pConfig->nVolume); // 设置音量 add by ly 2017/06/06
|
|
|
+ m_settings.put_volume(m_pConfig->nVolume);
|
|
|
m_playlist = m_player->get_currentPlaylist();
|
|
|
m_playlist.put_name(_T("可视柜台本地视频播放"));
|
|
|
|
|
@@ -361,7 +312,7 @@ void CPlayerDlg::PlayStateChangeOcx1(long NewState)
|
|
|
{
|
|
|
case 3: // 播放状态
|
|
|
{
|
|
|
- if (m_pConfig->eMode == SINGLE || m_pConfig->eMode == SALESRECORD)
|
|
|
+ if (m_pConfig->eMode == SINGLE)
|
|
|
{
|
|
|
CWMPMedia m_media = m_player->get_currentMedia();
|
|
|
long width = m_media.get_imageSourceWidth();
|