Video of html5 doesn't run

AccinsgAk

New Member
I have a video Element of html5. i have implemented it as \[code\] </head><body> <form id="form1" runat="server"> <div> <video id="ss" runat="server" controls="controls" tabindex="5" class="video-js vjs-default-skin" data-setup="{}" poster="my_video_poster.png"> <source src="http://stackoverflow.com/questions/12818927/Videos/2.mp4" type="video/mp4"> </video> </div> <asp:Button ID="Button1" runat="server" Text="View" onclick="Button1_Click" /> </form></body>\[/code\]at \[code\]cs\[/code\] file\[code\]protected void Button1_Click(object sender, EventArgs e) { ss.Attributes.Add("src", "~/Videos/1.mp4"); }\[/code\]I want to change the Src of html5 at the click of a button. but this particular method doesn't able to run. thanks for any assistance.
 
Back
Top