Skip to main content
Inspiring
March 17, 2009
Answered

Reading video size without onMetaData on live stream.

  • March 17, 2009
  • 1 reply
  • 716 views
Hi,

I am a Flash developer and practically know nothing about FMS.

We encountered a situation when our encoder (not Adobe's one) doesn't inject metadata into a live stream. So, there is no onMetaData on the stream. When stream is in 16x9, our players don't resize the stream according to it's ratio and always display it in 4x3.

Is there a way to read width and height of the video even though there is no metsdata? Perhaps a method that can be invoked via responder similar to getStreamLength.

Video is streamed via Akamai.

Interestingly enough when we view the same stream in Akamai player - video is resized to the proper dimensions/ratio AFTER a few seconds. Obviously Akamai has a mechanism to detect video dimensions.

Any help will be greatly appreciated.

Thank you.
    This topic has been closed for replies.
    Correct answer Andrei1-bKoviI
    My ignorance is the problem.

    AS3 Video class has videoHeight and videoWidth properties that can be used in case onMataData is not called.

    1 reply

    Andrei1-bKoviIAuthorCorrect answer
    Inspiring
    March 17, 2009
    My ignorance is the problem.

    AS3 Video class has videoHeight and videoWidth properties that can be used in case onMataData is not called.