sarbagyastha/youtube_player

Source error for ExoPlayerImplInternal

NhaPCS opened this issue · 8 comments

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!

Could you provide me the videoId?

It is Opoa-uxW7MQ
Please check!

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

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

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

Same problem

Could you provide me the videoId?

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

Example above.

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?