ponnamkarthik / FlutterYoutube

Flutter Plugin to play youtube Videos
Apache License 2.0
126 stars 56 forks source link

Embed config is not supported in RemoteEmbeddedPlayer #12

Open penjual opened 5 years ago

penjual commented 5 years ago

W/YouTubeAndroidPlayerAPI( 4924): Forcefully created overlay:adyo@42e9ecb0 helper:Lazy@42ea0408 view:null status: ....... {...} E/YouTubeAndroidPlayerAPI( 4924): Embed config is not supported in RemoteEmbeddedPlayer.

Physical Device

Video not playing.

bhavya27 commented 5 years ago

I'm facing the same issue.Do any one has solution for this.

rsavutiu commented 5 years ago

Maybe your project also targets AndroidTV? I saw something on SO about this

anonym24 commented 5 years ago

I think Embed config is not supported in RemoteEmbeddedPlayer error in Logcat has nothing to do with video playback

In my case this error in Logcat appears for each video I play but it still works ok, videos are played without any errors or crashes

If your video can't be played then I think it's a different issue and it's related with Embed config is not supported in RemoteEmbeddedPlayer

adam-hurwitz commented 5 years ago

Unfortunately, the video cannot be played. This is only on certain videos in the app and not all of them.

Errors

E/YouTubeAndroidPlayerAPI: Embed config is not supported in RemoteEmbeddedPlayer. E/YouTubeAndroidPlayerAPI: Failed to construct CronetEngine. Using fallback Java implementation. java.lang.IllegalStateException: Disk cache storage path already in use E/YouTubeAndroidPlayerAPI: Unhandled ErrorReason in onError

YouTube url: https://www.youtube.com/watch?v=YOM6hfDi0G8

screenshot_20190203-083824

anonym24 commented 5 years ago

@AdamSHurwitz ID?

anonym24 commented 5 years ago

Try to test a YouTube link with PotPlayer https://potplayer.daum.net/ (it's better to use Beta version http://t1.daumcdn.net/potplayer/beta/PotPlayerSetup.exe as it contains the latest YouTube parser)

Your video link can be private and not allowed to be playable by every public connection

adam-hurwitz commented 5 years ago

@anonym24 - Here is an example case showing the above error: https://www.youtube.com/watch?v=YOM6hfDi0G8

There are a few additional errors I included above that seem to be related.

adam-hurwitz commented 5 years ago

It turns out my issue was related to a change in how my app was processing the YouTube ids. After updating my Regular Expression the YouTubePlayer is working as expected with the proper YouTube video ids.