• Resolved metropolisrob

    (@metropolisrob)


    Hi,

    Is there a way I am able to automatically loop a YouTube video that I have embedded into my page?

    Cheers,

    Rob

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Dear Rob,

    Thanks for reaching out us.
    May we kindly ask you to let us know for which view would you like the changes to be applied? Please, mention also the version of your plugin.
    We will be happy to provide the codes so that you could implement them in the file and make the video loop. For providing appropriate information, we will need to know which view you are going to use.

    Thanks in advance

    Thread Starter metropolisrob

    (@metropolisrob)

    I will be using the ‘video slider’ view & my plugin version is 2.2.0

    Thank you for your help ??

    Dear metropolisrob,

    Thanks for the provided information.
    Please find the following file:

    templates/front-end/view/slider/slider-view.php

    on line 77 include this part of codes to the file:

    ‘loop’: 1,
    ‘playlist’: ‘<?php echo $video_id;?>’

    It should have the following look:

    playerVars: {
    ‘controls’: <?php if ($videos[$key]->show_controls==”on”){ echo 1;}else{echo 0;} ?>,
    ‘showinfo’: <?php if ($videos[$key]->show_info==”on”){ echo 1;}else{echo 0;} ?>,
    ‘rel’: <?php echo $rel_videos;?>,
    ‘loop’: 1,
    ‘playlist’: ‘<?php echo $video_id;?>’
    },

    Please inform us about your results after impelemnting the codes.
    We will wait for your results.

    Thanks

    Thread Starter metropolisrob

    (@metropolisrob)

    Thank you very much for the effort in your response – it is very much appreciated.

    I may sound silly – but am I able to add that code through my WordPress dashboard? I don’t have access to the FTP client.

    I am unable to find templates/front-end/view/slider/slider-view.php through my dashboard so I assume it’s not possible

    Thank you

    Dear metropolisrob,

    In the case if you don’t have access to the FTP access, please, download the WP Editor plugin on your WordPress admin dashboard > activate it > go to plugins’ page > Video Gallery > Edit

    After that, all files of the plugin which can be accessed via FTP will be available from the WordPress admin dashboard. Thus the changes can be done directly from the WordPress.

    Please let us know about your results.

    Thanks

    Thread Starter metropolisrob

    (@metropolisrob)

    My code now reads;

    First line-73

    playerVars: {
    ‘controls’: <?php if ($videos[$key]->show_controls==”on”){ echo 1;}else{echo 0;} ?>,
    ‘showinfo’: <?php if ($videos[$key]->show_info==”on”){ echo 1;}else{echo 0;} ?>,
    ‘rel’: <?php echo $rel_videos;?>,
    ‘loop’: 1,
    ‘playlist’: ‘<?php echo $video_id;?>’
    },

    last line – 79
    Although now the video doesnt show in video slider.

    Thread Starter metropolisrob

    (@metropolisrob)

    Thank you for your help so far.

    Dear metropolisrob,

    Have you reached the result that you wanted to have?
    Is everything working as expected?

    If no, we will be happy to assist you further.

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Loop YouTube Video’ is closed to new replies.