You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
YoutubeExplode library throws a VideoUnavailableException but when I go to youtube.com the video is available and has multiple streams. 1080, 720, 360 and so on. This usually happens when a stream was live and then the live stream ended and video is available on youtube after the live stream. If I wait long enough, or the following day the issue resolves it self, but this can be reproduced everytime a stream transitions from live to not live.
To Reproduce
Try to stream a live video then end the stream and attempt to play back the video after it's posted to youtube channel.
Future<Uri> _getYTMetadata(
String videoId, YoutubeExplode ytXplode, bool isLive) async {
if (isLive) {
final liveStreamUrl =await ytXplode.videos.streams.getHttpLiveStreamUrl(VideoId(videoId));
returnUri.parse(liveStreamUrl);
} else {
try {
var manifest =await ytXplode.videos.streamsClient.getManifest(videoId);
var muxedInfo = manifest.muxed.bestQuality;
var videoUri = muxedInfo.url;
return videoUri;
} catch (e, stack) {
print(e);
print(stack);
throw e;
}
// var streamInfo = manifest.video.withHighestBitrate();
}
}
Enviroment: (please complete the following information):
Enviroment: [Flutter o Dart VM]
Version 3.16.9
YoutubeExplode Version :2.1.0 Additional context
Add any other context about the problem here.
Flutter doctor output:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.9, on macOS 14.3 23D56 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.2)
[✓] VS Code (version 1.86.0)
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!
The text was updated successfully, but these errors were encountered:
MxD-js
changed the title
[BUG] VideoUnavailableException when video is available on youtube
[BUG] VideoUnavailableException even though the video is available on youtube
Feb 5, 2024
No worries we're all busy, I appreciate you getting this library out there, super helpful.
So, I don't get the error on the video I posted anymore.
The error can be reproduced when a youtube live stream end and the live stream video is available on youtube as a video. The error usually fixes it self in a day or so, like youtube needs to process the video? not sure.. but I do still get the error.
Describe the bug
YoutubeExplode library throws a VideoUnavailableException but when I go to youtube.com the video is available and has multiple streams. 1080, 720, 360 and so on. This usually happens when a stream was live and then the live stream ended and video is available on youtube after the live stream. If I wait long enough, or the following day the issue resolves it self, but this can be reproduced everytime a stream transitions from live to not live.
To Reproduce
Try to stream a live video then end the stream and attempt to play back the video after it's posted to youtube channel.
Youtube screenshot showing the video is available
Stacktrace
Enviroment: (please complete the following information):
Additional context
Add any other context about the problem here.
Flutter doctor output:
The text was updated successfully, but these errors were encountered: