setLicenseFlexibleValid static method

Future<void> setLicenseFlexibleValid(
  1. bool enabled
)

开启播放器 License 柔性校验,开启后在播放器首次启动后前 2 次播放校验将默认通过

Enable flexible verification of player License; once enabled, the verification will pass by default for the first two times after the player is launched for the first time.

Implementation

static Future<void> setLicenseFlexibleValid(bool enabled) async {
  await _playerPluginApi.setLicenseFlexibleValid(BoolMsg(value: enabled));
}