111,129
社区成员
发帖
与我相关
我的任务
分享
public Form1()
{
InitializeComponent();
axShockwaveFlash1.FlashCall += new AxShockwaveFlashObjects._IShockwaveFlashEvents_FlashCallEventHandler(axShockwaveFlash1_FlashCall);
axShockwaveFlash1.Movie = @"D:\baidu\qplayer.swf"; //优酷播放器
axShockwaveFlash1.Playing = true;
axShockwaveFlash1.Quality = 2;
axShockwaveFlash1.Quality2 = "autolow";
axShockwaveFlash1.AllowFullScreen = "true";
axShockwaveFlash1.Name = "movie_player";
axShockwaveFlash1.FlashVars = "isShowRelatedVideo=false&showAd=0&show_pre=1&show_next=1&VideoIDS=54640776&isAutoPlay=true&isDebug=false&UserID=&winType=interior&playMovie=true&MMControl=false&MMout=false&RecordCode=1001,1002,1003,1004,1005,1006,2001,3001,3002,3003,3004,3005,3007,3008,9999";
axShockwaveFlash1.WMode = "transparent";
}
private void axShockwaveFlash1_FlashCall(object sender, AxShockwaveFlashObjects._IShockwaveFlashEvents_FlashCallEvent e)
{
XmlDocument document = new XmlDocument();
document.LoadXml(e.request);
XmlAttributeCollection attributes = document.FirstChild.Attributes;
String command = attributes.Item(0).InnerText;
XmlNodeList list = document.GetElementsByTagName("arguments");
MessageBox.Show(command.ToString());//捕捉command事件,超多,按到手软
}