VideoPlayer icon indicating copy to clipboard operation
VideoPlayer copied to clipboard

Error - CordovaInterface.getThreadPool() or FBIOGET_FSCREENINFO?

Open aaronpeloquin opened this issue 11 years ago • 4 comments

I keep getting an error when my JS calls this plugin when I am not using "app.initialize();":

W/PluginManager(21255): THREAD WARNING: exec() call to VideoPlayer.playVideo blocked the main thread for 67ms. Plugin should use CordovaInterface.getThreadPool().

If I keep "app.initialize();" in my javascript, the video does not even attempt to play.

I noticed that when my app starts up, I get the error "FBIOGET_FSCREENINFO failed", which has something to do with the buffer, I think?

Did I implement this wrong, or is it broken in the new version of Phonegap?

aaronpeloquin avatar Dec 16 '13 16:12 aaronpeloquin

I've done some more digging around - inside of the plugin's java file, I noticed that "Context.MODE_WORLD_READABLE" is deprecated. Is that whats causing the buffer issues?

aaronpeloquin avatar Dec 16 '13 17:12 aaronpeloquin

Did you ever figure this one out? I'm getting this error in Android 4.4 only... 4.2 works fine :x

qbahamutp avatar Apr 09 '14 10:04 qbahamutp

I got the same problem,please help

huaixiaozi avatar May 15 '14 09:05 huaixiaozi

I ended up asking this on Stackoverflow: http://stackoverflow.com/questions/23266043/playing-local-in-app-mp4-files-in-a-html5-videoplayer-in-a-cordova-phonegap-app. Apparently the only (known) way to work around this is to copy the video file to the SD card and play it from there.

More feedback here: https://github.com/jaeger25/Html5Video/issues/18#issuecomment-38365443

qbahamutp avatar May 15 '14 09:05 qbahamutp