ja2375 / FluTube

A Flutter plugin to facilitate embedding Youtube videos inside mobile apps.
MIT License
34 stars 17 forks source link

Video Doesnt Play Only the Example Ones play properply #10

Closed nitishpatel closed 5 years ago

nitishpatel commented 5 years ago

flutter_02

ja2375 commented 5 years ago

Sorry to hear :( Which video are you trying to play? Does it throw any exception?

nitishpatel commented 5 years ago

yes! Video url:https://www.youtube.com/watch?v=NHr6lTKYCNc&t=20s

ja2375 commented 5 years ago

Can you paste the exception stack trace here?

nitishpatel commented 5 years ago
An Observatory debugger and profiler on Redmi Note 5 is available at: http://127.0.0.1:61559/i9qIX6Tkz6c=/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".

I/ExoPlayerImpl(25890): Init cc2f390 [ExoPlayerLib/2.9.6] [vince, Redmi Note 5, Xiaomi, 27]
D/NetworkSecurityConfig(25890): No Network Security Config specified, using platform default
W/zygote64(25890): miui_dex2oat: oat file of /system/framework/tcmclient.jar is not exists
W/zygote64(25890): miui_dex2oat: /system/framework/tcmclient.jar: Fall back to running out of the original dex file.
I/DpmTcmClient(25890): RegisterTcmMonitor from: com.android.okhttp.TcmIdleTimerMonitor
I/DpmTcmClient(25890): RegisterTcmMonitor from: com.android.okhttp.TcmIdleTimerMonitor
E/ExoPlayerImplInternal(25890): Source error.
E/ExoPlayerImplInternal(25890): com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403
E/ExoPlayerImplInternal(25890):         at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:300)
E/ExoPlayerImplInternal(25890):         at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:83)
E/ExoPlayerImplInternal(25890):         at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:885)
E/ExoPlayerImplInternal(25890):         at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:381)
E/ExoPlayerImplInternal(25890):         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
E/ExoPlayerImplInternal(25890):         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
E/ExoPlayerImplInternal(25890):         at java.lang.Thread.run(Thread.java:764)
ja2375 commented 5 years ago

Please update to 0.8.0 and see if this gets fixed for you. If not, please reopen the issue.