Apply style to HTML Video player in ASP.Net

Last Reply 6 months ago By pandeyism

Posted 6 months ago

This jquery video player still i wanted to use it to style my video player in my datalist but it only works on the first video showing on datalist.

https://github.com/sampotts/plyr

 

  <asp:DataList ID="GETDiscription" runat="server" OnItemDataBound="GETDiscription_ItemDataBound">
        <ItemTemplate>

  <video class="plyr__video-embed" id="player" style=" width:100%" preload="none" controls playsinline webkit-playsinline>
    <source src="<%# Eval("Path") %>" type="video/mp4" >
      <source src="<%# Eval("Path") %>" type="video/ogg">
      <source src="<%# Eval("Path") %>" type="video/webm">
    Your browser does not support HTML5 video.
  </video>


 </ItemTemplate>
                    </asp:DataList>

 

You are viewing reply posted by: pandeyism 6 months ago.
Posted 6 months ago

Hi micah,

I have tried to apply the css for all the vodeo. But unfortunatly it doesn't support for multiple.

As per the sample provide by the author it also doesn't work with multiple video.

So we can't do much for this. You need to contact the author.