Open tuanvhuynh opened 7 years ago
The same here. I forked the project and it doesn't works.
Me too.
Me too....
12-22 16:52:53.483 11993-11993/com.ionicframework.iwtk464868 E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
12-22 16:52:53.483 11993-11993/com.ionicframework.iwtk464868 E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
12-22 16:52:53.485 11993-11993/com.ionicframework.iwtk464868 W/MediaPlayer: Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: http%3A%2F%2Fr5---sn-i3beln7k.googlevideo.com%2Fvideoplayback%3Flmt%3D1481949086358337%26itag%3D18%26ip%3D202.126.213.158%26nh%3DIgpwcjA0LmhrZzAxKgkxMjcuMC4wLjE%26pl%3D21%26source%3Dyoutube%26dur%3D167.137%26key%3Dyt6%26id%3Do-AFcOmdTCczWCrRg0zjYVodBC8NqSTkA4kz_YKJqHTAmH%26mn%3Dsn-i3beln7k%26mm%3D31%26mime%3Dvideo%252Fmp4%26upn%3DU4uTASCWTrs%26signature%3D4F33CE002FB8D8423E26833CD302985EEE14F4F4.346A08B5D8DC23508DB88A04DA1C7CF43860C651%26expire%3D1482418373%26initcwndbps%3D2270000%26mv%3Dm%26mt%3D1482396432%26ms%3Dau%26sparams%3Ddur%252Cid%252Cinitcwndbps%252Cip%252Cipbits%252Citag%252Clmt%252Cmime%252Cmm%252Cmn%252Cms%252Cmv%252Cnh%252Cpl%252Cratebypass%252Csource%252Cupn%252Cexpire%26ratebypass%3Dyes%26ipbits%3D0&signature=null
12-22 16:52:53.487 11993-11993/com.ionicframework.iwtk464868 W/VideoView: Unable to open content: http%3A%2F%2Fr5---sn-i3beln7k.googlevideo.com%2Fvideoplayback%3Flmt%3D1481949086358337%26itag%3D18%26ip%3D202.126.213.158%26nh%3DIgpwcjA0LmhrZzAxKgkxMjcuMC4wLjE%26pl%3D21%26source%3Dyoutube%26dur%3D167.137%26key%3Dyt6%26id%3Do-AFcOmdTCczWCrRg0zjYVodBC8NqSTkA4kz_YKJqHTAmH%26mn%3Dsn-i3beln7k%26mm%3D31%26mime%3Dvideo%252Fmp4%26upn%3DU4uTASCWTrs%26signature%3D4F33CE002FB8D8423E26833CD302985EEE14F4F4.346A08B5D8DC23508DB88A04DA1C7CF43860C651%26expire%3D1482418373%26initcwndbps%3D2270000%26mv%3Dm%26mt%3D1482396432%26ms%3Dau%26sparams%3Ddur%252Cid%252Cinitcwndbps%252Cip%252Cipbits%252Citag%252Clmt%252Cmime%252Cmm%252Cmn%252Cms%252Cmv%252Cnh%252Cpl%252Cratebypass%252Csource%252Cupn%252Cexpire%26ratebypass%3Dyes%26ipbits%3D0&signature=null
java.io.IOException: setDataSource failed.
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1095)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1069)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1023)
at android.widget.VideoView.openVideo(VideoView.java:346)
at android.widget.VideoView.setVideoURI(VideoView.java:256)
at android.widget.VideoView.setVideoURI(VideoView.java:239)
at com.keyes.youtube.OpenYouTubePlayerActivity$QueryYouTubeTask.onPostExecute(OpenYouTubePlayerActivity.java:421)
at com.keyes.youtube.OpenYouTubePlayerActivity$QueryYouTubeTask.onPostExecute(OpenYouTubePlayerActivity.java:1)
at android.os.AsyncTask.finish(AsyncTask.java:651)
at android.os.AsyncTask.-wrap1(AsyncTask.java)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5461)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
This plugin is still not working. The issue is still opened.
Did anyone find a solution?
This fork is working: https://github.com/denisx304/CordovaYoutubeVideoPlayer
please help....
I create a "Play Youtube" App with PhoneGap(version 6.3.0) , Cordova (version 6.3.1) , simple load a youtube video by ID. use Cordova YoutubeVideoPlayer plugin, but not working, Why? test on android OS version 6.0. Thanks in advance.
add to config.xml:
<plugin name="com.bunkerpalace.cordova.youtubevideoplayer" spec="1.0.1" source="pgb" />
Load youtube video when device ready in index.jsYoutubeVideoPlayer.openVideo('1s96mq8kfzY');
using build.phonegap.com to build project, but when run has an error:
An error occurred during the retrieval of the video. This could be due to network issue of YouTube protocols. Please try again later.
index.js
index.html
config.xml