johndyer/mediaelement — Issue #296: how to resize the control bar when video window is resized?
Author: xymovie
Created: 2011-11-09 20:58:28+00:00
State: open

I placed MediaElement player in a ExtJs panel and the panel is resizable.

When the video window is resized, the control bar still in the original size and the big play button is not centerlized.

Here is the code in resize event handler:

resize : function(panel, width, height) {
this.video.setSize(width, height);

if (this.video.dom.setVideoSize)
this.video.dom.setVideoSize(width, height);
}
});

Do I need to call any API to resize the control bar and also centerlize the big play button?

Thanks.