A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: onMetaData reliability

  1. #1
    Member
    Join Date
    Nov 2002
    Location
    Cologne/Germany
    Posts
    94

    onMetaData reliability

    Hi there,

    since I had no response on this yesterday in the actionscript forum, I´ll put it in here again:

    I´ve got an flv player that resizes its videoHolder MC according to the width and height metadata embedded in my flv files (metadata coming from flvmdi). Now the problem is that the NetStream.onMetaData event isn´t triggered every time a new video is selected, although it works fine most times... Besides the video size information also the clips´ duration is concerned, so progress status is problematic too in these cases.

    Is this phenomenon known to anybody - any ideas what could be the reason for this? Are there any conditions/limitations for onMetaData to work correctly? It seems to me as if it could have to do with some performance or bandwidth issue as it happens more often when tested on the web than locally. It definitely doesn´t depend on certain video clips as it only appears in irregular intervals. The videos themselves play reliably as they should - except the fact that sometimes their metadata is missing... Or as a workaround, can I request the metadata again later somehow?

    Thanks for any hints!
    Toby

  2. #2
    Long time no see.
    Join Date
    Sep 2002
    Location
    UK
    Posts
    52
    this is not something I had heard of before. Are you sure the metadata info is valid?

    There is another way of getting the width and height. Say your videoobject on stage (to which you attach the flv) is called myvid. You can now monitor the properties myvid.height and myvid.width (note: no underscore!) through a setInterval and once myvid.width and myvid.height != 0 set it liek this:

    myvid._width = myvid.width;
    myvid._height = myvid.height;

    However this won't solve the duration issue... Best check out your vids and code again as onMetadata seems to work reliably for me.

    stoem

  3. #3
    Member
    Join Date
    Nov 2002
    Location
    Cologne/Germany
    Posts
    94
    Perhaps this could be a partly workaround, yeah - up to now the metadata always worked with these same clips, so I assume it is valid indeed... And even with my new player the failure is only occasionally, that´s what surprises me most.
    Thanks for now,
    Toby

  4. #4
    Member
    Join Date
    Nov 2002
    Location
    Cologne/Germany
    Posts
    94
    I also posted this in the ActionScript forum, so you can have a look at this thread where I gave some more details...
    Thanks!
    Toby

  5. #5
    Member
    Join Date
    Nov 2002
    Location
    Cologne/Germany
    Posts
    94
    Hi there again,

    today I noticed my problem obviously has something to do with the browser the player is run in - in my Firefox everything went fine...
    Any ideas in this direction? Why could the handing over of metadata from the external video be different in different browsers even when the respective videos are correctly loaded in both of them?

    Confused,
    Toby

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center