Skip navigation
zattoo1
Currently Being Moderated

Can aspect ratio changes be detected with HTTP Dynamic Streaming?

Mar 2, 2012 12:38 PM

Tags: #osmf #aspect_ratio #http_dynamic_streaming

I have a video player built using MediaPlayer and MediaPlayerSprite that plays HTTP Dynamic streams. Sometimes the aspect ratio of the stream changes and AFAICT, the aspect ratio change is not recognized by the OSMF framework. The video dimensions stay the same as the first frame of *rendered* video. The MediaPlayerSprite instance's scaleMode property is set to letterbox, so that's not the issue. I can confirm that the MediaPlayer instance knows nothing about a changed aspect ratio by polling mediaWidth and mediaHeight and MediaPlayer doesn't dispatch any DisplayObjectEvent.MEDIA_SIZE_CHANGE events.

 

As an aside, the behavior has changed between 1.0 and 1.6. In 1.0, the dimensions in the manifest were respected, but with 1.6, the dimensions of the inital frame of rendered video stick. My player actually seeks upon receiving a MediaPlayerStateChangeEvent with state MediaPlayerState.PLAYING, so there can be a mismatch between the dimensions of the inital frame of rendered video and the manifest. This is not the source of the problem; it occurs whether or not the inital rendered frame dimensions match the manifest.

 

Any advice as to whether this is a bug/missing feature or whether there's a way to detect this?

 
Replies
  • Currently Being Moderated
    Mar 5, 2012 1:54 AM   in reply to zattoo1

    Hi,

     

    Mediaplayersprite is used for simple applications.

     

    Please use MediaContainer for more complex applications (See helloworld8, for example).

     

    You can inspect the SMP code for DisplayObjectEvent.MEDIA_SIZE_CHANGE events - they are indeed dispatched.

     

    S.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 6, 2012 1:57 AM   in reply to zattoo1

    The size changes appear for MBR assets (please check the SMP debug.html page).

     

    If you encountered it on adifferent use case, please raise  an issue at http://bugs.adobe.com/jira/browse/FM with a code snippet allowing to reproduce it.

     

    Thank you,

     

    S.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points