如何给网页中Media播放器添加可视化效果
CWMPPlayer4 m_WMPPlayer;
CWMPSettings m_WMPSettings;
CWMPControls m_WMPControls;
CWMPErrorItem m_WMPErrorItem;
CWMPError m_WMPError;
m_WMPPlayer.SetWindowPos(GetDlgItem(IDC_OCX),0,0,0,0,SWP_HIDEWINDOW);
m_WMPControls=m_WMPPlayer.GetControls();
m_WMPSettings=m_WMPPlayer.GetSettings();
m_WMPSettings.SetAutoStart(FALSE);
m_WMPPlayer.SetEnableContextMenu(FALSE);
m_WMPPlayer.SetUiMode("invisible");
void CXXXDlg::PlayTail()
{
char pMPG[1000];
sprintf(pMPG,"%s%s",strAppPath,"Tail.mpg");
m_WMPPlayer.SetUrl(pMPG);
//m_WMPPlayer.SetUrl(LoadResourceByID(IDR_MPG_TAIL,"Mpg"));
m_WMPSettings.SetPlayCount(1);
m_WMPPlayer.SetUiMode("none");
m_WMPPlayer.SetWindowPos(GetDlgItem(IDC_OCX),0,0,800,600,SWP_SHOWWINDOW);
m_WMPControls.play();
if(m_WMPPlayer.GetPlayState()==2)
{
m_WMPPlayer.SetFullScreen(TRUE);
}
}
多重随机标签