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

OnPlaylistComplete question when trying to play a playlistItem


We are creating courses with a set of videos on a playlist. Currently the user can skip around and play the videos in any order from the playlist (which is fine). When the last item on the playlist finishes onPlaylistComplete is called and we send the user to a quiz.

We've had complaints because users have been skipping to the last item on the playlist and just taking the quiz without watching all the videos on the playlist. I'm working on putting in code to keep track of all the playlist items that haven't been called so now when OnPlaylistComplete is called, I check to see if any items weren't played and I want to send the user to the first item on the playlist the user didn't touch. However, it doesn't play. It's as if it thinks I've completed everything and my only option is to start from the beginning.

Is something set so that it won't let me take a random item on the playlist once OnPlaylistComplete is called but I must start from the beginning (1st item on the playlist)? I can email you a copy of the course as it's on a local test bed. Any suggestions you have would be greatly appreciated.

5 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have an example of where you are implementing this if possible?

publishing

User  
0 rated :

The courses aren't public but can I email you a course that will play stand alone or I can put in a code snippet here. Thanks!

Ethan Feldman

JW Player Support Agent  
0 rated :

Ok, np!

publishing

User  
0 rated :

Is there an email I should send the course to?

Ethan Feldman

JW Player Support Agent  
0 rated :

support [at] jwplayer [dot] com

This question has received the maximum number of answers.