如何将视频列表添加到jplayer? [英] How to add list of videos to the jplayer?

查看:75
本文介绍了如何将视频列表添加到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 () {


这篇关于如何将视频列表添加到jplayer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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