setPlayerOptionInString abstract method

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

Sets media player options.

The media player supports setting options through key and value. The difference between this method and setPlayerOptionInInt is that the value parameter of this method is of type String, while the value of setPlayerOptionInInt is of type String. These two methods cannot be used together.

  • key The key of the option.
  • value The value of the key.

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.

Implementation

Future<void> setPlayerOptionInString(
    {required String key, required String value});