This commit is contained in:
Hexah 2020-02-20 21:03:42 +01:00
parent 73899be332
commit 727211ee05
4 changed files with 4 additions and 4 deletions

View File

@ -4,6 +4,7 @@ import 'models.dart';
class AudioStreamInfo extends MediaStreamInfo {
/// Bitrate (bits/s) of the associated stream.
final int bitrate;
/// Audio encoding of the associated stream.
final AudioEncoding audioEncoding;

View File

@ -15,4 +15,4 @@ export 'video.dart';
export 'video_encoding.dart';
export 'video_quality.dart';
export 'video_resolution.dart';
export 'video_stream_info.dart';
export 'video_stream_info.dart';

View File

@ -32,8 +32,7 @@ class YoutubeExplode {
/// Use this to extract the muxed, audio and video streams from a video.
Future<MediaStreamInfoSet> getVideoMediaStream(String videoId) async {
if (!validateVideoId(videoId)) {
throw ArgumentError.value(
videoId, 'videoId', 'Invalid video id');
throw ArgumentError.value(videoId, 'videoId', 'Invalid video id');
}
var playerConfiguration = await getPlayerConfiguration(videoId);

View File

@ -1,5 +1,5 @@
name: youtube_explode_dart
description: A port in dart of the youtube explode library.
description: A port in dart of the youtube explode library. Support serveral API functions.
version: 0.0.1
homepage: https://github.com/Hexer10/youtube_explode_dart