setPlayerOptionInString abstract method
Sets media player options.
The media player supports setting options using key and value. The difference between this method and setPlayerOptionInInt is that this method uses a String type for value, while setPlayerOptionInInt uses an Int type. The two cannot be mixed.
keyKey value.valueValue.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.
Implementation
Future<void> setPlayerOptionInString(
{required String key, required String value});