Flowplayer change current video with links

I have a flowplayer at the top of my page and then a list of links underneath that link to different videos.

Is it possible to load the new video into the player from the links?

Upvotes: 0

Views: 2323

Answers (1)

Boaz
Boaz

Reputation: 20230

Flowplayer has an extensive Javascript API that allows you to change many aspects of the player object, including the current video playing.

In addition, in order to use the links for this purpose, you can bind an event handler to the links, that will load the href attribute of the link into the player object.

For example, with jQuery you can do this:

$('.video_link').on('click', function() {
    $('#video_player').setClip($(this).attr('href'));
    return false;
});

Upvotes: 1

Related Questions