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

「Main API」Live play config More...

Public Member Functions

String toString ()
 

Public Attributes

AlivcLivePlayRenderMode renderMode = AlivcLivePlayRenderMode.AlivcLivePlayRenderModeAuto
 
AlivcLivePlayRotationMode rotationMode = AlivcLivePlayRotationMode.AlivcLivePlayRotationMode_0
 
AlivcLivePlayVideoStreamType videoStreamType = AlivcLivePlayVideoStreamType.STREAM_CAMERA
 
AlivcLivePlayAudioStreamType audioStreamType = AlivcLivePlayAudioStreamType.STREAM_MIC
 
boolean autoStoppedPlayWhenUserLeaved = true
 
boolean isMirror = false
 
boolean isFullScreen = false
 

Detailed Description

「Main API」Live play config

Author
baorunchen
Date
2022/8/10
Attention
This API is only supported in the interactive mode currently
Call Example
mAlivcLivePlayer.setupWithConfig(mAlivcLivePlayConfig);
Attention
Please use 'AlivcRTC' as the log tag for autonomous troubleshooting when using interactive mode.
See also
com.alivc.live.player.AlivcLivePlayer::setupWithConfig(AlivcLivePlayConfig)

Definition at line 21 of file AlivcLivePlayConfig.java.

Member Function Documentation

◆ toString()

String com.alivc.live.player.AlivcLivePlayConfig.toString ( )

Definition at line 75 of file AlivcLivePlayConfig.java.

Member Data Documentation

◆ audioStreamType

AlivcLivePlayAudioStreamType com.alivc.live.player.AlivcLivePlayConfig.audioStreamType = AlivcLivePlayAudioStreamType.STREAM_MIC

Live play audio stream type

Note
default stream mic, com.alivc.live.player.annotations.AlivcLivePlayAudioStreamType.STREAM_MIC

Definition at line 48 of file AlivcLivePlayConfig.java.

◆ autoStoppedPlayWhenUserLeaved

boolean com.alivc.live.player.AlivcLivePlayConfig.autoStoppedPlayWhenUserLeaved = true

Will automatically stop playing after remote users exiting the room

Note
Default true, automatically stop playing
If the interface is set to false, then it needs to be manually called the interface com.alivc.live.player.AlivcLivePlayer#stopPlay() externally to stop streaming
This scenario can be used when a remote user leaves abnormally, such as when the APP crashes, and the local client receives a callback from the remote user leaving the room, it will not actively cancel the pull stream and change the microphone/PK layout. The opposite client layout is still in a placeholder state, and waits for the opposite end to reconnect

Definition at line 57 of file AlivcLivePlayConfig.java.

◆ isFullScreen

boolean com.alivc.live.player.AlivcLivePlayConfig.isFullScreen = false

is play full screen

Note
In the interactive mode, the SurfaceView is created internally, and add it to the frameLayout, it will change the zOrder of the SurfaceView internally.
If the player FrameLayout is full screen, it should be put at the bottom internally.

Definition at line 72 of file AlivcLivePlayConfig.java.

◆ isMirror

boolean com.alivc.live.player.AlivcLivePlayConfig.isMirror = false

play mirror

Note
default false, not mirror

Definition at line 64 of file AlivcLivePlayConfig.java.

◆ renderMode

AlivcLivePlayRenderMode com.alivc.live.player.AlivcLivePlayConfig.renderMode = AlivcLivePlayRenderMode.AlivcLivePlayRenderModeAuto

play render mode

Note
Default automatic mode, com.alivc.live.player.annotations.AlivcLivePlayRenderMode.AlivcLivePlayRenderModeAuto

Definition at line 27 of file AlivcLivePlayConfig.java.

◆ rotationMode

AlivcLivePlayRotationMode com.alivc.live.player.AlivcLivePlayConfig.rotationMode = AlivcLivePlayRotationMode.AlivcLivePlayRotationMode_0

play rotation mode

Note
Default no rotation, com.alivc.live.player.annotations.AlivcLivePlayRotationMode.AlivcLivePlayRotationMode_0

Definition at line 34 of file AlivcLivePlayConfig.java.

◆ videoStreamType

AlivcLivePlayVideoStreamType com.alivc.live.player.AlivcLivePlayConfig.videoStreamType = AlivcLivePlayVideoStreamType.STREAM_CAMERA

Live play video stream type

Note
default stream camera, com.alivc.live.player.annotations.AlivcLivePlayVideoStreamType.STREAM_CAMERA

Definition at line 41 of file AlivcLivePlayConfig.java.