AliVCSDK 6.17.0
阿里云音视频SDK,为视频开发者提供一站式接入服务
 
Loading...
Searching...
No Matches
com.alivc.live.pusher.AlivcPreviewDisplayMode Enum Reference

Live push preview display mode. More...

Public Member Functions

 AlivcPreviewDisplayMode (int mode)
 
int getPreviewDisplayMode ()
 

Public Attributes

 ALIVC_LIVE_PUSHER_PREVIEW_SCALE_FILL =(0)
 
 ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FIT =(1)
 
 ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FILL =(2)
 

Detailed Description

Live push preview display mode.

Author
aliyun live push sdk
Call Example
See also
com.alivc.live.pusher.AlivcLivePushConfig::setPreviewDisplayMode(AlivcPreviewDisplayMode)

Definition at line 12 of file AlivcPreviewDisplayMode.java.

Constructor & Destructor Documentation

◆ AlivcPreviewDisplayMode()

com.alivc.live.pusher.AlivcPreviewDisplayMode.AlivcPreviewDisplayMode ( int  mode)

Definition at line 42 of file AlivcPreviewDisplayMode.java.

Member Function Documentation

◆ getPreviewDisplayMode()

int com.alivc.live.pusher.AlivcPreviewDisplayMode.getPreviewDisplayMode ( )

Get value of preview display mode

Returns
preview display mode value

Definition at line 51 of file AlivcPreviewDisplayMode.java.

Member Data Documentation

◆ ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FILL

com.alivc.live.pusher.AlivcPreviewDisplayMode.ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FILL =(2)

aspect fill

Note
Cropping. If the aspect ratio of the externally inputted video does not match the aspect ratio set by the streaming settings,
cropping the width or height of the inputted video will result in loss of image content
Cut the video to fit the window scale. If the video scale does not match the window scale, the video will be cropped

Definition at line 38 of file AlivcPreviewDisplayMode.java.

◆ ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FIT

com.alivc.live.pusher.AlivcPreviewDisplayMode.ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FIT =(1)

aspect fit

Note
Fill in black edges. If the aspect ratio of the external input video is inconsistent with the aspect ratio set by the streaming,
fill the input video with black edges up, down, or left and right
Maintain the video scale, with black edges when the scale is inconsistent with the window scale

Definition at line 29 of file AlivcPreviewDisplayMode.java.

◆ ALIVC_LIVE_PUSHER_PREVIEW_SCALE_FILL

com.alivc.live.pusher.AlivcPreviewDisplayMode.ALIVC_LIVE_PUSHER_PREVIEW_SCALE_FILL =(0)

scale fill

Note
Stretch tiling. If the aspect ratio of the externally input video is inconsistent with the aspect ratio set by the streaming settings,
the input video will be stretched to the ratio set by the streaming settings, and the image will deform
The preview will deform when the video scale and window scale are inconsistent when the window is paved

Definition at line 20 of file AlivcPreviewDisplayMode.java.