Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Play youtube video on web page and remove references of other youtube videos at the end of video

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 126
    Comment on it

    Hello Readers,

    When we play a video on our webpage at the end of the of video it provides reference links of other videos so, if you want to play video and do not want to provide any reference links, below code will make this possible.

    **Here is the code of playing you tube video on web page:**
    
     <iframe width="40%" height="265" src="http://www.youtube.com/embed/VIDEOID?rel=0&autoplay=1&loop=0&wmode=opaque" class="mid-video login">
     </iframe>  
    

    yDmCtDaf20U => This is the Id of user selected video we can change the video by changing this Id and we can get this id from youtube video URl.

    autoplay=> 1 means video will be played automatically.

    rel=> This parameter indicates whether the player should show related videos when playback of the initial video ends.
    Supported values are 0 and 1. The default value is 1.

    loop=> In the case of a single video player, a setting of 1 causes the player to play the initial video again and again.
    In the case of a playlist player , the player plays the entire playlist and then starts again at the first video. Default value is 0.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: