Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set player to autoplay on start? #27

Closed
nobodygetshurt opened this issue Dec 17, 2012 · 1 comment
Closed

How to set player to autoplay on start? #27

nobodygetshurt opened this issue Dec 17, 2012 · 1 comment

Comments

@nobodygetshurt
Copy link

I'm using the Playlist version of the player, and I can't seem to figure out how to set it to autoplay as soon as it loads. Help!

@travist
Copy link
Collaborator

travist commented Dec 17, 2012

Try this....

<script type="text/javascript">
      $(function() {
        $("#osmplayer").osmplayer({
          autoplay: true,
          width: '100%',
          height: '650px',
          playlist: 'http://gdata.youtube.com/feeds/api/videos'
        });
      });
    </script>

@travist travist closed this as completed Dec 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants