using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class Duo_Mei_Ti : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
lbl_MediaPlayer.Text = PlayMedia("files1/佛說十善業道經(女声)动态文字版.wmv");//
}
}
public string PlayMedia(string MediaFile)
{
string strScript = "";
strScript += "<TABLE id=\"Table2\" align=\"center\" border=\"0\" runat=\"server\" width = '620' height ='450'>";
strScript += "<TR>";
strScript += "<TD align=\"center\">";
strScript += "<OBJECT id=\"mdpTrailer\" classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" name=\"mdpTrailer\" width='620' height = '450'>";
strScript += "<PARAM NAME=\"AudioStream\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"AutoSize\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"AutoStart\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"AnimationAtStart\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"AllowScan\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"AllowChangeDisplaySize\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"AutoRewind\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"Balance\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"BaseURL\" VALUE=\"\">";
strScript += "<PARAM NAME=\"BufferingTime\" VALUE=\"5\">";
strScript += "<PARAM NAME=\"CaptioningID\" VALUE=\"\">";
strScript += "<PARAM NAME=\"ClickToPlay\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"CursorType\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"CurrentPosition\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"CurrentMarker\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"DefaultFrame\" VALUE=\"\">";
strScript += "<PARAM NAME=\"DisplayBackColor\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"DisplayForeColor\" VALUE=\"16777215\">";
strScript += "<PARAM NAME=\"DisplayMode\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"DisplaySize\" VALUE=\"4\">";
strScript += "<PARAM NAME=\"Enabled\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"EnableContextMenu\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"EnablePositionControls\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"EnableFullScreenControls\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"EnableTracker\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"Filename\" VALUE=\""+ MediaFile + "\">";
strScript += "<PARAM NAME=\"InvokeURLs\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"Language\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"Mute\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"PlayCount\" VALUE=\"1\">";
strScript += "<PARAM NAME=\"PreviewMode\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"Rate\" VALUE=\"1\">";
strScript += "<PARAM NAME=\"SAMILang\" VALUE=\"\">";
strScript += "<PARAM NAME=\"SAMIStyle\" VALUE=\"\">";
strScript += "<PARAM NAME=\"SAMIFileName\" VALUE=\"\">";
strScript += "<PARAM NAME=\"SelectionStart\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"SelectionEnd\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"SendOpenStateChangeEvents\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"SendWarningEvents\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"SendErrorEvents\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"SendKeyboardEvents\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"SendMouseClickEvents\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"SendMouseMoveEvents\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"SendPlayStateChangeEvents\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"ShowCaptioning\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"ShowControls\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"ShowAudioControls\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"ShowDisplay\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"ShowGotoBar\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"ShowPositionControls\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"ShowStatusBar\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"ShowTracker\" VALUE=\"-1\">";
strScript += "<PARAM NAME=\"TransparentAtStart\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"VideoBorderWidth\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"VideoBorderColor\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"VideoBorder3D\" VALUE=\"0\">";
strScript += "<PARAM NAME=\"Volume\" VALUE=\"-600\">";
strScript += "<PARAM NAME=\"WindowlessVideo\" VALUE=\"0\">";
strScript += "</OBJECT>";
strScript += "</TD>";
strScript += "</TR>";
strScript += "</TABLE>";
return strScript;
}
}