setPlayerOptionInInt abstract method

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

Set media player options for providing technical previews or special customization features.

The media player supports setting options through key and value. In general, you don't need to know about the option settings. You can use the default option settings of the media player. 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. Ensure that you call this method before open or openWithMediaSource.

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