TencentPlayerValue constructor

TencentPlayerValue({
  1. Duration duration = const Duration(),
  2. Duration position = const Duration(),
  3. Duration playable = const Duration(),
  4. bool isPlaying = false,
  5. String? errorDescription,
  6. Size? size,
  7. bool isLoading = false,
  8. int? netSpeed,
  9. int? fps = 0,
  10. double rate = 1.0,
  11. int bitrateIndex = 0,
  12. int orientation = 0,
  13. int degree = 0,
  14. int? eventCode,
})

Implementation

TencentPlayerValue({
  this.duration = const Duration(),
  this.position = const Duration(),
  this.playable = const Duration(),
  this.isPlaying = false,
  this.errorDescription,
  this.size,
  this.isLoading = false,
  this.netSpeed,
  this.fps = 0,
  this.rate = 1.0,
  this.bitrateIndex = 0, //TODO 默认清晰度
  this.orientation = 0,
  this.degree = 0,
  this.eventCode,
});