|
我的代码如下,在我的显示器上不出现播放界面,只有声音,请高手指教
if(Context_Init((tchar_t *)_T("TCPMP"),(tchar_t *)_T("0.72RC1"),3,(tchar_t*)AfxGetApp()->m_lpCmdLine,NULL))//
{
context* pContext=Context();//
if(pContext)
m_Player=(player*)(pContext->Player);
else
return ;//false;
//Context_Wnd((void*)(::GetDlgItem(m_hWnd, IDC_STATICP)));
Context_Wnd(this->GetSafeHwnd());
//设置通知处理函数
Notify.Func = (notifyfunc)PlayerNotify;
Notify.This = (void*)m_Player;
if(m_Player)
m_Player->Set(m_Player,PLAYER_NOTIFY,&Notify,sizeof(Notify));
BOOL bl = true;
int i = 0;
m_Player->Set(m_Player,PLAYER_LIST_COUNT,&i,sizeof(int));//
m_Player->Set(m_Player,PLAYER_LIST_URL+0,URL,sizeof(URL));
m_Player->Set(m_Player,PLAYER_SKIN_VIEWPORT,&DefaultRect,sizeof(rect));//
m_Player->Set(m_Player, PLAYER_FULLSCREEN, &bl, sizeof(bl)); //
int index = 0;
m_Player->Set(m_Player,PLAYER_LIST_CURRIDX,&index,sizeof(int));//
m_Player->Set(m_Player,PLAYER_PLAY,&m_bPlayOrPaulse,sizeof(BOOL));//
}
|
|