![]() |
musicpos and musiclen
Hey, just trying to calculate the position of a song in seconds.
I'm assuming musiclen and musicpos are in bytes? not bits? So it's either /1024 or /1000 not sure. Anyway, iv'e tried a few things. This seemed the most logical but failed. PHP Code:
|
Uh, they're probably in seconds if they work at all. Did you try just looking at their value as you play music?
|
This is what I use for my jukebox on Era iPhone.
PHP Code:
|
Cbk, I did look at them while playing music, but it just gives back a crazy integer.
It isn't even the total bytes of the song. Thanks xXZiroXx for your example, but what exactly is musicpos and musiclen returning? |
Quote:
|
| All times are GMT +2. The time now is 02:05 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.