Enum AlivcPreviewDisplayMode

    • Enum Constant Detail

      • ALIVC_LIVE_PUSHER_PREVIEW_SCALE_FILL

        public static final AlivcPreviewDisplayMode ALIVC_LIVE_PUSHER_PREVIEW_SCALE_FILL
        铺满窗口,视频比例和窗口比例不一致时预览会有变形
      • ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FIT

        public static final AlivcPreviewDisplayMode ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FIT
        保持视频比例,比例与窗口比例不一致时有黑边
      • ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FILL

        public static final AlivcPreviewDisplayMode ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FILL
        剪切视频以适配窗口比例,视频比例和窗口比例不一致时会裁剪视频
    • Method Detail

      • values

        public static AlivcPreviewDisplayMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AlivcPreviewDisplayMode c : AlivcPreviewDisplayMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AlivcPreviewDisplayMode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getPreviewDisplayMode

        public int getPreviewDisplayMode()