Javascript Flowplayer向视频添加步骤
嘿,伙计们,我如何用一些HTML向视频添加步骤,如:Javascript Flowplayer向视频添加步骤,javascript,video-streaming,flowplayer,Javascript,Video Streaming,Flowplayer,嘿,伙计们,我如何用一些HTML向视频添加步骤,如: function changeTheChapter() { var currentChapter = parseFloat(document.getElementById("currentChapter").value); var videoPlayer = document.getElementById("tehplayer"); v
function changeTheChapter()
{
var currentChapter = parseFloat(document.getElementById("currentChapter").value);
var videoPlayer = document.getElementById("tehplayer");
var positon = [];
positon[0] = 0;
positon[1] = 30;
positon[2] = 60;
videoPlayer.currentTime = positon[currentChapter];
document.getElementById("currentChapter").value = parseFloat(currentChapter+1);
//videoPlayer.currentTime = position[currentChapter];
}
</script>
</head>
<body>
Video For Everybody Generator
MP4 Video Ogg Video WebM Video Poster Image Fallback Title Width Height Autoplay XML Formatting Embed as HTML5+Flash HTML5 Flash Poster Flash Player
Preview
Big Buck Bunny
Download video: MP4 format | Ogg format | WebM format
Source Code
<!-- "Video For Everybody" v0.4.2 by Kroc Camen of Camen Design -->
<video id="tehplayer" controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360">
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />
<img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />
</video>
<input type="hidden" id="currentChapter" value="0" />
<p>
<strong>Download video:</strong>
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4">MP4 format</a> | <a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv">Ogg format</a> |
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm">WebM format</a>
</p>
<button id="chapterChange" value="Go To Next" onclick ="changeTheChapter();"/>
</body>
步骤1->00:00 |步骤2->03:01 |步骤3->05:33
function changeTheChapter()
{
var currentChapter = parseFloat(document.getElementById("currentChapter").value);
var videoPlayer = document.getElementById("tehplayer");
var positon = [];
positon[0] = 0;
positon[1] = 30;
positon[2] = 60;
videoPlayer.currentTime = positon[currentChapter];
document.getElementById("currentChapter").value = parseFloat(currentChapter+1);
//videoPlayer.currentTime = position[currentChapter];
}
</script>
</head>
<body>
Video For Everybody Generator
MP4 Video Ogg Video WebM Video Poster Image Fallback Title Width Height Autoplay XML Formatting Embed as HTML5+Flash HTML5 Flash Poster Flash Player
Preview
Big Buck Bunny
Download video: MP4 format | Ogg format | WebM format
Source Code
<!-- "Video For Everybody" v0.4.2 by Kroc Camen of Camen Design -->
<video id="tehplayer" controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360">
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />
<img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />
</video>
<input type="hidden" id="currentChapter" value="0" />
<p>
<strong>Download video:</strong>
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4">MP4 format</a> | <a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv">Ogg format</a> |
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm">WebM format</a>
</p>
<button id="chapterChange" value="Go To Next" onclick ="changeTheChapter();"/>
</body>
有什么东西可以提供吗
function changeTheChapter()
{
var currentChapter = parseFloat(document.getElementById("currentChapter").value);
var videoPlayer = document.getElementById("tehplayer");
var positon = [];
positon[0] = 0;
positon[1] = 30;
positon[2] = 60;
videoPlayer.currentTime = positon[currentChapter];
document.getElementById("currentChapter").value = parseFloat(currentChapter+1);
//videoPlayer.currentTime = position[currentChapter];
}
</script>
</head>
<body>
Video For Everybody Generator
MP4 Video Ogg Video WebM Video Poster Image Fallback Title Width Height Autoplay XML Formatting Embed as HTML5+Flash HTML5 Flash Poster Flash Player
Preview
Big Buck Bunny
Download video: MP4 format | Ogg format | WebM format
Source Code
<!-- "Video For Everybody" v0.4.2 by Kroc Camen of Camen Design -->
<video id="tehplayer" controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360">
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />
<img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />
</video>
<input type="hidden" id="currentChapter" value="0" />
<p>
<strong>Download video:</strong>
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4">MP4 format</a> | <a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv">Ogg format</a> |
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm">WebM format</a>
</p>
<button id="chapterChange" value="Go To Next" onclick ="changeTheChapter();"/>
</body>
谢谢。试试这个非常简单的例子。它在chrome和firefox中工作。我只是使用了普通的HTML5和javascript以及一个按钮(顺便说一句,这个按钮非常小),并且我使用了来自的很多信息。希望这有帮助。
function changeTheChapter()
{
var currentChapter = parseFloat(document.getElementById("currentChapter").value);
var videoPlayer = document.getElementById("tehplayer");
var positon = [];
positon[0] = 0;
positon[1] = 30;
positon[2] = 60;
videoPlayer.currentTime = positon[currentChapter];
document.getElementById("currentChapter").value = parseFloat(currentChapter+1);
//videoPlayer.currentTime = position[currentChapter];
}
</script>
</head>
<body>
Video For Everybody Generator
MP4 Video Ogg Video WebM Video Poster Image Fallback Title Width Height Autoplay XML Formatting Embed as HTML5+Flash HTML5 Flash Poster Flash Player
Preview
Big Buck Bunny
Download video: MP4 format | Ogg format | WebM format
Source Code
<!-- "Video For Everybody" v0.4.2 by Kroc Camen of Camen Design -->
<video id="tehplayer" controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360">
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />
<img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />
</video>
<input type="hidden" id="currentChapter" value="0" />
<p>
<strong>Download video:</strong>
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4">MP4 format</a> | <a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv">Ogg format</a> |
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm">WebM format</a>
</p>
<button id="chapterChange" value="Go To Next" onclick ="changeTheChapter();"/>
</body>
function changeTheChapter()
{
var currentChapter = parseFloat(document.getElementById("currentChapter").value);
var videoPlayer = document.getElementById("tehplayer");
var positon = [];
positon[0] = 0;
positon[1] = 30;
positon[2] = 60;
videoPlayer.currentTime = positon[currentChapter];
document.getElementById("currentChapter").value = parseFloat(currentChapter+1);
//videoPlayer.currentTime = position[currentChapter];
}
</script>
</head>
<body>
Video For Everybody Generator
MP4 Video Ogg Video WebM Video Poster Image Fallback Title Width Height Autoplay XML Formatting Embed as HTML5+Flash HTML5 Flash Poster Flash Player
Preview
Big Buck Bunny
Download video: MP4 format | Ogg format | WebM format
Source Code
<!-- "Video For Everybody" v0.4.2 by Kroc Camen of Camen Design -->
<video id="tehplayer" controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360">
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />
<img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />
</video>
<input type="hidden" id="currentChapter" value="0" />
<p>
<strong>Download video:</strong>
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4">MP4 format</a> | <a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv">Ogg format</a> |
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm">WebM format</a>
</p>
<button id="chapterChange" value="Go To Next" onclick ="changeTheChapter();"/>
</body>
函数更改章节()
{
var currentChapter=parseFloat(document.getElementById(“currentChapter”).value);
var videoPlayer=document.getElementById(“tehplayer”);
var头寸=[];
位置[0]=0;
位置[1]=30;
位置[2]=60;
videoPlayer.currentTime=位置[当前章节];
document.getElementById(“currentChapter”).value=parseFloat(currentChapter+1);
//videoPlayer.currentTime=位置[当前章节];
}
每个人的视频发生器
MP4视频Ogg视频WebM视频海报图像回退标题宽度高度自动播放XML格式嵌入为HTML5+Flash HTML5 Flash海报Flash播放器
预览
大公兔
下载视频:MP4格式| Ogg格式| WebM格式
源代码
下载视频:
| |
function changeTheChapter()
{
var currentChapter = parseFloat(document.getElementById("currentChapter").value);
var videoPlayer = document.getElementById("tehplayer");
var positon = [];
positon[0] = 0;
positon[1] = 30;
positon[2] = 60;
videoPlayer.currentTime = positon[currentChapter];
document.getElementById("currentChapter").value = parseFloat(currentChapter+1);
//videoPlayer.currentTime = position[currentChapter];
}
</script>
</head>
<body>
Video For Everybody Generator
MP4 Video Ogg Video WebM Video Poster Image Fallback Title Width Height Autoplay XML Formatting Embed as HTML5+Flash HTML5 Flash Poster Flash Player
Preview
Big Buck Bunny
Download video: MP4 format | Ogg format | WebM format
Source Code
<!-- "Video For Everybody" v0.4.2 by Kroc Camen of Camen Design -->
<video id="tehplayer" controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360">
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />
<img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />
</video>
<input type="hidden" id="currentChapter" value="0" />
<p>
<strong>Download video:</strong>
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4">MP4 format</a> | <a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv">Ogg format</a> |
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm">WebM format</a>
</p>
<button id="chapterChange" value="Go To Next" onclick ="changeTheChapter();"/>
</body>
试试这个非常简单的例子。它在chrome和firefox中工作。我只是使用了普通的HTML5和javascript以及一个按钮(顺便说一句,这个按钮非常小),并且我使用了来自的很多信息。希望这有帮助。
function changeTheChapter()
{
var currentChapter = parseFloat(document.getElementById("currentChapter").value);
var videoPlayer = document.getElementById("tehplayer");
var positon = [];
positon[0] = 0;
positon[1] = 30;
positon[2] = 60;
videoPlayer.currentTime = positon[currentChapter];
document.getElementById("currentChapter").value = parseFloat(currentChapter+1);
//videoPlayer.currentTime = position[currentChapter];
}
</script>
</head>
<body>
Video For Everybody Generator
MP4 Video Ogg Video WebM Video Poster Image Fallback Title Width Height Autoplay XML Formatting Embed as HTML5+Flash HTML5 Flash Poster Flash Player
Preview
Big Buck Bunny
Download video: MP4 format | Ogg format | WebM format
Source Code
<!-- "Video For Everybody" v0.4.2 by Kroc Camen of Camen Design -->
<video id="tehplayer" controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360">
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />
<img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />
</video>
<input type="hidden" id="currentChapter" value="0" />
<p>
<strong>Download video:</strong>
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4">MP4 format</a> | <a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv">Ogg format</a> |
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm">WebM format</a>
</p>
<button id="chapterChange" value="Go To Next" onclick ="changeTheChapter();"/>
</body>
function changeTheChapter()
{
var currentChapter = parseFloat(document.getElementById("currentChapter").value);
var videoPlayer = document.getElementById("tehplayer");
var positon = [];
positon[0] = 0;
positon[1] = 30;
positon[2] = 60;
videoPlayer.currentTime = positon[currentChapter];
document.getElementById("currentChapter").value = parseFloat(currentChapter+1);
//videoPlayer.currentTime = position[currentChapter];
}
</script>
</head>
<body>
Video For Everybody Generator
MP4 Video Ogg Video WebM Video Poster Image Fallback Title Width Height Autoplay XML Formatting Embed as HTML5+Flash HTML5 Flash Poster Flash Player
Preview
Big Buck Bunny
Download video: MP4 format | Ogg format | WebM format
Source Code
<!-- "Video For Everybody" v0.4.2 by Kroc Camen of Camen Design -->
<video id="tehplayer" controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360">
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />
<img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />
</video>
<input type="hidden" id="currentChapter" value="0" />
<p>
<strong>Download video:</strong>
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4">MP4 format</a> | <a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv">Ogg format</a> |
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm">WebM format</a>
</p>
<button id="chapterChange" value="Go To Next" onclick ="changeTheChapter();"/>
</body>
函数更改章节()
{
var currentChapter=parseFloat(document.getElementById(“currentChapter”).value);
var videoPlayer=document.getElementById(“tehplayer”);
var头寸=[];
位置[0]=0;
位置[1]=30;
位置[2]=60;
videoPlayer.currentTime=位置[当前章节];
document.getElementById(“currentChapter”).value=parseFloat(currentChapter+1);
//videoPlayer.currentTime=位置[当前章节];
}
每个人的视频发生器
MP4视频Ogg视频WebM视频海报图像回退标题宽度高度自动播放XML格式嵌入为HTML5+Flash HTML5 Flash海报Flash播放器
预览
大公兔
下载视频:MP4格式| Ogg格式| WebM格式
源代码
下载视频:
| |
function changeTheChapter()
{
var currentChapter = parseFloat(document.getElementById("currentChapter").value);
var videoPlayer = document.getElementById("tehplayer");
var positon = [];
positon[0] = 0;
positon[1] = 30;
positon[2] = 60;
videoPlayer.currentTime = positon[currentChapter];
document.getElementById("currentChapter").value = parseFloat(currentChapter+1);
//videoPlayer.currentTime = position[currentChapter];
}
</script>
</head>
<body>
Video For Everybody Generator
MP4 Video Ogg Video WebM Video Poster Image Fallback Title Width Height Autoplay XML Formatting Embed as HTML5+Flash HTML5 Flash Poster Flash Player
Preview
Big Buck Bunny
Download video: MP4 format | Ogg format | WebM format
Source Code
<!-- "Video For Everybody" v0.4.2 by Kroc Camen of Camen Design -->
<video id="tehplayer" controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360">
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />
<img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />
</video>
<input type="hidden" id="currentChapter" value="0" />
<p>
<strong>Download video:</strong>
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4">MP4 format</a> | <a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv">Ogg format</a> |
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm">WebM format</a>
</p>
<button id="chapterChange" value="Go To Next" onclick ="changeTheChapter();"/>
</body>
是的,您可以通过。给你
function changeTheChapter()
{
var currentChapter = parseFloat(document.getElementById("currentChapter").value);
var videoPlayer = document.getElementById("tehplayer");
var positon = [];
positon[0] = 0;
positon[1] = 30;
positon[2] = 60;
videoPlayer.currentTime = positon[currentChapter];
document.getElementById("currentChapter").value = parseFloat(currentChapter+1);
//videoPlayer.currentTime = position[currentChapter];
}
</script>
</head>
<body>
Video For Everybody Generator
MP4 Video Ogg Video WebM Video Poster Image Fallback Title Width Height Autoplay XML Formatting Embed as HTML5+Flash HTML5 Flash Poster Flash Player
Preview
Big Buck Bunny
Download video: MP4 format | Ogg format | WebM format
Source Code
<!-- "Video For Everybody" v0.4.2 by Kroc Camen of Camen Design -->
<video id="tehplayer" controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360">
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />
<img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />
</video>
<input type="hidden" id="currentChapter" value="0" />
<p>
<strong>Download video:</strong>
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4">MP4 format</a> | <a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv">Ogg format</a> |
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm">WebM format</a>
</p>
<button id="chapterChange" value="Go To Next" onclick ="changeTheChapter();"/>
</body>
基本上,您只需在播放器上调用seek
方法
function changeTheChapter()
{
var currentChapter = parseFloat(document.getElementById("currentChapter").value);
var videoPlayer = document.getElementById("tehplayer");
var positon = [];
positon[0] = 0;
positon[1] = 30;
positon[2] = 60;
videoPlayer.currentTime = positon[currentChapter];
document.getElementById("currentChapter").value = parseFloat(currentChapter+1);
//videoPlayer.currentTime = position[currentChapter];
}
</script>
</head>
<body>
Video For Everybody Generator
MP4 Video Ogg Video WebM Video Poster Image Fallback Title Width Height Autoplay XML Formatting Embed as HTML5+Flash HTML5 Flash Poster Flash Player
Preview
Big Buck Bunny
Download video: MP4 format | Ogg format | WebM format
Source Code
<!-- "Video For Everybody" v0.4.2 by Kroc Camen of Camen Design -->
<video id="tehplayer" controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360">
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />
<img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />
</video>
<input type="hidden" id="currentChapter" value="0" />
<p>
<strong>Download video:</strong>
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4">MP4 format</a> | <a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv">Ogg format</a> |
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm">WebM format</a>
</p>
<button id="chapterChange" value="Go To Next" onclick ="changeTheChapter();"/>
</body>
$f("player").seek(55 /* seconds */);
是的,你可以做到。给你
function changeTheChapter()
{
var currentChapter = parseFloat(document.getElementById("currentChapter").value);
var videoPlayer = document.getElementById("tehplayer");
var positon = [];
positon[0] = 0;
positon[1] = 30;
positon[2] = 60;
videoPlayer.currentTime = positon[currentChapter];
document.getElementById("currentChapter").value = parseFloat(currentChapter+1);
//videoPlayer.currentTime = position[currentChapter];
}
</script>
</head>
<body>
Video For Everybody Generator
MP4 Video Ogg Video WebM Video Poster Image Fallback Title Width Height Autoplay XML Formatting Embed as HTML5+Flash HTML5 Flash Poster Flash Player
Preview
Big Buck Bunny
Download video: MP4 format | Ogg format | WebM format
Source Code
<!-- "Video For Everybody" v0.4.2 by Kroc Camen of Camen Design -->
<video id="tehplayer" controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360">
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />
<img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />
</video>
<input type="hidden" id="currentChapter" value="0" />
<p>
<strong>Download video:</strong>
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4">MP4 format</a> | <a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv">Ogg format</a> |
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm">WebM format</a>
</p>
<button id="chapterChange" value="Go To Next" onclick ="changeTheChapter();"/>
</body>
基本上,您只需在播放器上调用seek
方法
function changeTheChapter()
{
var currentChapter = parseFloat(document.getElementById("currentChapter").value);
var videoPlayer = document.getElementById("tehplayer");
var positon = [];
positon[0] = 0;
positon[1] = 30;
positon[2] = 60;
videoPlayer.currentTime = positon[currentChapter];
document.getElementById("currentChapter").value = parseFloat(currentChapter+1);
//videoPlayer.currentTime = position[currentChapter];
}
</script>
</head>
<body>
Video For Everybody Generator
MP4 Video Ogg Video WebM Video Poster Image Fallback Title Width Height Autoplay XML Formatting Embed as HTML5+Flash HTML5 Flash Poster Flash Player
Preview
Big Buck Bunny
Download video: MP4 format | Ogg format | WebM format
Source Code
<!-- "Video For Everybody" v0.4.2 by Kroc Camen of Camen Design -->
<video id="tehplayer" controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360">
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />
<source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />
<img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />
</video>
<input type="hidden" id="currentChapter" value="0" />
<p>
<strong>Download video:</strong>
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4">MP4 format</a> | <a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv">Ogg format</a> |
<a href="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm">WebM format</a>
</p>
<button id="chapterChange" value="Go To Next" onclick ="changeTheChapter();"/>
</body>
$f("player").seek(55 /* seconds */);
只是查了一下flow player,但如果IE6是一项要求,你可能应该提到这一点。哦,是的,那只是一个暗示。举个简单的例子,不想为您构建控件。只需查找flow player,但如果需要IE6,您可能应该提到这一点。哦,是的,那只是一个暗示。举个简单的例子,不想为您构建控件。这正是我想要的。谢谢。由于某种原因,我只能在3个小时内奖励你。这正是我想要的。谢谢。由于某种原因,我只能在3小时内奖励你。