Open GoogleCodeExporter opened 9 years ago
I would go something like that:
if (window.matchMedia("(min-width: 769px)").matches) {
$("#wrapper").tubular({
videoId: 'idOfYourVideo',
mute: false,
repeat: true
}); // where idOfYourVideo is the YouTube ID.
}
It's pretty simple: run tubular.js only when viewport is bigger than 769px
Hope it helps.
Original comment by nicola.z...@gmail.com
on 17 Apr 2013 at 8:20
Hi Nicola,
I could not get this to work. Im not sure where you meant to place this code.
Can you or someone give me more direction here.
So i run this as a script on the particular page?
thanks
Original comment by emarketa...@gmail.com
on 1 Jul 2013 at 7:54
This sounds similar to the issue I just posted about users needing to interact
with a video before the api will work. Might try the patch in
https://code.google.com/p/jquery-tubular/issues/detail?id=44 and see if it
helps.
Original comment by b...@stupil.com
on 23 Aug 2013 at 4:51
Excellent, works fine! Thanks Nicola!
Original comment by e...@guigo.net
on 21 Oct 2014 at 1:08
Original issue reported on code.google.com by
emarketa...@gmail.com
on 6 Jan 2013 at 6:45