Guide | How To Help with video Youtube auto loop and auto repeat?

The associated guide may contain user-generated or external content.

Wendy Thompson

New Member
Thread author
Feb 10, 2014
1
Hi Everyone

I'm hoping after joining this site someone out there can help me solve a little problem

I'm trying to get the code for a video I'm wanting to embed into a website -
I posted it on utube and trying to get the right coding to autoplay and autoloop - watched loads of
videos and tried various ways...

I'm copying the code I have and if somebody can correct me that would be great

Code:
<object width="847" height="499.7"><param name="movie" value="//www.youtube.com/v/8NVzuqhFxJ4&loop=1&autoplay=1?version=3&amp;hl=en_GB&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="//www.youtube.com/v/8NVzuqhFxJ4&loop=1&autoplay=1?version=3&amp;hl=en_GB&amp;rel=0" type="application/x-shockwave-flash" width="847" height="499.7" allowscriptaccess="always" allowfullscreen="true"></embed></object>

Really appreciate any responses thanks again
Wendy
 
Last edited by a moderator:

kaljukass

Level 2
May 17, 2012
127
Here is working version for You.
Select which compatible with yours site.
Code:
HTML (Simple)

<!-- Embed YouTube Video starts here -->
  <object width="847" height="499.7">
    <param name="movie" value="http://www.youtube.com/v/8NVzuqhFxJ4">
    <param name="allowFullScreen" value="true">
    <param name="allowscriptaccess" value="always">
    <embed src="http://www.youtube.com/v/8NVzuqhFxJ4?version=2&amp;autoplay=1&amp;loop=1;" type=
    "application/x-shockwave-flash" width="847" height="499.7" allowscriptaccess="always"
    allowfullscreen="true">
  </object>
<!-- video end is here -->

HTML 5

<!-- Embed YouTube Video starts here -->
  <object width="847" height="499.7">
    <param name="movie" value="http://www.youtube.com/v/8NVzuqhFxJ4">
    <param name="allowFullScreen" value="true">
    <param name="allowscriptaccess" value="always">
    <embed src="http://www.youtube.com/v/8NVzuqhFxJ4?version=2&amp;autoplay=1&amp;loop=1;" type=
    "application/x-shockwave-flash" width="847" height="499.7" allowscriptaccess="always"
    allowfullscreen="true">
  </object>
<!-- video end is here -->


XHTML

  <!-- Embed YouTube Video starts here -->
  <object width="847" height="499.7">
    <param name="movie" value="http://www.youtube.com/v/8NVzuqhFxJ4" />
    <param name="allowFullScreen" value="true" />
    <param name="allowscriptaccess" value="always" />
    <embed src="http://www.youtube.com/v/8NVzuqhFxJ4?version=2&amp;autoplay=1&amp;loop=1;" type=
    "application/x-shockwave-flash" width="847" height="499.7" allowscriptaccess="always"
    allowfullscreen="true" />
  </object> <!-- video end is here -->

Please use copy => Paste, to not make mistake.
_________________________________________________________
A bit more about how to use this code.
If anyone wants to use this code, for example, to post a YouTube video to your web page, you will be a slight change in the current YouTube video URL.
For example, if You get URL from YouTube like this:
Code:
http://www.youtube.com/watch?v=FBxT7Uj5NZ4
then You must use it in this code like the following URL looks out
Code:
http://www.youtube.com/v/FBxT7Uj5NZ4

Example:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
        <title>Estonian music popurrii</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    </head>
    <body>
        <div>
            <object width="600" height="300" id="myflashvideo">
            <base href="http://www.youtube.com/v/" />
                <param name="movie" value="FBxT7Uj5NZ4" />
                    <param name="allowFullScreen" value="true">
                    <param name="allowscriptaccess" value="always">
                <embed src="FBxT7Uj5NZ4?version=2&amp;autoplay=1&amp;loop=1&amp;" type="application/x-shockwave-flash"width="600" height="300" allowscriptaccess="always" allowfullscreen="true" />
                </embed>
            </object>
        </div>
    </body>
</html>
 
Last edited:
  • Like
Reactions: Ink

youtuberepeat

New Member
May 22, 2015
1
Hello guys, I'm new to coding. I was hoping someone can help me provide a code that I can paste it on my website. Like the youtube search box and then it will automatically repeat that video. Just like this website http://www.infinitelooper.com/ but i only need the youtube search box then it will repeat itself.
 

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top