如何将视频列表添加到jplayer?
问题描述:
大家好,
我有一个asp.net页面,我正在使用jplayer在我的网页上播放视频。
我正在使用的代码已成功运行,但它只播放一个视频。
我想添加更多视频和一个接一个地玩。
我尝试过:
代码我尝试播放一个视频片段
Hi guys,
I have an asp.net page, where i'm using jplayer to play video in my web page.
The code i'm using is successfully running, but its playing only one video.
I want to add more videos and play one after the other.
What I have tried:
Code i tried for playing one video clip
<script type="text/javascript">
$(document).ready(function () {
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
title: "Configuring visual directory!",
m4v: "AppVideos/2.mp4",
m4v: "AppVideos/3.mp4"
});
},
swfPath: "dist/jplayer",
supplied: "webmv, ogv, m4v",
size: {
width: "640px",
height: "360px",
cssClass: "jp-video-360p"
},
useStateClassSkin: true,
autoBlur: false,
smoothPlayBar: true,
keyEnabled: true,
remainingDuration: true,
toggleDuration: true,
loop: true,
canplay: function () {
$("#jquery_jplayer_1").jPlayer("play");
}
});
});
</script>
任何人都可以帮助我。
我如何添加多个视频并一个接一个地播放。
我搜索了一些网站,但无法理解。
参考: http://jplayer.org/latest/demo-02-jPlayerPlaylist/
谢谢
Can any one, plz help me.
How can i add multiple videos and play one after the other.
I have searched some website, but not able to understand.
Ref: http://jplayer.org/latest/demo-02-jPlayerPlaylist/
Thanks
答
(文件).ready (function(){
(document).ready(function () {
(#jquery_jplayer_1)。jPlayer({
ready:function(){
("#jquery_jplayer_1").jPlayer({ ready: function () {
(this) .jPlayer(setMedia,{
标题:配置可视目录!,
m4v:AppVideos / 2.mp4,
m4v:AppVideos / 3.mp4
});
},
swfPath:dist / jplayer,
提供:webmv,o gv,m4v,
尺寸:{
宽度:640px,
高度:360px,
cssClass:jp-video-360p
} ,
useStateClassSkin:true,
autoBlur:false,
smoothPlayBar:true,
keyEnabled:true,
remainingDuration:true,
toggleDuration:true,
loop:true,
canplay:function(){
(this).jPlayer("setMedia", { title: "Configuring visual directory!", m4v: "AppVideos/2.mp4", m4v: "AppVideos/3.mp4" }); }, swfPath: "dist/jplayer", supplied: "webmv, ogv, m4v", size: { width: "640px", height: "360px", cssClass: "jp-video-360p" }, useStateClassSkin: true, autoBlur: false, smoothPlayBar: true, keyEnabled: true, remainingDuration: true, toggleDuration: true, loop: true, canplay: function () {