Solved

JWplayer

Posted on 2010-11-28
1
829 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Allow space in this pattern 2 48
html form to write data to csv 24 97
Regex in JavaScript to validate US phone number with hyphens 3 28
Recordset containing single quotes 8 23
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now