Ask a Question related to Macromedia Flash Flashcom, Design and Development.
-
phiphou #1
onMetaData got 64 args instead of one
Hi,
I tried this morning the new release of fms, fms3, but encounter an issue on
the metadata.
I tried this :
dummy=new Object();
stream.client=dummy;
dummy.onMetaData=getMeta;
private function getMeta (mdata:Object):void
{
trace (mdata.duration);
}
Burt I got an error : ArgumentError: Error #1063: Non-correspondance du nombre
d'arguments sur tt/getMeta(). 1 pr?vu(s), 63 d?tect?(s).
As you see, I got 63 args instead of 1.
Can you help me ?
Regards
phiphou Guest
-
onMetaData info.duration==null in fms 3, works fine infms2, anyone else?
Hi all, Anyone else seeing this? With the exact same code, onMetaData( info ) gives duration == null in fms 3, works fine in fms2. FMS 3: ... -
onMetaData problems
Hi. Am having problems with onMetaData. Am running FMS 2.01 developer edition for evaluation on my local winxp machine. I'm using onMetaData to... -
no onMetaData event
We have run our video for quite some time, using the following code: // Create a NetStream object and define an onStatus() function: var... -
catch args from sendAllSprites
how can I catch the arguments that I sent away with the sendAllSprites function? greetz ras -
command line args?
Bill Parker wrote: You get $argc (count of arguments) and $argv (array of arguments), similar to C further details in the manual:... -
abeall #2
Re: onMetaData got 64 args instead of one
Good heavens!
The first thing I'd do is see what those args are:
private function getMeta (...args):void{
for(var a in args)
trace(a+': '+args[a])
}
abeall Guest
-
phiphou #3
Re: onMetaData got 64 args instead of one
Oups ! It's an idea ! I didn't know this '...args' syntax (the 3 dots). But it
doesn't solve the problem. I mean, now, I can see the 63 args are all numbers,
all zeros. If I try to play any flv encoded by flvencoder, everything is ok, I
receive a MetaDataObject, and can access its info property. The same with a
live recorded stream using Flash Media Encoder 2 and streaming it directly into
FMS3. But if I use Flash Media Encoder 2 to record an flv on the disk and then
try to play it within FMS3, I receive these weird 63 args. I think (not yet
tried) that recording the video directly with FMS using stream.publish would
not cause this issue, but does it mean that I have to forget the idea of using
Flash Media Encoder 2 to record ? And what do these 63 args are ? A bug ?
Please tell me more. Regards, Phiphou
phiphou Guest
-
abeall #4
Re: onMetaData got 64 args instead of one
I dunno, it sure seems like a bug. I can't think of any other reason an internal method would give itself the wrong number of arguments.
I would try contacting support about this issue.
abeall Guest
-
namitagrawal #5
Re: onMetaData got 64 args instead of one
Can you please provide the log of Flash Media Encoder?
namitagrawal Guest



Reply With Quote

