sarbagyastha / youtube_player

A flutter plugin to play Youtube Videos without API Key in range of Quality(144p, 240p,360p,480p,720p and 1080p).
MIT License
120 stars 45 forks source link

Source error for ExoPlayerImplInternal #42

Open NhaPCS opened 5 years ago

NhaPCS commented 5 years ago

I got the error when running some video like the following:

E/ExoPlayerImplInternal(22950): Source error. E/ExoPlayerImplInternal(22950): com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 404 E/ExoPlayerImplInternal(22950): at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:300) E/ExoPlayerImplInternal(22950): at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:83) E/ExoPlayerImplInternal(22950): at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:885) E/ExoPlayerImplInternal(22950): at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:381) E/ExoPlayerImplInternal(22950): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) E/ExoPlayerImplInternal(22950): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) E/ExoPlayerImplInternal(22950): at java.lang.Thread.run(Thread.java:776)

Am I missing something? Please help me!

sarbagyastha commented 5 years ago

Could you provide me the videoId?

NhaPCS commented 5 years ago

It is Opoa-uxW7MQ Please check!

sarbagyastha commented 5 years ago

The plugin doesn't support some protected videos. It's kind of a limitation.

SayaGames commented 5 years ago

is there any method to catch the error ? (Your onError method can't catch the such error)

daengweb commented 5 years ago

I got some problems when isLive set to true. do you have solutions for these issues?

valterh4ck3r commented 5 years ago

Same problem

valterh4ck3r commented 5 years ago

Could you provide me the videoId?

https://www.youtube.com/watch?v=JpgkVvePY2w

Example above.

baptisteArno commented 4 years ago

is there any method to catch the error ? (Your onError method can't catch the such error)

I'm looking for this too! Did you manage to do something about that?