Hexer10 / youtube_explode_dart

Dart library to interact with many Youtube APIs
https://pub.dev/packages/youtube_explode_dart
BSD 3-Clause "New" or "Revised" License
322 stars 141 forks source link

[BUG] Wrong container name for Audio-only stream #153

Closed prateekmedia closed 3 years ago

prateekmedia commented 3 years ago

Describe the bug stream.container.name returns mp4 even for Audio only streams.

To Reproduce Access container name property of a audio only video stream and it will result in mp4 and not webm or m4a or ogg

prateekmedia commented 3 years ago

@89z try any random video

sunnypaul19999 commented 3 years ago

Describe the bug stream.container.name returns mp4 even for Audio only streams.

To Reproduce Access container name property of a audio only video stream and it will result in mp4 and not webm or m4a or ogg

The package always uses either mp4, WebM, and 3gp as containers for video and audio stream. It does not always result in mp4. For codec for audio only stream you can check the audioCodec.

prateekmedia commented 3 years ago

@sunnypaul19999 Thanks.

Hexer10 commented 3 years ago

@prateekmedia as sunnypaul19999 said, youtube doesn't return any .mp3 stream, even for audio-only streams, so that's why there are no .mp3 containers