Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E/MediaPlayer(11774): Error (1,-2147483648) #11

Closed
qbahamutp opened this issue Dec 10, 2013 · 15 comments
Closed

E/MediaPlayer(11774): Error (1,-2147483648) #11

qbahamutp opened this issue Dec 10, 2013 · 15 comments

Comments

@qbahamutp
Copy link

I'm so close to getting this thing to work, but for some reason I can't get past this last error message... Upon booting the app from Eclipse, the only error messages I'm receiving is this one:

12-10 16:45:23.222: E/MediaPlayer(11774): Error (1,-2147483648)

Did I forget to set any permissions or something? I'm running Cordova 3.1.0, and testing on a HTC Desire (Android 2.3.7, CyanogenMod 7) and a virtual Nexus 7.

I'm pretty sure hardwareAcceleration is working, and I even enabled all the media permissions I could find but those only seem to relate to Audio. My AndroidManifest.xml looks like this:

<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" android:windowSoftInputMode="adjustPan" package="com.cleanvideo.app" xmlns:android="http://schemas.android.com/apk/res/android">
    <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
    <uses-permission android:name="android.permission.INTERNET" />
    <application android:debuggable="true" android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:name="CleanVideoTest" android:theme="@android:style/Theme.Black.NoTitleBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</manifest>

Please, please help me. I literally spent my entire day trying to get this working and would hate to give up now.

@jaeger25
Copy link
Owner

I will have time after work today to take a look at this, although I don't have any Android < 4.0 devices to test with at the moment. I'm pretty sure I have ran into that error before and overcome it though so hopefully we can get it figured out

@jaeger25
Copy link
Owner

Can you try the newest version of the plugin and let me know if you still have the problem?

@qbahamutp
Copy link
Author

Thanks so much for your feedback. I really appreciate you sharing this software, and supporting it like this even more so. Thank you, Jaeger.

[[[mundane update note]]]
I tried removing and re-adding the updated plugin from the terminal, but it wouldn't let me:

$ cordova plugin remove jaeger.Html5Video
Uninstalling 1 dangling dependent plugins.
{ [Error: ENOENT, no such file or directory '/Users/trendesign/Documents/TrendApps/mad/cleanvideo/plugins/com.plugin.id/plugin.xml']
  errno: 34,
  code: 'ENOENT',
  path: '/Users/trendesign/Documents/TrendApps/mad/cleanvideo/plugins/com.plugin.id/plugin.xml',
  syscall: 'open' } 

So I removed the plugin folder manually, and then re-added the plugin again from the console. I'm assuming this wouldn't cause any follow-up issues.
[[[/mundane update note]]]

The same error still persists, but share a little more detail; I'm getting quite a few Warning-level log-messages, some of which are referring to the Webview method. Do you think I maybe need to make any of the WebView preparations mentioned here, in order for this to work on Cordova 3.2? (I updated to the latest version in hopes of minimal issues) Here are the errors:

