Linked Questions

Popular Questions

How to get Current time video in Html-5 using c# at code behind?

Asked by At

a need to get current time video using code behind in webforms c#


<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

    <script type="text/javascript" src=""></script>
    <script type="text/javascript">
        $(function () {
            $('input[type=file]').change(function () {
                var fileInput = document.getElementById('fileItem');
                var files = fileInput.files;
                var fileURL = URL.createObjectURL(files[0]);
                document.querySelector('video').src = fileURL;

        <input id="fileItem" type="file" accept="video/*" />
        <br />
        <br />
        <video controls autoplay style="height: 100px; width: 100px;" id="Video"></video>

how to get the current time of the video. How to get this in code behind in ASP.Net?

Related Questions