Comments (4)
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 [email protected]
on 17 Apr 2013 at 8:20
from jquery-tubular.
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 [email protected]
on 1 Jul 2013 at 7:54
from jquery-tubular.
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 [email protected]
on 23 Aug 2013 at 4:51
from jquery-tubular.
Excellent, works fine! Thanks Nicola!
Original comment by [email protected]
on 21 Oct 2014 at 1:08
from jquery-tubular.
Related Issues (20)
- set player volume at start
- Video is not playing in Android device HOT 4
- Audio doesn't work in Chrome
- How do I hide the video controls
- Start position in Google Chrome is always zero.
- Top white border in both IE and Chrome HOT 1
- Start position is always zero.
- Enhancement: Disable Clicking on background
- loop from designated start and end seconds HOT 1
- Does not work
- Turning off advert show
- Can tubular play local videos ?
- file://www.youtube.com/iframe_api Failed to load resource: net::ERR_FILE_NOT_FOUND
- Can I Force HD720 playback
- Tubular does not respect Modernizr HOT 1
- tubular not appearing to work within a function
- Redirected site problem
- Video not working in chrome browser
- jquery-tubular phpbb style integration
- IE11 autoplay is not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-tubular.