setSpeed method
设置播放速率
Implementation
Future<bool> setSpeed(double speed) async {
if (isCreated == false) return false;
if (source == null) return false;
if (source is LiveVideoSource) {
return false;
}
if (speed != 1.0) await stopVoice();
var result = await app_player_channel
.invokeMethod("app_player_speed", [this.textureId, speed]);
if (result == true) {
this.playSpeed = speed;
}
return result;
}