Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

JWPlayer Playlists Auto Advance with HWD Mediashare


I am using HWD Mediashare which has a JWPlayer plugin, and have added a playlist within HWD Mediashare, but the playlist does not advance to the next video after the first one has completed ... I am using version 6 of the plugin, and the media player configuration is set to AutoPlay in the HWD configuration ... When I first created the playlist, the autoadvance to the next video, etc., seemed to work, but now it does not and I can't get it to do it again ... If anyone can help with this I would really appreciate it ... even if I have to modify the player code if you can tell me which lines to add/edit to make the autoadvance work.

Thanks

4 Community Answers

Todd

JW Player Support Agent  
0 rated :

I am not familiar with HWD Mediashare. Can you post a link to your test page so we can troubleshoot further?

Does the same thing happen in JW7?

itprof_ma

User  
0 rated :

The link to the JWPlayer with HWD Mediashare playlist is:
http://www.ofgodtv.com/jml/index.php/playlists/28-of-god-tv/28

But in order to get to it you have to first go to:
http://www.ofgodtv.com/jml/index.php

and sign in with:
u: terry
p: ofgod

Then click on "Watch Now" in the menu at the top of the page.
This will bring you to the same link I first mentioned with JW Player.

itprof_ma

User  
0 rated :

What I am really trying to do is to edit the programming of the JW Player so that I can add a time schedule function to play specific videos in the playlist at specific times of the day, such as:

Video1 at 12:00am for 1.5 hours, Video2 at 1:30am for 1.5 hours, video3 at 3:00am for 0.5 hours, Video4 at 3:30am for 0.5 hours, etc ...

The system time for this would be used at the client's end so that the movies would play at the same times/intervals in their time zone.

I believe that this is possible, given instruction and access to the correct programming and files to edit

Todd

JW Player Support Agent  
0 rated :

We have an old example for this at https://support.jwplayer.com/customer/portal/articles/1436942 where first set up the player with a playlist. In an .on(‘ready’) function, we determine the viewer’s local time from the browser and then check each playlist item’s duration to see where they should start in the playlist:

playerInstance.on('ready', function() {
        var seconds = new Date().getMinutes()*60 + new Date().getSeconds();
        var playlist = playerInstance.getPlaylist();
        var offset = 0;

        for (var index=0; index < playlist.length; index++) {
            var duration = Math.round(playlist[index]['duration']);
            if(offset + duration > seconds) {
                playerInstance.playlistItem(index);
                playerInstance.seek(seconds-offset);
                break;
            } else {
                offset += duration;
            }
        }
    });

This question has received the maximum number of answers.