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#

Code:

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

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></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;
            });
        });
    </script>

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

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

Related Questions