Frontend_87
Frontend_87

Reputation: 75

Autoplay Youtube video - iframe

As you could make a Youtube video it will automatically run ?

I used autoplay = 1 and does not work

The video is for Android app

The code from the video is:

    <div class="demo-wrapper" data-role="page" id="tutoPage" style="margin-top: 0px;">
    <div class="header" data-role="header">
        <span class="title">Tutorial</span>
    </div>
    <div class="content" data-role="content">
        <iframe id="bgvid"  src="https://www.youtube.com/embed/*****?rel=0&autoplay=1" ></iframe>
        <div id="tutorial" >
            <a id='tuto' href='#initPage' >continuar</a>
        </div> 
    </div>
</div>  

Upvotes: 0

Views: 1951

Answers (2)

Ze Luis
Ze Luis

Reputation: 236

Replace the ; before autoplay=1 with &.

EDIT: autoplay doesn't work on webviews. You have to use youtube api to achieve that.

Upvotes: 1

Hemanth
Hemanth

Reputation: 2737

Use the url like this:

https://www.youtube.com/embed/*******?rel=0&autoplay=1

Upvotes: 0

Related Questions