Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Flash Media Server

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-17-2003, 11:12 AM   #1
koogakid
Registered User
 
Join Date: Sep 2001
Posts: 4
Default how to get the length of a streamed MP3?

Hi there,

Could someone enlighten me on how to use the server-side Stream.length(name) to access the length of a streaming MP3 (or .flv file)

At the moment I've managed to get an MP3 stream playing, which I can fast forward or rewind, but I'd like to be able to get the length of the track.

In the Flash Comm help files it states :


function onProcessCmd(cmd){
var streamLen = Stream.length("mp3:beethoven");
trace("Length: " + streamLen + "\n");
}

But it's not clear whether this needs to be placed in the main.asc file on the server (as Stream is a server-side object) or within the flash movie.

I've tried both so far with no result, other than

"length : "

Any help would be greatly appreciated,

koogakid
koogakid is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:47 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.