Package im.zego.zegoexpress.entity
Class ZegoPlayerConfig
- java.lang.Object
-
- im.zego.zegoexpress.entity.ZegoPlayerConfig
-
public class ZegoPlayerConfig extends java.lang.Object
Advanced player configuration. Configure stream resource mode, CDN configuration and other advanced configurations.
-
-
Field Summary
Fields Modifier and Type Field Description int
adaptiveSwitch
Whether to enable adaptive switching of streams, 1 means on, 0 means off.int[]
adaptiveTemplateIDList
Stream adaptive transcoding template ID list.ZegoCDNConfig
cdnConfig
The CDN configuration for playing stream.int
codecTemplateID
Preconfigured codec template ID, please contact ZEGO technical support if you need to use it, otherwise this parameter can be ignored.ZegoCustomPlayerResourceConfig
customResourceConfig
Play stream resource type configuration when [resourceMode] is ZegoStreamResourceModeCustom.ZegoStreamResourceMode
resourceMode
Stream resource mode.ZegoStreamResourceSwitchMode
resourceSwitchMode
Play resource switching strategy mode, the default is ZegoStreamResourceSwitchModeDefaultZegoStreamResourceType
resourceWhenStopPublish
Play resource type when stop publish, the default is ZegoStreamResourceTypeDefault.java.lang.String
roomID
The Room ID.ZegoResourceType
sourceResourceType
The resource type of the source stream, please contact ZEGO technical support if you need to use it, otherwise this parameter can be ignored.ZegoVideoCodecID
videoCodecID
The video encoding type of the stream, please contact ZEGO technical support if you need to use it, otherwise this parameter can be ignored.
-
Constructor Summary
Constructors Constructor Description ZegoPlayerConfig()
-
-
-
Field Detail
-
resourceMode
public ZegoStreamResourceMode resourceMode
Stream resource mode.
-
cdnConfig
public ZegoCDNConfig cdnConfig
The CDN configuration for playing stream. If set, the stream is play according to the URL instead of the streamID. After that, the streamID is only used as the ID of SDK internal callback.
-
roomID
public java.lang.String roomID
The Room ID. It only needs to be filled in the multi-room mode, which indicates which room this stream needs to be bound to. This parameter is ignored in single room mode.
-
videoCodecID
public ZegoVideoCodecID videoCodecID
The video encoding type of the stream, please contact ZEGO technical support if you need to use it, otherwise this parameter can be ignored.
-
sourceResourceType
public ZegoResourceType sourceResourceType
The resource type of the source stream, please contact ZEGO technical support if you need to use it, otherwise this parameter can be ignored.
-
codecTemplateID
public int codecTemplateID
Preconfigured codec template ID, please contact ZEGO technical support if you need to use it, otherwise this parameter can be ignored.
-
resourceSwitchMode
public ZegoStreamResourceSwitchMode resourceSwitchMode
Play resource switching strategy mode, the default is ZegoStreamResourceSwitchModeDefault
-
resourceWhenStopPublish
public ZegoStreamResourceType resourceWhenStopPublish
Play resource type when stop publish, the default is ZegoStreamResourceTypeDefault. This setting takes effect only if the user sets [resourceMode] to ZegoStreamResourceModeDefaut and [resourceSwitchMode] to ZegoStreamResourceSwitchModeDefault or ZegoStreamResourceSwitchModeSwitchToRTC.
-
adaptiveSwitch
public int adaptiveSwitch
Whether to enable adaptive switching of streams, 1 means on, 0 means off. Valid only if [resourceMode] is ZegoStreamResourceModeOnlyL3. Please contact ZEGO technical support if you need to use it, otherwise this parameter can be ignored.
-
adaptiveTemplateIDList
public int[] adaptiveTemplateIDList
Stream adaptive transcoding template ID list. Valid only if [resourceMode] is ZegoStreamResourceModeOnlyL3. Please contact ZEGO technical support if you need to use it, otherwise this parameter can be ignored.
-
customResourceConfig
public ZegoCustomPlayerResourceConfig customResourceConfig
Play stream resource type configuration when [resourceMode] is ZegoStreamResourceModeCustom.
-
-