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

Autoplay issues on Chrome #3294

Closed
karlazz opened this issue May 3, 2016 · 2 comments
Closed

Autoplay issues on Chrome #3294

karlazz opened this issue May 3, 2016 · 2 comments

Comments

@karlazz
Copy link

karlazz commented May 3, 2016

Description

I have this code in an html file. It works in Firefox and in Safari but will not autoplay on Chrome.

<video id="my-video" class="video-js" width="640" height="264" controls data-setup='{}' autoplay>
    <source src="mysource.mp4" type='video/mp4'>
    <!-- source src="MY_VIDEO.webm" type='video/webm' -->
    <p class="vjs-no-js">
      To view this video please enable JavaScript, and consider upgrading to a web browser that
      <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
    </p>
  </video>

Then I took out the data-setup='{}' and the autoplay works in all browsers, but the size attributes no longer work and the video window is super small.

Additional Information

Please include any additional information necessary here. Including the following:

versions

videojs

I am using the cdn hosted version 5.9.2

browsers

Chrome 50, Firefox 46

OSes

Mac OSX Mavericks

plugins

none

@gkatsev
Copy link
Member

gkatsev commented May 3, 2016

Seems like a duplicate of #3071

@gkatsev
Copy link
Member

gkatsev commented May 24, 2016

Closing as a duplicate.

@gkatsev gkatsev closed this as completed May 24, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants