phseven Posted February 6, 2022 Share Posted February 6, 2022 Possible to add an auto play option on/off? after video ends play next on list. Like play videos from a playlist or similar videos Regards Jorge 1 Quote Link to comment Share on other sites More sharing options...
Tech Support Posted February 7, 2022 Share Posted February 7, 2022 What do you exactly mean by "next on list" please? Do you mean related videos for example, go to the first related video? Quote Link to comment Share on other sites More sharing options...
phseven Posted February 7, 2022 Author Share Posted February 7, 2022 I mean play videos from related videos or what user list has picked like image. If related videos then play next related video. If user picks more videos from user/channel then play next video from that list 1 Quote Link to comment Share on other sites More sharing options...
Tech Support Posted February 8, 2022 Share Posted February 8, 2022 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. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.