修剪HTML5 MediaPlayer视频 [英] Trimming HTML5 MediaPlayer videos

查看:74
本文介绍了修剪HTML5 MediaPlayer视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



使用HTML5视频播放器在我的网页上播放视频。

它的工作正常。现在我想在特定时间内修剪视频,我必须在我的本地驱动器中保存为新的视频文件。

任何人都可以帮助我。



这是我的代码片段您的参考

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

<%@ 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>

推荐答案

这篇关于修剪HTML5 MediaPlayer视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