ZegoExpressEngine(Player)
Declared in
ZegoExpressEngine+Player.h
Includes
Public-Func Lists
Public-Func Docs
startPlayingStream:canvas:
-
(void)startPlayingStream
:(NSString *) streamID canvas:(nullable ZegoCanvas *) canvas;
Start playing stream.
Parameters | |
---|---|
streamID | Stream ID, a string of up to 256 characters. You cannot include URL keywords, otherwise publishing stream and playing stream will fails. Only support numbers, English characters and '~', '!', '@', '#', '$', '', '^', '&', '*', '(', ')', '_', '+', '=', '-', ', ';', '’', ',', '.', '<', '>', '/', ''. |
canvas | The view used to display the play audio and video stream's image. If the view is set to [nil], it will not be displayed. |
startPlayingStream:canvas:config:
-
(void)startPlayingStream
:(NSString *) streamID canvas:(nullable ZegoCanvas *) canvas config:(ZegoPlayerConfig *) config;
Start playing stream.
Parameters | |
---|---|
streamID | Stream ID, a string of up to 256 characters. You cannot include URL keywords, otherwise publishing stream and playing stream will fails. Only support numbers, English characters and '~', '!', '@', '#', '$', '', '^', '&', '*', '(', ')', '_', '+', '=', '-', ', ';', '’', ',', '.', '<', '>', '/', ''. |
canvas | The view used to display the play audio and video stream's image. If the view is set to [nil], it will not be displayed. |
config | Advanced player configuration |
stopPlayingStream:
-
(void)stopPlayingStream
:(NSString *) streamID;
Stop playing stream.
Parameters | |
---|---|
streamID | Stream ID |
setPlayVolume:streamID:
-
(void)setPlayVolume
:(int) volume streamID:(NSString *) streamID;
Set the playback volume of the stream.
Parameters | |
---|---|
volume | Volume percentage. The value ranges from 0 to 100, and the default value is 100. |
streamID | Stream ID |
mutePlayStreamAudio:streamID:
-
(void)mutePlayStreamAudio
:(BOOL) mute streamID:(NSString *) streamID;
Stop/resume playing the audio data of the stream.
Parameters | |
---|---|
mute | mute flag, YES: mute play stream video, NO: resume play stream video |
streamID | Stream ID |
mutePlayStreamVideo:streamID:
-
(void)mutePlayStreamVideo
:(BOOL) mute streamID:(NSString *) streamID;
Stop/resume playing the video data of the stream.
Parameters | |
---|---|
mute | mute flag, YES: mute play stream video, NO: resume play stream video |
streamID | Stream ID |
enableHardwareDecoder:
-
(void)enableHardwareDecoder
:(BOOL) enable;
On/off hardware decoding.
Parameters | |
---|---|
enable | Whether to turn on hardware decoding switch, YES: enable hardware decoding, NO: disable hardware decoding. The default is NO |
enableCheckPoc:
-
(void)enableCheckPoc
:(BOOL) enable;
On/off frame order detection.
Parameters | |
---|---|
enable | Whether to turn on frame order detection, YES: enable check poc,not support B frames, NO: disable check poc, support B frames but the screen may temporary splash. The default is YES |