AliVCSDK  4.5.1
阿里云音视频SDK,为视频开发者提供一站式接入服务
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
mAlivcLivePushConfig.setPreviewDisplayMode(AlivcPreviewDisplayMode.ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FILL);
See also
com.alivc.live.pusher.AlivcLivePushConfig::setPreviewDisplayMode(AlivcPreviewDisplayMode)

Definition at line 12 of file AlivcPreviewDisplayMode.java.

Member Function Documentation

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

Get value of preview display mode

Returns
preview display mode value

Definition at line 45 of file AlivcPreviewDisplayMode.java.

Member Data Documentation

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

aspect fill

Note
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 32 of file AlivcPreviewDisplayMode.java.

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

aspect fit

Note
Maintain the video scale, with black edges when the scale is inconsistent with the window scale

Definition at line 25 of file AlivcPreviewDisplayMode.java.

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

scale fill

Note
The preview will deform when the video scale and window scale are inconsistent when the window is paved

Definition at line 18 of file AlivcPreviewDisplayMode.java.