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

Custom Video Ads


I am looking for ads where I ll be uploading short mp4 videos on my RTMP server and I just need show it before video and enable click on it. I don't want to use ADS platform because my clients has lots of backend functionality for ads. How can I do this feature in JWPlayer. I will be hosting player and video files on my own server.

3 Community Answers

Todd

JW Player Support Agent  
0 rated :

If you want a short video to play before the main video, you could use a playlist. Our player will play the first video and then jump to the next one. The syntax looks like this:

jwplayer(‘demo’).setup({
playlist: [{
file: “bunny.mp4”,
image: “bunny.jpg”,
title: “Big Buck Bunny trailer”
},{
file: “sintel.mp4”,
image: “sintel.jpg”,
title: “Sintel trailer”
}],
width: ‘480’,
height: ‘460’,
listbar: {
position: “bottom”,
layout: ‘basic’
}
});

You can read more about the playlist options at http://support.jwplayer.com/customer/portal/articles/1413113-configuration-options-reference#playlist

Hope this helps,
Todd

nirajmchauhan

User  
0 rated :

But is it possible to have a click on video and to show a skip or countdown button? I know I have to code it, but is it possible?

Todd

JW Player Support Agent  
0 rated :

Yes, you could make a CSS overlay with a skip button. When the button is clicked, you would need it to make a Javascript call from our API to jump to the next playlist item. (The first item is 0, so the second video in your playlist is 1):

jwplayer().playlistItem(1);

Hope this helps,
Todd

This question has received the maximum number of answers.