本文介绍了如何使用jQuery Media Plugin在gridview中播放视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的.aspx页面中使用jQuery Media Plugin(http://jquery.malsup.com/media/#overview).目前,我已使用Windows媒体插件(如下所示)管理该视频.
I want to use jQuery Media Plugin (http://jquery.malsup.com/media/#overview) in my .aspx page. Presently I have managed that video using windows media plugin like below.
<asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False"
PageSize="5" AllowPaging="True" onpageindexchanging="GridView3_PageIndexChanging">
<Columns>
<asp:BoundField DataField="vdo_id" HeaderText="Video ID" />
<asp:TemplateField HeaderText="FilePath" SortExpression="vediopath">
<ItemTemplate>
<asp:Panel ID="Panel_MediaPlayer" runat="server" Visible="true">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="mediaplayer1" ShowStatusBar="true" EnableContextMenu="false" autostart="false" width="320" height="240" loop="false" src='<%# Eval("vdo_path") %>' />
</asp:Panel>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="vdo_desc" HeaderText="Video Description" />
<asp:BoundField DataField="DOE" HeaderText="Entry Date" />
</Columns>
</asp:GridView>
推荐答案
这篇关于如何使用jQuery Media Plugin在gridview中播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!