4 Replies - 452 Views - Last Post: 29 January 2013 - 11:30 AM Rate Topic: -----

#1 dsadsd  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 28-January 13

How to get the Duration of music file

Posted 28 January 2013 - 05:16 AM

I am not getting the duration of my media how can i get it.
I already used player.currentMedia.duration
but it is not working so suggest any other method.
Is This A Good Question/Topic? 0
  • +

Replies To: How to get the Duration of music file

#2 lar3ry  Icon User is offline

  • Coding Geezer
  • member icon

Reputation: 310
  • View blog
  • Posts: 1,290
  • Joined: 12-September 12

Re: How to get the Duration of music file

Posted 28 January 2013 - 06:19 AM

View Postdsadsd, on 28 January 2013 - 06:16 AM, said:

I am not getting the duration of my media how can i get it.
I already used player.currentMedia.duration
but it is not working so suggest any other method.

If you'd like some help, we'd like to see some code.

You used player.currentMedia.duration, but there are a lot of ways you may have tried to use it. We'd like to see HOW you used it.
Was This Post Helpful? 0
  • +
  • -

#3 torind_2000  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 57
  • View blog
  • Posts: 292
  • Joined: 22-August 11

Re: How to get the Duration of music file

Posted 29 January 2013 - 06:33 AM

http://www.xtremevbt...ead.php?t=15570
Was This Post Helpful? 0
  • +
  • -

#4 calvinthedestroyer  Icon User is offline

  • D.I.C Lover

Reputation: 167
  • View blog
  • Posts: 1,913
  • Joined: 13-October 07

Re: How to get the Duration of music file

Posted 29 January 2013 - 06:59 AM

Isn't it listed in the header of the file?

This post has been edited by calvinthedestroyer: 29 January 2013 - 06:59 AM

Was This Post Helpful? 0
  • +
  • -

#5 lar3ry  Icon User is offline

  • Coding Geezer
  • member icon

Reputation: 310
  • View blog
  • Posts: 1,290
  • Joined: 12-September 12

Re: How to get the Duration of music file

Posted 29 January 2013 - 11:30 AM

View Postcalvinthedestroyer, on 29 January 2013 - 07:59 AM, said:

Isn't it listed in the header of the file?

Probably, but the method he was trying to use (player.CurrentMedia.Duration) will do the trick, but only if he has previously opened the file and made it the CurrentMedia.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1