Comments (8)
[deleted comment]
from jquery-tubular.
var videoRatio = 16/9.27;
works for me
Original comment by [email protected]
on 8 Mar 2011 at 8:20
from jquery-tubular.
Update: 2011-05-26 -- I haven't worked on this project for some months. Will
try to work this out soon. Thanks for the suggestion, krishmaratalata.
Original comment by [email protected]
on 27 May 2011 at 4:02
from jquery-tubular.
Yeah, I've found that too!
I got it to flush against the sides. Go to the tubular jquery folder. Find this
section near the bottom.
function resizePlayer() {
var newWidth = jQuery(window).width() + 40; // original page width
var newHeight = jQuery(window).height(); // original page height
..... etc
Change
var newWidth = jQuery(window).width(); // original page width
To
var newWidth = jQuery(window).width() + 40; // original page width
And add css to your style file:
#myytplayer {
margin-left:-20px;
}
Original comment by [email protected]
on 3 Nov 2011 at 8:13
from jquery-tubular.
bump on comment #4 worked for me.
Original comment by [email protected]
on 19 Jan 2012 at 7:43
from jquery-tubular.
The +40 addition from comment 4 helped make it better. But the #myytplayer
addition is supposed to go into the screen.css file, or?
Original comment by [email protected]
on 5 Feb 2012 at 11:46
from jquery-tubular.
I would go so far as to add +50 to both height and width, that hides the video
controls and bars on the sides. Then add margin-left -25px to your stylesheet.
(No real need to add the top margin).
To comment 6: add it to your styleesheet
Original comment by [email protected]
on 22 Apr 2012 at 3:34
from jquery-tubular.
The new version allows you to specify your own aspect ratio. It defaults to
16/9, but many videos are not exactly 16/9 so you can tweak to get the
dimensions exactly right. When calling .tubular() pass ratio: 16/9 or 16.5/9
or whatever you need to get the proper ratio. .tubular() accepts options as a
single object. for example:
$('#wrapper').tubular({videoID: '12345', ratio: 4/3});
Hope this helps!
Original comment by [email protected]
on 1 Oct 2012 at 10:19
- Changed state: Fixed
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.