Package 

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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 - vlcVout
        width - Frame width
        height - Frame height
        visibleWidth - Visible frame width
        visibleHeight - Visible frame height
        sarNum - Surface aspect ratio numerator
        sarDen - Surface aspect ratio denominator