12-11 11:35:11.928: I/Web Console(1248): Received Event: deviceready at file:///android_asset/www/js/index.js:50
12-11 11:35:11.928: I/Web Console(1248): V-I-D-E-O INITIALIZED at file:///android_asset/www/js/index.js:39
12-11 11:35:11.969: D/(1248): HostConnection::get() New Host Connection established 0x2a233528, tid 1272
12-11 11:35:20.548: W/webview_proxy(1248): java.lang.Throwable: Warning: A WebView method was called on thread 'WebViewCoreThread'. All WebView methods must be called on the UI thread. Future versions of WebView may not support use on other threads.
12-11 11:35:20.548: W/webview_proxy(1248):  at android.webkit.WebView.checkThread(WebView.java:1876)
12-11 11:35:20.548: W/webview_proxy(1248):  at android.webkit.WebView.loadUrl(WebView.java:783)
12-11 11:35:20.548: W/webview_proxy(1248):  at org.apache.cordova.CordovaWebView.loadUrlNow(CordovaWebView.java:483)
12-11 11:35:20.548: W/webview_proxy(1248):  at org.apache.cordova.CordovaWebView.loadUrl(CordovaWebView.java:380)
12-11 11:35:20.548: W/webview_proxy(1248):  at org.apache.cordova.plugin.Html5Video.execute(Html5Video.java:40)
12-11 11:35:20.548: W/webview_proxy(1248):  at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:65)
12-11 11:35:20.548: W/webview_proxy(1248):  at org.apache.cordova.PluginManager.execHelper(PluginManager.java:231)
12-11 11:35:20.548: W/webview_proxy(1248):  at org.apache.cordova.PluginManager.exec(PluginManager.java:216)
12-11 11:35:20.548: W/webview_proxy(1248):  at org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:53)
12-11 11:35:20.548: W/webview_proxy(1248):  at android.webkit.WebViewCore.nativeMouseClick(Native Method)
12-11 11:35:20.548: W/webview_proxy(1248):  at android.webkit.WebViewCore.nativeMouseClick(Native Method)
12-11 11:35:20.548: W/webview_proxy(1248):  at android.webkit.WebViewCore.access$6800(WebViewCore.java:57)
12-11 11:35:20.548: W/webview_proxy(1248):  at android.webkit.WebViewCore$EventHub.dispatchWebKitEvent(WebViewCore.java:1788)
12-11 11:35:20.548: W/webview_proxy(1248):  at android.webkit.WebViewInputDispatcher.dispatchWebKitEvent(WebViewInputDispatcher.java:689)
12-11 11:35:20.548: W/webview_proxy(1248):  at android.webkit.WebViewInputDispatcher.dispatchWebKitEvents(WebViewInputDispatcher.java:639)
12-11 11:35:20.548: W/webview_proxy(1248):  at android.webkit.WebViewInputDispatcher.access$800(WebViewInputDispatcher.java:78)
12-11 11:35:20.548: W/webview_proxy(1248):  at android.webkit.WebViewInputDispatcher$WebKitHandler.handleMessage(WebViewInputDispatcher.java:1153)
12-11 11:35:20.548: W/webview_proxy(1248):  at android.os.Handler.dispatchMessage(Handler.java:99)
12-11 11:35:20.548: W/webview_proxy(1248):  at android.os.Looper.loop(Looper.java:137)
12-11 11:35:20.548: W/webview_proxy(1248):  at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:812)
12-11 11:35:20.548: W/webview_proxy(1248):  at java.lang.Thread.run(Thread.java:856)
12-11 11:35:20.638: W/PluginManager(1248): THREAD WARNING: exec() call to Html5Video.play blocked the main thread for 146ms. Plugin should use CordovaInterface.getThreadPool().
12-11 11:35:20.798: D/MediaPlayer(1248): Couldn't open file on client side, trying server side
12-11 11:35:20.828: E/MediaPlayer(1248): error (1, -2147483648)
12-11 11:35:20.838: E/MediaPlayer(1248): Error (1,-2147483648)
12-11 11:35:20.888: D/VideoLayerManager(1248): Reinit GLResource for VideoLayer
12-11 11:35:20.948: D/CordovaWebView(1248): Hidding Custom View

The strange thing is: on the emulated virtual tablet (Android 4.2.2, API 17), I get the same MediaPlayer error, BUT it still triggers the "play"-method's callback, implying that it IS working correctly. My own Android just says "Sorry, could not be played." I don't need to get it working on my old phone, but I don't never trust virtual/emulated devices 100% either, so...

What do you think? Any idea's?

@qbahamutp
Copy link
Author

Okay, interesting update: upon switching to the webm-file of the same video and adding a poster image (that does show up), I now get a whole bunch of extra errors:

Upon triggering play, the emulated Android 4 tablet clears the poster image, switches to a grey background with the loader in the center of the

