This is a message.

player.getClip().fullDuration does not work for MP3 files Created Mar 10, 2010

This thread is solved

Views: 3080     Replies: 10     Last reply Aug 8, 2011  
You must login first before you can use this feature

jgentile

Posts: 3

Registered:
Mar 10, 2010

player.getClip().fullDuration does not work for MP3 files

Posted: Mar 10, 2010

I'm using flowplayer 3.1.5 and I am unable to get the fullDuration for MP3 files. Strangely enough, the length of the MP3 is shown in the GUI at the end of the progress bar. So, I know the value is in there somewhere... I have seen similar bugs having to do with playlist.

My goal is to determine the play percentage that the viewer watch by sampling the following:

player.getTime()/(player.getClip().fullDuration)

player.getTime() => returns a value every time.
player.getClip().fullDuration => returns "undefined"

FYI: I also went the metadata route, but after sampling a dozen mp3's, none had the duration of the song as metadata.

Thanks for the help.

SyBabyUk

Posts: 1

Registered:
Mar 23, 2010

» player.getClip().fullDuration does not work for MP3 files

Posted: Mar 23, 2010

Reply to: player.getClip().fullDuration does not work for MP3 files, from jgentile
I'm just wondering if we are any further forward on this issue as I seem to experiencing it to. Just like to say we find flowplayer to be a great product and will be moving to the commercial one soon
Thanks
Simon

keul
-- -- luca

Posts: 5

Registered:
Nov 6, 2009

Bug still there

Posted: Nov 5, 2010

Reply to: player.getClip().fullDuration does not work for MP3 files, from jgentile
Today I get into this bug... seems that is still there.

Like jgentile, I'm not able to get the duration from an MP3 file (even if the lenght is somewhere available).

After the first cicle, if repeating the audio, all works normally.

schuyler1d

Posts: 1

Registered:
Dec 20, 2010

» Bug still there

Posted: Dec 20, 2010

Reply to: Bug still there, from keul
I find the metadata comes in after a pause and clicking start, too.

Trying to figure out a way to jumpstart it on play...

luislobo

Posts: 2

Registered:
Feb 18, 2011

» » Bug still there

Posted: Feb 18, 2011

Reply to: » Bug still there, from schuyler1d
I have the same trouble. Anyone fixed it? Same issues here.
First time, it doesn't show length and cant seek. Refresh and now shows time and can seek.

keul
-- -- luca

Posts: 5

Registered:
Nov 6, 2009

» » » Bug still there

Posted: Feb 18, 2011

Reply to: » » Bug still there, from luislobo
I think that no-one can fix this until Flowplayer fix this problem.

What I fear if that there isn't a flowplayer issue tracker (or not), so maybe this problem report get lost in the forum (that is not the best place where handle issues).

Anssi
Flowplayer Flash & video streaming developer

Posts: 1197

Registered:
Jul 24, 2007

» » » » Bug still there

Posted: Feb 18, 2011

Reply to: » » » Bug still there, from keul
Do you have an ID3 tag in place in the mp3 file? It should contain the duration metadata.

Actually we have an issue tracker here: http://code.google.com/p/flowplayer-core/issues/list

jgentile

Posts: 3

Registered:
Mar 10, 2010

Filed issue #187

Posted: Feb 18, 2011

Reply to: » » » » Bug still there, from Anssi
I filed the following issue: http://code.google.com/p/flowplayer-core/issues/detail?id=187

Note that the same thing happens for MP4 files using the <video> tag. Although the video tag has the correct value in the "duration" property.

I opened up a few mp3 files in a editor and did not find an obvious ID3 tag which would correspond to the length of the file. However, the flowplayer toolbar *has* the length of the file displayed. So I can only assume there must be a way to access that information.

keul
-- -- luca

Posts: 5

Registered:
Nov 6, 2009

» » » » » Bug still there

Posted: Feb 21, 2011

Reply to: » » » » Bug still there, from Anssi
Sorry!
I was not aware of this. Maybe you must highlight it someway? Seeing a forum called "bug report" make user think that this is the only place were we can report bugs!

My personal idea: close the forum and keep only the tracker! :-)