setOption<T> method

Future<void> setOption<T>(
  1. int key,
  2. T value
)

master-m3u8 === end Call after createPlayer(). T valid types: bool, int, string, double

Implementation

/// Call after createPlayer().
/// T valid types: bool, int, string, double
Future<void> setOption<T>(int key, T value) async {
  TTFLogger.i(_logTag, 'setOption: key:$key value: $value');
  await engineInstanceMethodChannel.invokeMethod('setOption', {"key": key, "value": value});
}