12-11 13:35:23.664: E/GLUtils(1001): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502)
12-11 13:35:23.664: E/TransferQueue(1001): blitTileFromQueue ERROR: fboId 1, destTexId 6, srcTexId 3, textureWidth 256, textureHeight 256
12-11 13:35:23.824: E/GLUtils(1001): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502)
12-11 13:35:23.824: E/TransferQueue(1001): blitTileFromQueue ERROR: fboId 1, destTexId 15, srcTexId 3, textureWidth 256, textureHeight 256
12-11 13:35:23.844: E/GLUtils(1001): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502)
12-11 13:35:23.844: E/TransferQueue(1001): blitTileFromQueue ERROR: fboId 1, destTexId 17, srcTexId 3, textureWidth 256, textureHeight 256
12-11 13:35:23.864: E/GLUtils(1001): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502)
12-11 13:35:23.864: E/TransferQueue(1001): blitTileFromQueue ERROR: fboId 1, destTexId 18, srcTexId 3, textureWidth 256, textureHeight 256
12-11 13:35:23.884: I/Web Console(1001): Received Event: deviceready at file:///android_asset/www/js/index.js:50
12-11 13:35:23.884: I/Web Console(1001): V-I-D-E-O INITIALIZED at file:///android_asset/www/js/index.js:39
12-11 13:35:23.994: E/GLUtils(1001): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502)
12-11 13:35:23.994: E/TransferQueue(1001): blitTileFromQueue ERROR: fboId 1, destTexId 19, srcTexId 3, textureWidth 256, textureHeight 256
12-11 13:35:24.046: E/GLUtils(1001): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502)
12-11 13:35:24.046: E/TransferQueue(1001): blitTileFromQueue ERROR: fboId 1, destTexId 20, srcTexId 3, textureWidth 256, textureHeight 256
12-11 13:35:24.106: E/GLUtils(1001): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502)
12-11 13:35:24.134: E/GLUtils(1001): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502)
12-11 13:35:24.134: E/TransferQueue(1001): blitTileFromQueue ERROR: fboId 1, destTexId 22, srcTexId 3, textureWidth 256, textureHeight 256
12-11 13:35:24.189: E/GLUtils(1001): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502)
12-11 13:35:24.193: E/TransferQueue(1001): blitTileFromQueue ERROR: fboId 1, destTexId 24, srcTexId 3, textureWidth 256, textureHeight 256
12-11 13:35:24.204: E/GLUtils(1001): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502)
12-11 13:35:24.214: E/TransferQueue(1001): blitTileFromQueue ERROR: fboId 1, destTexId 25, srcTexId 3, textureWidth 256, textureHeight 256
12-11 13:35:24.284: E/GLUtils(1001): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502)
12-11 13:35:24.295: E/TransferQueue(1001): blitTileFromQueue ERROR: fboId 1, destTexId 26, srcTexId 3, textureWidth 256, textureHeight 256
12-11 13:35:24.334: E/GLUtils(1001): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502)
12-11 13:35:24.334: E/TransferQueue(1001): blitTileFromQueue ERROR: fboId 1, destTexId 27, srcTexId 3, textureWidth 256, textureHeight 256
12-11 13:35:24.384: E/GLUtils(1001): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502)
12-11 13:35:24.394: E/TransferQueue(1001): blitTileFromQueue ERROR: fboId 1, destTexId 28, srcTexId 3, textureWidth 256, textureHeight 256

...And on my phone it just straight crashes as soon as I trigger 'play', with a completely different set of errors:

