• 视频播放


    视频播放代码

    <div class="innerFrame_introduce" style="100%;background-color:#F4F4F4;position:relitive; padding-bottom:10px;min-height:500px; border-right:5px solid #f4f4f4;">
    <div style="text-align:left; text-indent:2em;font-weight:bold; font-size:20px;color:#050C87; padding-bottom:10px; padding-top:15px;" class="line">
    <asp:Literal ID="ltaTitle" runat="server"></asp:Literal></div>
    <div style="background-image:url()"></div>
    <div style=" line-height:1.5;padding:25px;">

    <object align="middle" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
    id="MediaPlayer" width="780" height="550">
    <param name="ShowStatusBar" value="1">
    <param name="Filename" value='<%=VadioUrL %>'>
    <embed type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" flename="mp" src="demo.asf" width=500 height=300></embed>
    </object>
    </br>
    </br></br>
    <span style=" font-weight:bold;">内容简介:</span>
    </br>
    <asp:Literal ID="ltaBody" runat="server"></asp:Literal>

    </div>
    </div>

    后台代码

    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using Microsoft.SharePoint;
    using iWS.BPDI.BLL;

    namespace iWS.BPDI.SPS.ControlTemplates.iWS.BPDI
    {
    public partial class ucVideoDetail : BaseListItem
    {
    public string VadioUrL
    {
    get;
    set;
    }

    protected void Page_Load(object sender, EventArgs e)
    {
    if (!IsPostBack)
    {
    BindInfo();
    }
    }

    private void BindInfo()
    {
    SPListItem item = SPContext.Current.ListItem;
    this.ltaTitle.Text = UtilityPlus.GetItemString(item["Title"]);
    VadioUrL = UtilityPlus.GetItemString(item["链接"]);
    this.ltaBody.Text = UtilityPlus.GetItemString(item["注释"]);
    }
    }
    }

  • 相关阅读:
    4408: [Fjoi 2016]神秘数
    UOJ #35. 后缀排序[后缀数组详细整理]
    POJ 2887 Big String
    搜索过滤grep(win下为findstr)
    解决putty自动断开的问题
    > >> 将错误输出到文件
    环境变量
    端口被占用,查看并杀死占用端口的进程
    查找文件路径find
    【vim使用】
  • 原文地址:https://www.cnblogs.com/GreenGrass/p/2642175.html
Copyright © 2020-2023  润新知