Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,
Am Using HTML5 Video Player to Play videos in my web page.
Its works fine.Now i want to trimming the video between particular duration, and i have to save as a new video file in my local drive.
Can any one help me.

this is my Code snippet for your reference
ASP.NET
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="VideoPlayer.aspx.cs" Inherits="VideoPlayer" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">

    <link href="<%=ResolveClientUrl("Styles/Site.css")%>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%=ResolveClientUrl("../Scripts1/jquery-1.4.1.min.js")%>"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <p>
                <label>Video with single source: </label>
                <br />
                <video id="sampleVideo" controls src="http://shuen-yuan.com/Videos/kittenlabs_weathertribes_video.mp4">
                    <track src="../Files/sampleSubtitles.vtt" srclang="en" kind="subtitles" label="English subtitles">
                    Your browser does not support the audio element.
                </video>
                <input type="button" value="Mute" onclick="CMute(sampleVideo);" />
                <input type="button" value="Unmute" onclick="CUnMute(sampleVideo);" />
                <input type="button" value="Pause" onclick="CPause(sampleVideo);" />
                <input type="button" value="Play" onclick="CPlay(sampleVideo);" />
                <input type="button" value="Fullscreen" onclick="CFullScreen(sampleVideo);" />
                <br />
            </p>
        </div>
    </form>
</body>
</html>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900