newtaDev / pod_player

Video player for flutter web & mobile devices, Play video from youtube or vimeo or network in flutter using pod player
https://pub.dev/packages/pod_player
MIT License
103 stars 186 forks source link

YOUTUBE API ERROR: YoutubeExplodeException #233

Open rsozdance opened 6 days ago

rsozdance commented 6 days ago

Hello,

I am using the pod_player version 0.2.2 in flutter version 3.22.2 on ios and android.

The player works fine then suddenly i get this error for couple hours and then it works fine again.

===== YOUTUBE API ERROR: YoutubeExplodeException: Video XXXXXXXXXX returned 403 (stream: 18 ==========
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: YoutubeExplodeException: Video XXXXXXXXXX returned 403 (stream: 18
#0      StreamClient.getManifest.<anonymous closure> (package:youtube_explode_dart/src/videos/streams/stream_client.dart:46:9)
<asynchronous suspension>
#1      retry (package:youtube_explode_dart/src/retry.dart:16:14)
<asynchronous suspension>
#2      VideoApis.getYoutubeVideoQualityUrls (package:pod_player/src/utils/video_apis.dart:142:13)
<asynchronous suspension>
#3      _CustumPotraitPlayerWidgetState.loadVideo (package:oxygen/custom_code/widgets/custum_potrait_player_widget.dart:53:18)
<asynchronous suspension>
ceellyy9711 commented 6 days ago

Mine's still not working...

Purehi commented 6 days ago

me too. how to fix?

SujitChanda-BT commented 6 days ago

having same issue, how to fix that ?

amol-d commented 6 days ago

https://github.com/Hexer10/youtube_explode_dart/issues/286

rsozdance commented 6 days ago

Temporary fix for this issue:

Edit the pubspec.yaml file:

dependency_overrides:
  youtube_explode_dart: 
    git: "https://github.com/rsozdance/youtube_explode_dart.git"

Please note this is only a temporary fix.

Purehi commented 6 days ago

Hexer10/youtube_explode_dart#286

well done!!!

Purehi commented 6 days ago

Temporary fix for this issue:

Edit the pubspec.yaml file:

dependency_overrides:
  youtube_explode_dart: 
    git: "https://github.com/rsozdance/youtube_explode_dart.git"

Please note this is only a temporary fix.

thanks

rsozdance commented 5 days ago

Quick Update, the issue started happening again with some videos.

mkamel44 commented 5 days ago

any solution

645h1 commented 4 days ago

dependency_overrides: youtube_explode_dart: ^2.2.2

Overriding the "youtube_explode_dart" package seems to work for some time till just randomly starts showing "Error while playing video". The same video that was playing moments ago now shows the error: "Error while playing video" and vice versa.

ahmedwaleed3378 commented 4 days ago

is there any update ?

ajithrameshcr commented 4 days ago

I tried upgrading the flutter, now it is working for me.

ahmedwaleed3378 commented 4 days ago

My project is updated, and still got the issue

ajithrameshcr commented 4 days ago

My project is updated, and still got the issue

Have you tried "flutter upgrade" ?