canUseTbsPlayer static method

Future<bool> canUseTbsPlayer()

是否能直接使用x5内核播放视频

Implementation

static Future<bool> canUseTbsPlayer() async {
  if (defaultTargetPlatform == TargetPlatform.android) {
    bool res = await _channel.invokeMethod("canUseTbsPlayer");
    return res;
  } else {
    return false;
  }
}