setProgress method
进度回调
Implementation
Future<bool> setProgress(int duration,
{bool timeLine = false, int channel = 2, int key = 0}) async {
if (isCreated == false) return false;
if (source == null) return false;
if (videoStatus == VideoStatus.STOP) return false;
if (duration >= totalSec && timeLine == false) return false;
if (duration == playSec) return true;
changedProgress = true;
var result = await app_player_channel.invokeMethod(
"app_player_progress", [this.textureId, duration, channel, key]);
changedProgress = false;
if (result == true) {
playSec = duration;
}
return result;
}