Giter Club home page Giter Club logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
[deleted comment]

from jquery-tubular.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
var videoRatio = 16/9.27;

works for me

Original comment by [email protected] on 8 Mar 2011 at 8:20

from jquery-tubular.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
bump on comment #4 worked for me. 

Original comment by [email protected] on 19 Jan 2012 at 7:43

from jquery-tubular.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.