isHardwareDecode property

Future<bool> get isHardwareDecode

Set smooth switch enable when config resolution, the default value is false, it needs to be set before calling play(). Check if the current playback is hardware-accelerated, it should be called after onPrepared.

Implementation

// Future<void> setSmoothSwitchEnable(bool smoothSwitchEnable) async {
//   await engineInstanceMethodChannel.invokeMethod('setSmoothSwitchEnable', smoothSwitchEnable);
// }

/// Check if the current playback is hardware-accelerated, it should be called after onPrepared.
Future<bool> get isHardwareDecode async {
  return await engineInstanceMethodChannel.invokeMethod('getHardwareDecode');
}