12-11 14:52:24.066: I/Web Console(16869): Received Event: deviceready at :1154386101
12-11 14:52:24.066: I/Web Console(16869): V-I-D-E-O INITIALIZED at :1154386137
12-11 14:52:30.602: E/http(16869): Null or empty value for header "Host"
12-11 14:52:30.602: E/webcoreglue(16869): *** Uncaught exception returned from Java call!
12-11 14:52:30.602: W/System.err(16869): java.lang.RuntimeException: Null or empty value for header "Host"
12-11 14:52:30.602: W/System.err(16869):    at android.net.http.Request.addHeader(Request.java:186)
12-11 14:52:30.602: W/System.err(16869):    at android.net.http.Request.<init>(Request.java:139)
12-11 14:52:30.602: W/System.err(16869):    at android.net.http.RequestQueue.queueRequest(RequestQueue.java:399)
12-11 14:52:30.602: W/System.err(16869):    at android.net.http.RequestQueue.queueRequest(RequestQueue.java:367)
12-11 14:52:30.602: W/System.err(16869):    at android.webkit.HTML5VideoViewProxy$PosterDownloader.start(HTML5VideoViewProxy.java:369)
12-11 14:52:30.602: W/System.err(16869):    at android.webkit.HTML5VideoViewProxy.loadPoster(HTML5VideoViewProxy.java:596)
12-11 14:52:30.602: W/System.err(16869):    at android.webkit.JWebCoreJavaBridge.sharedTimerFired(Native Method)
12-11 14:52:30.602: W/System.err(16869):    at android.webkit.JWebCoreJavaBridge.fireSharedTimer(JWebCoreJavaBridge.java:91)
12-11 14:52:30.602: W/System.err(16869):    at android.webkit.JWebCoreJavaBridge.handleMessage(JWebCoreJavaBridge.java:108)
12-11 14:52:30.602: W/System.err(16869):    at android.os.Handler.dispatchMessage(Handler.java:99)
12-11 14:52:30.602: W/System.err(16869):    at android.os.Looper.loop(Looper.java:130)
12-11 14:52:30.602: W/System.err(16869):    at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:645)
12-11 14:52:30.602: W/System.err(16869):    at java.lang.Thread.run(Thread.java:1019)
12-11 14:52:30.602: W/dalvikvm(16869): threadid=9: thread exiting with uncaught exception (group=0x40179560)
12-11 14:52:30.612: E/AndroidRuntime(16869): FATAL EXCEPTION: WebViewCoreThread
12-11 14:52:30.612: E/AndroidRuntime(16869): java.lang.RuntimeException: Null or empty value for header "Host"
12-11 14:52:30.612: E/AndroidRuntime(16869):    at android.net.http.Request.addHeader(Request.java:186)
12-11 14:52:30.612: E/AndroidRuntime(16869):    at android.net.http.Request.<init>(Request.java:139)
12-11 14:52:30.612: E/AndroidRuntime(16869):    at android.net.http.RequestQueue.queueRequest(RequestQueue.java:399)
12-11 14:52:30.612: E/AndroidRuntime(16869):    at android.net.http.RequestQueue.queueRequest(RequestQueue.java:367)
12-11 14:52:30.612: E/AndroidRuntime(16869):    at android.webkit.HTML5VideoViewProxy$PosterDownloader.start(HTML5VideoViewProxy.java:369)
12-11 14:52:30.612: E/AndroidRuntime(16869):    at android.webkit.HTML5VideoViewProxy.loadPoster(HTML5VideoViewProxy.java:596)
12-11 14:52:30.612: E/AndroidRuntime(16869):    at android.webkit.JWebCoreJavaBridge.sharedTimerFired(Native Method)
12-11 14:52:30.612: E/AndroidRuntime(16869):    at android.webkit.JWebCoreJavaBridge.fireSharedTimer(JWebCoreJavaBridge.java:91)
12-11 14:52:30.612: E/AndroidRuntime(16869):    at android.webkit.JWebCoreJavaBridge.handleMessage(JWebCoreJavaBridge.java:108)
12-11 14:52:30.612: E/AndroidRuntime(16869):    at android.os.Handler.dispatchMessage(Handler.java:99)
12-11 14:52:30.612: E/AndroidRuntime(16869):    at android.os.Looper.loop(Looper.java:130)
12-11 14:52:30.612: E/AndroidRuntime(16869):    at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:645)
12-11 14:52:30.612: E/AndroidRuntime(16869):    at java.lang.Thread.run(Thread.java:1019)

...I have completely lost understanding of what the hell is going on, at this point. Android 4 just gives a bunch of (Open?-) GL Errors, and Android 2 loses its shit after it loses its Host header. And all this difference after setting a poster image?!

@jaeger25
Copy link
Owner

In your cordova plugins folder, can you remove the following folders:

