onMetaData got 64 args instead of one

Ask a Question related to Macromedia Flash Flashcom, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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: ...
    2. 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...
    3. 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...
    4. catch args from sendAllSprites
      how can I catch the arguments that I sent away with the sendAllSprites function? greetz ras
    5. 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:...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default Re: onMetaData got 64 args instead of one

    Can you please provide the log of Flash Media Encoder?
    namitagrawal Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139