还是wmp控件的问题,显示播放界面
我现在调用wmp控件做一个视频播放,点击按钮触发播放。但是只有声音,看不见图象。界面还是显示点击界面,不显示windows media 播放界面。我尝试了fullscreen属性,怎么样能显示播放界面呢?代码如下:public void PlayFile(String url)
{
Player = new WMPLib.WindowsMediaPlayer();
Player.PlayStateChange +=
new WMPLib._WMPOCXEvents_PlayStateChangeEventHandler(Player_PlayStateChange);
Player.MediaError +=
new WMPLib._WMPOCXEvents_MediaErrorEventHandler(Player_MediaError);
Player.URL = url;
Player.controls.play();
Player.fullScreen = true;
}
补充:.NET技术 , C#