Apply style to HTML Video player in ASP.Net

Last Reply 9 days ago By pandeyism

Posted 14 days 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>

 

Posted 9 days ago

the screenshot in this example is what i get on datalist but the issue is, if you have 2 videos on your datalist, you will notice that the first video will look like this example on this link

https://github.com/sampotts/plyr

while your second video will be just normal htm5 look video, the css supposed to be applied to all video showing on page


Posted 9 days 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.