ZegoPlayerConfig Class Reference

Inherits from NSObject
Declared in ZegoExpressDefines.h

Overview

Configure stream resource mode, CDN configuration and other advanced configurations.

  resourceMode

Stream resource mode.

@property (nonatomic, assign) ZegoStreamResourceMode resourceMode

Declared In

ZegoExpressDefines.h

  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.

@property (nonatomic, strong, nullable) ZegoCDNConfig *cdnConfig

Declared In

ZegoExpressDefines.h

  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.

@property (nonatomic, copy) NSString *roomID

Declared In

ZegoExpressDefines.h

  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.

@property (nonatomic, assign) ZegoVideoCodecID videoCodecID

Declared In

ZegoExpressDefines.h

  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.

@property (nonatomic, assign) ZegoResourceType sourceResourceType

Declared In

ZegoExpressDefines.h

  codecTemplateID

Preconfigured codec template ID, please contact ZEGO technical support if you need to use it, otherwise this parameter can be ignored.

@property (nonatomic, assign) int codecTemplateID

Declared In

ZegoExpressDefines.h

  resourceSwitchMode

Play resource switching strategy mode, the default is ZegoStreamResourceSwitchModeDefault

@property (nonatomic, assign) ZegoStreamResourceSwitchMode resourceSwitchMode

Declared In

ZegoExpressDefines.h

  resourceWhenStopPublish

Play resource type when stop publish, the default is ZegoStreamResourceTypeDefault. This setting takes effect when the user sets [resourceSwitchMode] to ZegoStreamResourceSwitchModeDefault or ZegoStreamResourceSwitchModeSwitchToRTC.

@property (nonatomic, assign) ZegoStreamResourceType resourceWhenStopPublish

Declared In

ZegoExpressDefines.h