embedly / embedly-jquery

JQuery Library for Embedly.
http://embedly.github.com/embedly-jquery/
BSD 3-Clause "New" or "Revised" License
303 stars 73 forks source link

autoplay for vimeo modal #51

Open edycastro1 opened 8 years ago

edycastro1 commented 8 years ago

hello everyone,

I just wanna know if it's possible to apply an autoplay for vimeo modal. Can you help me?

Tks, Edy

screeley commented 8 years ago

Can you provider a jsfiddle of the code you are using?

edycastro1 commented 8 years ago

Hello,

This is the page: http://gilproducoes.com.br/2016/social/trabalhos-aniversarios-15-anos.html

When you click on the thumb, open the modal with vimeo video without autoplay. Can you help to solve that?

screeley commented 8 years ago

Try:

$.embedly.defaults = {
  key:':your-key',
  query: {
    maxwidth:768,
    autoplay: 1
  },
  display: $.noop
};
dt1973 commented 8 years ago

@edycastro1

Creating a reduced test case like JSFiddle is the best way to debug problems and report issues. Read http://css-tricks.com/reduced-test-cases/ on why they’re so great.

Creating a reduced test case is the best way to get your issue addressed. They help you point out the problem. They help us debug the problem. They help others understand the problem.

edycastro1 commented 8 years ago

@screeley Thanks a lot. This tip works, look: http://gilproducoes.com.br/2016/social/trabalhos-aniversarios-15-anos.html

But, now I have another problem. When I close the modal, video keeps playing. Any idea about what happen?

screeley commented 8 years ago

Sadly no, a reduced test case would help.