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

Unable to load a video #36

Closed nitishpatel closed 5 years ago

nitishpatel commented 5 years ago

LOGSD/EgretLoader( 7486): EgretLoader(Context context) D/EgretLoader( 7486): The context is not activity I/YoutubePlayerPlugin( 7486): Quality: 720p WEBM I/YoutubePlayerPlugin( 7486): Media Type: GENERAL E/ExoPlayerImplInternal( 7486): Source error. E/ExoPlayerImplInternal( 7486): com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 404 E/ExoPlayerImplInternal( 7486): at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:300) E/ExoPlayerImplInternal( 7486): at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:83) E/ExoPlayerImplInternal( 7486): at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:885) E/ExoPlayerImplInternal( 7486): at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:381) E/ExoPlayerImplInternal( 7486): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) E/ExoPlayerImplInternal( 7486): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) E/ExoPlayerImplInternal( 7486): at java.lang.Thread.run(Thread.java:764) I/zygote64( 7486): Do full code cache collection, code=250KB, data=179KB I/zygote64( 7486): After code cache collection, code=250KB, data=161KB Also This is the video link:https://www.youtube.com/watch?v=NHr6lTKYCNc This is video never runs

bkoruznjak commented 5 years ago

Getting the same error for every video I have tried so far.

Nexus 5x, Android 8.0.1 Flutter 1.5.4-hotfix.2

sarbagyastha commented 5 years ago

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