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

Replace file when item in a playlist is not found


I am trying to find a solution where I can replace a video in the playlist if an item is not found. We allow users to upload video content through the JW API. JW generates a 320p, 480p, and 720p file when encoding the original file. We then allow users to build playlists and want to use the highest quality possible. We are manually calling the 720p version of this using custom javascript setup. However, if the original file is below 720p, the item in the playlist will not work. I found the article here explaining how to display a custom error when a video is not found - I'd like to know how to do the same thing but with a playlist item.

https://developer.jwplayer.com/jw-player/demos/basic/custom-error/

Thanks for your help.

1 Community Answers

George

JW Player Support Agent  
0 rated :

Since there’s an email thread about this issue, I’d suggest we continue via email.

The real question would be where is the final playlist being built? The playlist delivered client side should be a working playlist, so you should test if the 720p version exists prior to adding it to the playlist. Or better yet, get the full list of available qualities of the video and pick the highest, instead of hard-coding it to 720.

This question has received the maximum number of answers.