com.plugin.id
org.apache.cordova.device (might not be the exact right name, but it's something like that)
jaeger.html5video

then run the following commands:
cordova remove platform android
cordova plugin add https://github.com/jaeger25/html5video.git
cordova platform add android

Then can you switch back to .mp4 format and verify your line 40 looks like this in Html5Video.java :
cordova.getActivity().runOnUiThread(new Runnable() {
public void run() {
webView.loadUrl("javascript:window.plugins.html5Video._play(" + videoId + ")");
}
});

It kind of looks like you are in some limbo state from updating, because I fixed the A WebView method was called on thread 'WebViewCoreThread' during the last update

@qbahamutp
Copy link
Author

Thanks so much for those pointers. Using your feedback (and updating ADT and the SDK's) I was even able to remove and add the plugins through the terminal in the traditional way. Wanted to make sure that worked , because even after re-adding the Html5Video-plugin files succesfully, the terminal still mentioned that the plugin was already installed.

...But it STILL doesn't work!? 😞

My old raggedy Android still gives the same Null or empty value for "Host"-error, which in turn crashes WebViewCoreThread with a fatal exception. With a little more debug messages than before. I'm already taking this for granted. Fuck Android 2.

On the emulated Android 4 tablet, the logs have completely changed, though:

12-12 05:37:39.554: W/PluginManager(991): THREAD WARNING: exec() call to App.show blocked the main thread for 24ms. Plugin should use CordovaInterface.getThreadPool().
12-12 05:37:39.714: D/Html5Video(991): Id: videoplayer , src: android.resource://com.cleanvideo.app/0
12-12 05:37:39.724: W/PluginManager(991): THREAD WARNING: exec() call to Html5Video.initialize blocked the main thread for 23ms. Plugin should use CordovaInterface.getThreadPool().
12-12 05:37:40.434: D/TilesManager(991): Starting TG #0, 0x2a2eca18
12-12 05:37:40.434: D/TilesManager(991): new EGLContext from framework: 2a23d998 
12-12 05:37:40.444: D/GLWebViewState(991): Reinit shader
12-12 05:37:40.554: D/GLWebViewState(991): Reinit transferQueue
12-12 05:37:40.704: D/CordovaLog(991): file:///android_asset/www/js/index.js: Line 50 : Received Event: deviceready
12-12 05:37:40.724: I/Web Console(991): Received Event: deviceready at file:///android_asset/www/js/index.js:50
12-12 05:37:40.801: D/CordovaLog(991): file:///android_asset/www/js/index.js: Line 39 : V-I-D-E-O INITIALIZED
12-12 05:37:40.834: I/Web Console(991): V-I-D-E-O INITIALIZED at file:///android_asset/www/js/index.js:39
12-12 05:37:40.933: D/(991): HostConnection::get() New Host Connection established 0x2a284058, tid 1073
12-12 05:37:41.484: D/CordovaActivity(991): onMessage(spinner,stop)
12-12 05:38:45.844: D/Html5Video(991): Playing video with id: videoplayer
12-12 05:38:46.244: D/MediaPlayer(991): Couldn't open file on client side, trying server side
12-12 05:38:46.304: E/MediaPlayer(991): error (1, -2147483648)
12-12 05:38:46.345: E/MediaPlayer(991): Error (1,-2147483648)
12-12 05:38:46.445: D/VideoLayerManager(991): Reinit GLResource for VideoLayer
12-12 05:38:46.574: D/CordovaWebView(991): Hidding Custom View

...What's interesting, is that I almost get the same messages WITHOUT using the plugin and just trying to use the native video-element instead. This exact demo works just fine when brought up in the browser (even on my Android2-phone), but it trips over the very same error when encapsulated within Phonegap..! (While it DOES work just fine on iOS!?)

12-12 05:49:14.237: D/(1444): HostConnection::get() New Host Connection established 0x2a1b9728, tid 1444
12-12 05:49:14.237: D/libEGL(1444): loaded /system/lib/egl/libGLESv1_CM_emulation.so
12-12 05:49:14.280: D/libEGL(1444): loaded /system/lib/egl/libGLESv2_emulation.so
12-12 05:49:14.414: W/EGL_emulation(1444): eglSurfaceAttrib not implemented
12-12 05:49:14.424: D/OpenGLRenderer(1444): Enabling debug mode 0
12-12 05:49:14.674: D/CordovaActivity(1444): onMessage(onPageStarted,file:///android_asset/www/index.html)
12-12 05:49:14.693: D/SoftKeyboardDetect(1444): Ignore this event
12-12 05:49:15.254: D/CordovaWebViewClient(1444): onPageFinished(file:///android_asset/www/index.html)
12-12 05:49:15.254: D/CordovaActivity(1444): onMessage(onPageFinished,file:///android_asset/www/index.html)
12-12 05:49:15.254: E/cutils-trace(1444): Error opening trace file: No such file or directory (2)
12-12 05:49:17.264: D/CordovaActivity(1444): onMessage(spinner,stop)
12-12 05:49:17.294: D/TilesManager(1444): Starting TG #0, 0x2a2cf610
12-12 05:49:17.304: D/TilesManager(1444): new EGLContext from framework: 2a1b9b90 
12-12 05:49:17.304: D/GLWebViewState(1444): Reinit shader
12-12 05:49:17.354: D/GLWebViewState(1444): Reinit transferQueue
12-12 05:49:17.542: D/(1444): HostConnection::get() New Host Connection established 0x2a0efda8, tid 1471
12-12 05:49:22.814: E/MediaPlayer(1444): error (1, -2147483648)
12-12 05:49:22.854: E/MediaPlayer(1444): Error (1,-2147483648)
12-12 05:49:22.914: D/VideoLayerManager(1444): Reinit GLResource for VideoLayer
12-12 05:49:22.974: D/CordovaWebView(1444): Hidding Custom View
12-12 05:50:56.624: D/CordovaWebView(1444): The current URL is: file:///android_asset/www/index.html

I'm reading some conflicting stories about Phonegap's html5 video support: some people say that the last Cordova versions support the video element just fine, while others 'suggest' that it doesn't. What's your take on this? The fact that the native html5 element didn't work at first, seemed enough of an answer. That's how I found this fantastic plugin. But if this plugin runs into the very same errors than the native html5 solution... I don't know where to look anymore :/

@qbahamutp
Copy link
Author

Simple, short question: has this plugin ever worked with Cordova 3? Because it was made for Phonegap 2, wasn't it? I'm at a point where I'm even willing to go back to Phonegap 2 if that's what it takes.

Why is it so hard to play a damn video on Android :/

@jaeger25
Copy link
Owner

This plugin is working on cordova 3.2 and probably won't work on versions lower than 3 anymore without modification. What version of Android are you using for the emulator? From another bug report it looks like Android 4.4 may have broken it and I plan on looking into that and your issue this weekend.

@qbahamutp
Copy link
Author

Oh, you're from Washington? And working for Microsoft? I'm impressed :) Did you ever get around to this thing, this weekend? I'd understand if you kept the weekend for yourself. I'm from the Netherlands and we actually had a few couchsurfers staying at our place from Chicago. Good folks.

Anyway; a little more feedback: I've been messing around with the native HTML5 video element for quite a bit, this weekend, and what's weird... It works as soon as I refer to the mp4/mv4 source from a remote URL, and even from an absolute path to the sdcard, but not from within the app itself. (WTF?) I've tried relative and absolute path referrals, but to no avail.

As for my test environment: the emulator I've been using was on Android 4.2.2, and after I updated everything I've also set up an emulator with "Google APIs" Android 4.4. I'm temporarily borrowing a physical tablet right now which is running 4.2.2 as well, but the logs appear identical to the emulated version.

@qbahamutp
Copy link
Author

This has GOT to be the issue: file permissions?! http://www.weston-fl.com/blog/?p=2988
I'm only 70% sure, since I'm not allowed to enter the /data/-directory in Eclipse's DDMS-window mentioned in the article.

I went through the java-code in your plugin and couldn't find any permission-checks of this kind in your code. I'm not enough of a java-nut to be able to build this in myself...

I hope you'll confirm my suspicions?

@jaeger25
Copy link
Owner

I looked at the issue this weekend for a bit, but I'm having issues reproducing your exact problem. Would you be able upload a minimal project that reproduces this issue? I've ran into the issue of an absolute path working while a relative path doesn't before, it seems google figures people wouldn't want to package video with their app? Who knows

@qbahamutp
Copy link
Author

I've set up a basic repo right here. I can also add the android platform, if it's of any use.

@qbahamutp
Copy link
Author

Any luck at reproducing this yet
.?

@jaeger25
Copy link
Owner

Sorry it took me so long to look at this, I've been busy at work finishing end of year stuff. Looks like your issue is that your putting your videos in www/res/raw when you should be putting them in $PROJECT_ROOT/platforms/android/res/raw.

@Ashish2000L
Copy link

I am using http url for playing music but it still shows the same error.
MediaPlayer: error (1, -2147483648)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants