Skip navigation
Currently Being Moderated

osmf media element shift

Jun 13, 2012 7:24 PM

Tags: #video #fullscreen #osmf #captions

I'm a developer of osmf plugins. My customer showed me a problem that could be caused by my plugin. What happens is that when we use the player to play a video whose width and heigh ratio does not fix in the monitor screen, the player shows a black background and then the video on top of the background. When the video is playing in full screen and a bitrate switch happens, the video shifts to the left side of the screen from the center of the screen.

 

I have verified that the "layoutMetadata" is set to the default value (alignments are "middle" and "center") and is never changed. There is a mediaContainer in which the mediaElement is put in and a UIComponent in which the mediaContainer is put in. I think the shift could be caused by the mediaContainer shift or the UIComponent shift.

 

My questions are:

1. Can I access the mediaContainer and the UIComponent in my plugin?

2. What are the possible reasons of the window shift?

 
Replies
  • Currently Being Moderated
    Jun 14, 2012 1:07 AM   in reply to adobeJia

    Hi,

     

    1. I don't think you can access them without making them available from the video player.

    2. There are some layout API bugs that could generate that, especially if some media size change events do not reach the layout classes - and they could be stopped by your plugin. Please search the bugbase for Layout API bugs that are related to that and try to use the player without the plugin to see if this replicates.

     

    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