youtube_explode/lib/src/reverse_engineering/models/stream_info_provider.dart

50 lines
668 B
Dart
Raw Normal View History

enum StreamSource { muxed, adaptive, dash }
2020-07-16 20:02:54 +02:00
///
2020-05-31 23:36:23 +02:00
abstract class StreamInfoProvider {
2020-07-16 20:02:54 +02:00
///
2020-06-05 16:17:08 +02:00
static final RegExp contentLenExp = RegExp(r'clen=(\d+)');
2020-05-31 23:36:23 +02:00
///
StreamSource get source;
2020-07-16 20:02:54 +02:00
///
2020-05-31 23:36:23 +02:00
int get tag;
2020-07-16 20:02:54 +02:00
///
2020-05-31 23:36:23 +02:00
String get url;
2020-07-16 20:02:54 +02:00
///
2021-03-11 14:20:10 +01:00
String? get signature => null;
2020-05-31 23:36:23 +02:00
2020-07-16 20:02:54 +02:00
///
2021-03-11 14:20:10 +01:00
String? get signatureParameter => null;
2020-05-31 23:36:23 +02:00
2020-07-16 20:02:54 +02:00
///
2021-03-11 14:20:10 +01:00
int? get contentLength => null;
2020-05-31 23:36:23 +02:00
2020-07-16 20:02:54 +02:00
///
2021-03-11 14:20:10 +01:00
int? get bitrate;
2020-05-31 23:36:23 +02:00
2020-07-16 20:02:54 +02:00
///
2021-03-11 14:20:10 +01:00
String? get container;
2020-05-31 23:36:23 +02:00
2020-07-16 20:02:54 +02:00
///
2021-03-11 14:20:10 +01:00
String? get audioCodec => null;
2020-05-31 23:36:23 +02:00
2020-07-16 20:02:54 +02:00
///
2021-03-11 14:20:10 +01:00
String? get videoCodec => null;
2020-05-31 23:36:23 +02:00
2020-07-16 20:02:54 +02:00
///
2021-03-11 14:20:10 +01:00
String? get videoQualityLabel => null;
2020-05-31 23:36:23 +02:00
2020-07-16 20:02:54 +02:00
///
2021-03-11 14:20:10 +01:00
int? get videoWidth => null;
2020-05-31 23:36:23 +02:00
2020-07-16 20:02:54 +02:00
///
2021-03-11 14:20:10 +01:00
int? get videoHeight => null;
2020-05-31 23:36:23 +02:00
2020-07-16 20:02:54 +02:00
///
2021-03-11 14:20:10 +01:00
int? get framerate => null;
2020-05-31 23:36:23 +02:00
}