Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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>


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