jaeger25 / Html5Video

A Phonegap plugin that allows playback of local video files using html 5 video tags
Apache License 2.0
99 stars 65 forks source link

phonegap version #1

Closed psenough closed 11 years ago

psenough commented 11 years ago

would be nice to know what version of phonegap this was originally for.

the code needs an update for phonegap 3.0 compliancy due to the plugin system deprecation/revamp. i'm testing this on 2.9 now and it doesnt seem to be working either.

psenough commented 11 years ago

seems the original version is 2.6.0, tried running it with that version, but still doesnt seem to work, returns runtime error, different from 2.9.0 error.

relevant log part:

D/Html5Video( 2717): Id: video1 , src: android.resource://fourshot.html5video/2131034112 D/Html5Video( 2717): Playing video with id: video1 E/http ( 2717): Null or empty value for header "Host" E/webcoreglue( 2717): *\ Uncaught exception returned from Java call! W/System.err( 2717): java.lang.RuntimeException: Null or empty value for header "Host" W/System.err( 2717): at android.net.http.Request.addHeader(Request.java:186) W/System.err( 2717): at android.net.http.Request.(Request.java:139) W/System.err( 2717): at android.net.http.RequestQueue.queueRequest(RequestQueue.java:399) W/System.err( 2717): at android.net.http.RequestQueue.queueRequest(RequestQueue.java:367) W/System.err( 2717): at android.webkit.HTML5VideoViewProxy$PosterDownloader.start(HTML5VideoViewProxy.java:369) W/System.err( 2717): at android.webkit.HTML5VideoViewProxy.loadPoster(HTML5VideoViewProxy.java:596) W/System.err( 2717): at android.webkit.JWebCoreJavaBridge.sharedTimerFired(Native Method) W/System.err( 2717): at android.webkit.JWebCoreJavaBridge.fireSharedTimer(JWebCoreJavaBridge.java:91) W/System.err( 2717): at android.webkit.JWebCoreJavaBridge.handleMessage(JWebCoreJavaBridge.java:108) W/System.err( 2717): at android.os.Handler.dispatchMessage(Handler.java:99) W/System.err( 2717): at android.os.Looper.loop(Looper.java:130) W/System.err( 2717): at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:645) W/System.err( 2717): at java.lang.Thread.run(Thread.java:1019) W/dalvikvm( 2717): threadid=9: thread exiting with uncaught exception (group=0x40018560)

jaeger25 commented 11 years ago

Project has been updated for Cordova 3.0

psenough commented 11 years ago

thanks for the 3.0 update. i think my previous errors were caused by testing under old android OS versions. will try to test the 3.0 with more recent versions sometime in the following weeks.