49 lines
1.3 KiB
Dart
49 lines
1.3 KiB
Dart
|
import 'package:youtube_explode_dart/src/videos/streams/bitrate.dart';
|
||
|
import 'package:youtube_explode_dart/src/videos/streams/container.dart';
|
||
|
import 'package:youtube_explode_dart/src/videos/streams/filesize.dart';
|
||
|
|
||
|
import 'framerate.dart';
|
||
|
import 'stream_info.dart';
|
||
|
import 'video_quality.dart';
|
||
|
import 'video_resolution.dart';
|
||
|
|
||
|
/// YouTube media stream that contains video.
|
||
|
abstract class VideoStreamInfo extends StreamInfo {
|
||
|
/// Video codec.
|
||
|
final String videoCodec;
|
||
|
|
||
|
/// Video quality label, as seen on YouTube.
|
||
|
final String videoQualityLabel;
|
||
|
|
||
|
/// Video quality.
|
||
|
final VideoQuality videoQuality;
|
||
|
|
||
|
/// Video resolution.
|
||
|
final VideoResolution videoResolution;
|
||
|
|
||
|
/// Video framerate.
|
||
|
final Framerate framerate;
|
||
|
|
||
|
///
|
||
|
VideoStreamInfo(
|
||
|
int tag,
|
||
|
Uri url,
|
||
|
Container container,
|
||
|
FileSize size,
|
||
|
Bitrate bitrate,
|
||
|
this.videoCodec,
|
||
|
this.videoQualityLabel,
|
||
|
this.videoQuality,
|
||
|
this.videoResolution,
|
||
|
this.framerate)
|
||
|
: super(tag, url, container, size, bitrate);
|
||
|
}
|
||
|
|
||
|
// TODO: Implement VideoStreamExtension
|
||
|
// https://github.com/Tyrrrz/YoutubeExplode/blob/136b72bf8ca00fea7d6a686694dd91a485ca2c83/YoutubeExplode/Videos/Streams/IVideoStreamInfo.cs#L37-L60
|
||
|
/*
|
||
|
/// Extensions for [VideoStreamInfo[
|
||
|
extension VideoStreamInfoExtension on VideoStreamInfo {
|
||
|
|
||
|
}*/
|