setPlayMediaStreamType abstract method
- ZegoMediaStreamType streamType
Set play media stream type.
Available since: 3.10.0
Description: Configure the media stream type to be played. You can only play video streams or audio streams. This will take effect during the life cycle of the media player.
Use cases: When the network resource needs to set special header information.
When to call: It can be called after the engine by createEngine
has been initialized and the media player has been created by createMediaPlayer
.
Caution: Changing the media stream type during playing will take effect in the next playing.
streamType
Stream type.
Implementation
Future<void> setPlayMediaStreamType(ZegoMediaStreamType streamType);