Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error YOUTUBE API ERROR: YoutubeExplodeException: Video XXXXX returned 403 (stream: 137 ========== #238

Open
aycanozarpaci opened this issue Oct 9, 2024 · 26 comments

Comments

@aycanozarpaci
Copy link

Version : pod_player: ^0.2.2

Normally it was fine, but today again the video player won't run videos

Error :
I/flutter ( 4740): ===== YOUTUBE API ERROR: YoutubeExplodeException: Video XXXXX returned 403 (stream: 137 ==========

@rsozdance
Copy link

Edit the pubspec.yaml

dependency_overrides:
     youtube_explode_dart: ^2.2.3

@aycanozarpaci
Copy link
Author

Edit the pubspec.yaml

dependency_overrides:
     youtube_explode_dart: ^2.2.3

First of all, thank you for your response, after adding this dependency, the error turned to this, what should I do for this?

E/flutter ( 3636): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception: videoQuality cannot be empty
E/flutter ( 3636): #0      PodPlayerController._checkAndWaitTillInitialized (package:pod_player/src/controllers/pod_player_controller.dart:73:9)
E/flutter ( 3636): #1      PodPlayerController._checkAndWaitTillInitialized (package:pod_player/src/controllers/pod_player_controller.dart:82:11)
E/flutter ( 3636): <asynchronous suspension>
E/flutter ( 3636): #2      PodPlayerController._checkAndWaitTillInitialized (package:pod_player/src/controllers/pod_player_controller.dart:82:5)
E/flutter ( 3636): <asynchronous suspension>
E/flutter ( 3636): #3      PodPlayerController.initialise (package:pod_player/src/controllers/pod_player_controller.dart:61:5)
E/flutter ( 3636): <asynchronous suspension>
E/flutter ( 3636): 

@rsozdance
Copy link

Yes unfortunately, the new youtube_explode_dart: ^2.2.3 updated the VideoController.iosClient
Hexer10/youtube_explode_dart@41e4475

which i think made a problem in pod_player. i am looking for a solution now.

@alfayedoficial
Copy link

@rsozdance Great

@mkamel44
Copy link

mkamel44 commented Oct 9, 2024

brothers

Error :
I/flutter ( 4740): ===== YOUTUBE API ERROR: YoutubeExplodeException: Video XXXXX returned 403 (stream: 137 ==========

in
Version : pod_player: ^0.2.2

@aycanozarpaci
Copy link
Author

brothers

Error : I/flutter ( 4740): ===== YOUTUBE API ERROR: YoutubeExplodeException: Video XXXXX returned 403 (stream: 137 ==========

in Version : pod_player: ^0.2.2

We had the same problem, I added the following library(https://pub.dev/packages/youtube_explode_dart
) with the suggestion @rsozdance and this time it gives a different problem. The developer last updated 6 months ago. He's probably going through a busy period and won't be developing. I talked to my own dev team and we will switch to a different library, I tested it and there is no problem with it.

@rsozdance
Copy link

brothers
Error : I/flutter ( 4740): ===== YOUTUBE API ERROR: YoutubeExplodeException: Video XXXXX returned 403 (stream: 137 ==========
in Version : pod_player: ^0.2.2

We had the same problem, I added the following library(https://pub.dev/packages/youtube_explode_dart ) with the suggestion @rsozdance and this time it gives a different problem. The developer last updated 6 months ago. He's probably going through a busy period and won't be developing. I talked to my own dev team and we will switch to a different library, I tested it and there is no problem with it.

Which library are you guying switching to?

@aycanozarpaci aycanozarpaci reopened this Oct 9, 2024
@mkamel44
Copy link

mkamel44 commented Oct 9, 2024

yes what library brother?

brothers
Error : I/flutter ( 4740): ===== YOUTUBE API ERROR: YoutubeExplodeException: Video XXXXX returned 403 (stream: 137 ==========
in Version : pod_player: ^0.2.2

We had the same problem, I added the following library(https://pub.dev/packages/youtube_explode_dart ) with the suggestion @rsozdance and this time it gives a different problem. The developer last updated 6 months ago. He's probably going through a busy period and won't be developing. I talked to my own dev team and we will switch to a different library, I tested it and there is no problem with it.

@aycanozarpaci
Copy link
Author

aycanozarpaci commented Oct 9, 2024

brothers
Error : I/flutter ( 4740): ===== YOUTUBE API ERROR: YoutubeExplodeException: Video XXXXX returned 403 (stream: 137 ==========
in Version : pod_player: ^0.2.2

We had the same problem, I added the following library(https://pub.dev/packages/youtube_explode_dart ) with the suggestion @rsozdance and this time it gives a different problem. The developer last updated 6 months ago. He's probably going through a busy period and won't be developing. I talked to my own dev team and we will switch to a different library, I tested it and there is no problem with it.

Which library are you guying switching to?

@mkamel44 @rsozdance
We tested the youtube_player_flutter Library and did not encounter any problems. In the application we use, videos are usually 2-3 videos, we don't need downloading and similar features, just watching the video is enough for us, and this library seems to meet this. It is an ideal library for us because we do not need different features such as video quality subtitles.

@mkamel44
Copy link

mkamel44 commented Oct 9, 2024

this package youtube_player_flutter the videos header open, IFrame it is not solution for unlisted YouTube videos
any other solution brothers

@pokizaSaparmatova
Copy link

I also met this isuue .Any solutions?

@alfayedoficial
Copy link

this package youtube_player_flutter the videos header open, IFrame it is not solution for unlisted YouTube videos any other solution brothers

Thank you for your recommendation. @mkamel44

@ijashuzain
Copy link

I have developed a simple youtube player by fixing this youtube explode issue with muxed stream deperication (Not including all featured this player have) you can check it and i am welcoming contributions to make it better.

https://pub.dev/packages/y_player

@Purehi
Copy link

Purehi commented Oct 10, 2024

Changed youtube_explode_dart. It's working for me.

`Stream _getStreams(VideoId videoId, {required bool fullManifest}) async* {
try {

  if (fullManifest) {
    await for (final stream
        in _getStream(videoId, VideoController.androidClient)) {
      yield stream;
    }
  }else{
    // Use await for instead of yield* to catch exceptions
    await for (final stream
    in _getStream(videoId, VideoController.iosClient)) {
      yield stream;
    }
  }
} on VideoUnplayableException catch (e) {
  if (e is VideoRequiresPurchaseException) {
    rethrow;
  }
  yield* _getCipherStream(videoId);
}

}
`

How to use
final manifest = await yt.videos.streamsClient.getManifest(youtubeIdOrUrl, fullManifest: true);

I have updated my app, you can check it out.
WeTube:Video&Music

@rakib205
Copy link

@Purehi, can you please provide a complete solution or a pull request? Your comment on how it's related to the pod_player package and where to change is unclear. Thanks

@mkamel44
Copy link

yes please provide a complete solution

@Dav418
Copy link

Dav418 commented Oct 10, 2024

@Purehi can you please make a fork with your solution? It would help a lot of people with this issue

@Kingofalltimes
Copy link

@Purehi Can you Please share the solution with more details?

@examvishwa
Copy link

@Purehi Can you Please share the solution & Where to change ? Please Provide solution

@Purehi
Copy link

Purehi commented Oct 10, 2024

@examvishwa @rakib205 @rsozdance @rsozdance @ijashuzain @alfayedoficial

Everyone can find and modify it in

youtube_explode_dart > videos > streams > stream_client.dart

Please give my app a five-star rating, thank you.

Android WeTube:Video&Music

@examvishwa
Copy link

examvishwa commented Oct 11, 2024

Just Change in Pod player pubspec.yaml following dependency video working properly
environment:
sdk: ">=3.0.0 <4.0.0"
flutter: ">=1.17.0"

dependencies:
flutter:
sdk: flutter

services

#video_player: ^2.8.5
video_player: ^2.9.2
http: ^1.2.2
get: ^4.6.6
#wakelock_plus: ^1.2.4
wakelock_plus: ^1.2.8
universal_html: ^2.2.4
youtube_explode_dart: ^2.3.0
#youtube_explode_dart: ^2.2.2

else override dependancy

dependency_overrides:

youtube_explode_dart:
git:
url: https://github.com/Hexer10/youtube_explode_dart

@pdechanoz
Copy link

For me it's work, after :

flutter clean
flutter pub cache clean
flutter pub get

@pdechanoz
Copy link

And :
flutter pub outdated
flutter pub upgrade

@rakib205
Copy link

rakib205 commented Oct 11, 2024

# temporary fix
dependency_overrides:
  youtube_explode_dart: ^2.3.0

@shahmirzali49
Copy link

shahmirzali49 commented Oct 22, 2024

@rakib205 Thanks, but we need to define it without the '^'. When you include the '^', Flutter overrides to the latest version: ! youtube_explode_dart 2.3.4 (overridden). Without the '^', it results in: ! youtube_explode_dart 2.3.0 (overridden) (2.3.4 available).

# temporary fix
dependency_overrides:
  youtube_explode_dart: 2.3.0

@ge0rge000
Copy link

i have solution for get all quality contact with me :+971557474526

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests