-
public interface IVLCVout.OnNewVideoLayoutListener
-
-
Method Summary
Modifier and Type Method Description abstract void
onNewVideoLayout(IVLCVout vlcVout, int width, int height, int visibleWidth, int visibleHeight, int sarNum, int sarDen)
This listener is called when the "android-display" "vout display" module request a newvideo layout. -
-
Method Detail
-
onNewVideoLayout
@MainThread() abstract void onNewVideoLayout(IVLCVout vlcVout, int width, int height, int visibleWidth, int visibleHeight, int sarNum, int sarDen)
This listener is called when the "android-display" "vout display" module request a newvideo layout. The implementation should take care of changing the surfaceLayoutsParams accordingly. If width and height are 0, LayoutParams should be reset to theinitial state (MATCH_PARENT).By default, "android-display" is used when doing HW decoding and if Video and Subtitlessurfaces are correctly attached. You could force "--vout=android-display" from LibVLCarguments if you want to use this module without subtitles. Otherwise, the "opengles2"module will be used (for SW and HW decoding) and this callback will always send a size of0.
- Parameters:
vlcVout
- vlcVoutwidth
- Frame widthheight
- Frame heightvisibleWidth
- Visible frame widthvisibleHeight
- Visible frame heightsarNum
- Surface aspect ratio numeratorsarDen
- Surface aspect ratio denominator
-
-
-
-