Solved

JWplayer

Posted on 2010-11-28
1
830 Views
Last Modified: 2012-06-21
Hi i have a question. Is any one know how i can convert 6.29 where 6 is seconds and 29 is microsecond to real number.
I use
          jwplayer(\"ads_players\").onTime(function(evt) {
            timeleft = evt.position;

        $(\"#timeleft\").text(timeleft);

      });
but it show bout but i want to use duration of clip and cound back like 1 minutes so it show text "video will end on 30 second or 25 second"
0
Comment
Question by:umaxim
1 Comment
 
LVL 20

Accepted Solution

by:
Proculopsis earned 500 total points
ID: 34225039

If you want to ignore milliseconds then use Math.floor(timeleft).
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question