setPlayStreamVideoType method
- String streamID,
- ZegoVideoStreamType streamType
Set play video stream type.
Available since: 2.3.0
Description: When the publish stream sets the codecID to SVC through setVideoConfig
, the puller can dynamically set and select different stream types (small resolution is one-half of the standard layer).
Use cases: In general, when the network is weak or the rendered UI window is small, you can choose to pull videos with small resolutions to save bandwidth.
When to call: before or after called startPlayingStream.
Restrictions: None.
Note: This function is only available in ZegoExpressVideo SDK!
streamID
Stream ID.streamType
Video stream type.
Implementation
Future<void> setPlayStreamVideoType(
String streamID, ZegoVideoStreamType streamType) async {
return await ZegoExpressImpl.instance
.setPlayStreamVideoType(streamID, streamType);
}