setPlayerOptionInString abstract method

Future<void> setPlayerOptionInString({
  1. required String key,
  2. required String value,
})

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.

  • key Key value.
  • value Value.

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});