Jump to content

Autoplay


phseven

Recommended Posts

Here are steps to enable this.

In Website UI -> Pages -> View Video page locate video_view block and open it for editing.

In block template find this line of code:

kt_player('kt_player', '{{$config.project_url}}/player/kt_player.swf?v={{$config.project_version}}', '100%', '100%', flashvars);

And change it to assign result to player_obj variable:

var player_obj = kt_player('kt_player', '{{$config.project_url}}/player/kt_player.swf?v={{$config.project_version}}', '100%', '100%', flashvars);

Then add the following block next to it:

player_obj.listen('ktVideoFinished', function() {
		window.location = $('#list_videos_related_videos .item a[href]:first').attr('href');
});

This code should redirect user to the first related video after the current video plays until end.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...