I'm using html5 video to display a video on my website. I am able to use Javascript to get and set the currentTime property, but this functionality disappears when I add
runat="server"
to the video. If I don't include it, I am unable to use code such as
MyVideo.Attributes["src"] = "Videos/" + video_id + ".mp4";
in the code-behind file. Is there a way that I can maintain the functionality of the javascript code (seeking, setting current time, etc) and still set the source through the code-behind file?