如何使用jQuery Media Plugin在gridview中播放视频 [英] How can I play video in gridview using jQuery Media Plugin
本文介绍了如何使用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>
推荐答案
它几乎可以用于嵌入任何媒体类型,包括Flash,Quicktime,Windows Media Player,Real Player,MP3,Silverlight,PDF和更多,进入网页.该插件将元素(通常为<a></a>
)转换为<div> </div>
,其中包含呈现媒体内容所需的对象,embed或iframe标签.
您可以从给定的参考链接中完成实际示例.
参考链接:- http://aspnetvisual.blogspot.com/2011/10/jquery-media- plugin.html [ ]
It can be used to embed virtually any media type, including Flash, Quicktime, Windows Media Player, Real Player, MP3, Silverlight, PDF and more, into a web page. The plugin converts an element (usually an<a></a>
) into a<div> </div>
which holds the object, embed or iframe tags neccessary to render the media content.
You can complete practical example from given reference link
Reference Link :-http://aspnetvisual.blogspot.com/2011/10/jquery-media-plugin.html[]
这篇关于如何使用jQuery Media Plugin在gridview中播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文