pod_player icon indicating copy to clipboard operation
pod_player copied to clipboard

YOUTUBE API ERROR: YoutubeExplodeException

Open shayar-ghafour opened this issue 1 year ago • 18 comments

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>

shayar-ghafour avatar Sep 24 '24 23:09 shayar-ghafour

Mine's still not working...

ceellyy9711 avatar Sep 25 '24 00:09 ceellyy9711

me too. how to fix?

Purehi avatar Sep 25 '24 06:09 Purehi

having same issue, how to fix that ?

SujitChanda-BT avatar Sep 25 '24 06:09 SujitChanda-BT

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

amol-d avatar Sep 25 '24 07:09 amol-d

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.

shayar-ghafour avatar Sep 25 '24 07:09 shayar-ghafour

Hexer10/youtube_explode_dart#286

well done!!!

Purehi avatar Sep 25 '24 08:09 Purehi

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

Purehi avatar Sep 25 '24 08:09 Purehi

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

shayar-ghafour avatar Sep 25 '24 18:09 shayar-ghafour

any solution

mkamel44 avatar Sep 26 '24 08:09 mkamel44

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.

645h1 avatar Sep 26 '24 13:09 645h1

is there any update ?

ahmedwaleed3378 avatar Sep 26 '24 14:09 ahmedwaleed3378

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

ajithrameshcr avatar Sep 26 '24 15:09 ajithrameshcr

My project is updated, and still got the issue

ahmedwaleed3378 avatar Sep 26 '24 15:09 ahmedwaleed3378

My project is updated, and still got the issue

Have you tried "flutter upgrade" ?

ajithrameshcr avatar Sep 26 '24 15:09 ajithrameshcr

if you are using rocket LMS mobile app and facing this issue you just need to add youtube_explode_dart: ^2.2.2 in your pubspec.yaml it will be worked

dheerajpal09 avatar Oct 08 '24 11:10 dheerajpal09

how to add : youtube_explode_dart: ^2.2.2

only add it in yaml in dependency is still work until now ?

mkamel44 avatar Oct 09 '24 12:10 mkamel44

youtube_explode_dart: ^2.3.0 use this version

dheerajpal09 avatar Oct 11 '24 08:10 dheerajpal09

You could give omni_video_player a try — supports YouTube, Vimeo, and more

leonardmatasel avatar Jun 18 '25 21:06 leonardmatasel