PlayerMediaSource constructor

PlayerMediaSource(
  1. {required String uniqueKey,
  2. required String sourceName,
  3. required String description,
  4. required IconData icon,
  5. required bool implementsSearch,
  6. required bool implementsHistory}
)

Initialise a media source.

Implementation

PlayerMediaSource({
  required super.uniqueKey,
  required super.sourceName,
  required super.description,
  required super.icon,
  required super.implementsSearch,
  required super.implementsHistory,
}) : super(
        mediaType: PlayerMediaType.instance,
        overridesAutoAudio: true,
        overridesAutoImage: true,
      );