TPStreamPlayer constructor

const TPStreamPlayer({
  1. Key? key,
  2. required String assetId,
  3. required String? accessToken,
  4. double aspectRatio = 16 / 9,
  5. dynamic onPlayerCreated(
    1. TPStreamsPlayerController controller
    )?,
  6. bool? showDownloadOption = false,
  7. int? offlineLicenseExpireDays = 15,
})

Implementation

const TPStreamPlayer({
  super.key,
  required this.assetId,
  required this.accessToken,
  this.aspectRatio = 16 / 9,
  this.onPlayerCreated,
  this.showDownloadOption = false,
  this.offlineLicenseExpireDays = 15,
}) : _isOfflinePlayback = false;