setPlayerOptionInInt abstract method

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

Sets media player options.

The media player supports setting options through key and value. The difference between this method and setPlayerOptionInString is that the value parameter of this method is of type Int, while the value of setPlayerOptionInString 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> setPlayerOptionInInt({required String key, required int value});