Fix warning
This commit is contained in:
parent
d3316ca220
commit
e323a24ba3
|
@ -1,4 +1,4 @@
|
||||||
import 'package:http_parser/src/media_type.dart';
|
import 'package:http_parser/http_parser.dart';
|
||||||
|
|
||||||
import '../../reverse_engineering/models/fragment.dart';
|
import '../../reverse_engineering/models/fragment.dart';
|
||||||
import 'audio_stream_info.dart';
|
import 'audio_stream_info.dart';
|
||||||
|
@ -71,7 +71,7 @@ class MuxedStreamInfo implements AudioStreamInfo, VideoStreamInfo {
|
||||||
this.bitrate,
|
this.bitrate,
|
||||||
this.audioCodec,
|
this.audioCodec,
|
||||||
this.videoCodec,
|
this.videoCodec,
|
||||||
this.videoQualityLabel,
|
@Deprecated('Use qualityLabel') this.videoQualityLabel,
|
||||||
this.videoQuality,
|
this.videoQuality,
|
||||||
this.videoResolution,
|
this.videoResolution,
|
||||||
this.framerate,
|
this.framerate,
|
||||||
|
@ -79,5 +79,5 @@ class MuxedStreamInfo implements AudioStreamInfo, VideoStreamInfo {
|
||||||
this.qualityLabel);
|
this.qualityLabel);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'Muxed ($tag | $videoQualityLabel | $container)';
|
String toString() => 'Muxed ($tag | $qualityLabel | $container)';
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,7 +127,7 @@ class StreamsClient {
|
||||||
// Muxed or Video-only
|
// Muxed or Video-only
|
||||||
if (!videoCodec.isNullOrWhiteSpace) {
|
if (!videoCodec.isNullOrWhiteSpace) {
|
||||||
var framerate = Framerate(streamInfo.framerate ?? 24);
|
var framerate = Framerate(streamInfo.framerate ?? 24);
|
||||||
var videoQualityLabel = streamInfo.videoQualityLabel ?? '';
|
var videoQualityLabel = streamInfo.qualityLabel;
|
||||||
|
|
||||||
var videoQuality = VideoQualityUtil.fromLabel(videoQualityLabel);
|
var videoQuality = VideoQualityUtil.fromLabel(videoQualityLabel);
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ abstract class VideoStreamInfo extends StreamInfo {
|
||||||
FileSize size,
|
FileSize size,
|
||||||
Bitrate bitrate,
|
Bitrate bitrate,
|
||||||
this.videoCodec,
|
this.videoCodec,
|
||||||
this.videoQualityLabel,
|
@Deprecated('Use qualityLabel') this.videoQualityLabel,
|
||||||
this.videoQuality,
|
this.videoQuality,
|
||||||
this.videoResolution,
|
this.videoResolution,
|
||||||
this.framerate,
|
this.framerate,
|
||||||
|
@ -50,8 +50,7 @@ extension VideoStreamInfoExtension<T extends VideoStreamInfo> on Iterable<T> {
|
||||||
/// a collection of video streams.
|
/// a collection of video streams.
|
||||||
/// This could be longer than [getAllVideoQualities] since this gives also all
|
/// This could be longer than [getAllVideoQualities] since this gives also all
|
||||||
/// the different framerate values.
|
/// the different framerate values.
|
||||||
Set<String> getAllVideoQualitiesLabel() =>
|
Set<String> getAllVideoQualitiesLabel() => map((e) => e.qualityLabel).toSet();
|
||||||
map((e) => e.videoQualityLabel).toSet();
|
|
||||||
|
|
||||||
/// Gets the stream with best video quality.
|
/// Gets the stream with best video quality.
|
||||||
T withHighestBitrate() => sortByVideoQuality().last;
|
T withHighestBitrate() => sortByVideoQuality().last;
|
||||||
|
|
Loading…
Reference in New Issue