setSimulcastLayer method
Invoke the function with the desired simulcast layer which can be of types - HMSSimulcastLayer.high, HMSSimulcastLayer.low, HMSSimulcastLayer.mid
Implementation
Future<HMSException?> setSimulcastLayer(HMSSimulcastLayer layer) async {
var result = await PlatformService.invokeMethod(
PlatformMethod.setSimulcastLayer,
arguments: {
"track_id": trackId,
"layer": HMSSimulcastLayerValue.getValueFromHMSSimulcastLayer(layer)
});
if (result == null) {
return null;
} else {
return HMSException.fromMap(result["error"]);
}
}