Android Mediaplayer gives error while it is trying to play mp4 file which is recorded by LIVE555 QuickPlayerFilesink - android-mediaplayer

I am facing below error on Android Kitkat when I am trying to play recorded video which is recorded by LIVE555.
Following is my source code to play video on App:
player = new MediaPlayer();
player.setDataSource(filePath); <------ getting error here
player.setDisplay(holder);
player.setOnCompletionListener(this);
player.setOnPreparedListener(this);
player.setOnErrorListener(this);
player.setScreenOnWhilePlaying(true);
log.debug("prepare async called");
player.prepareAsync();
Error log is given below:
07-28 04:59:17.942 E/MediaPlayerService( 2242): error: -2147483648
07-28 04:59:17.942 E/MediaPlayer( 4072): Unable to create media player
07-28 04:59:17.942 W/RecordingActivity*( 4072): Failed to set file: setDataSourceFD failed.: status=0x80000000
Here Please note that: Same Android and Live555 source code is working on Android Gingerbread.

Related

Getting error regarding ink node module package

ERROR Raw mode is not supported on the current process.stdin, which Ink uses
as input stream by default.
Read about how to prevent this error on
https://github.com/vadimdemedes/ink/#israwmodesupported
- Read about how to prevent this error on
https://github.com/vadimdemedes/ink/#israwmodesupported
-App.handleSetRaw (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/n
ode ode_modules/ink/build/components/App.js:56:27)
- (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/node_modules/ink/
build/hooks/use-input.js:38:9)
-invokePassiveEffect (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53
reate d/node_modules/react-reconciler/cjs/react-reconciler.devel
opment.js:16054:20)
-Object.invokeGuardedCa (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9
lbackProd c53d/node_modules/react-reconciler/cjs/react-reconciler
.development.js:12101:10)
-invokeGuardedCal (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/n
back ode_modules/react-reconciler/cjs/react-reconciler.development
.js:12292:31)
-flushPassiveEffec (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/
sImpl node_modules/react-reconciler/cjs/react-reconciler.developme
nt.js:16141:9)
-unstable_runWithPr
iority (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/
node_modules/scheduler/cjs/scheduler.development.js:468:12)
-runWithPrior (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/node_
ty modules/react-reconciler/cjs/react-reconciler.development.js:2495
:10)
-flushPassiveEff (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/no
cts de_modules/react-reconciler/cjs/react-reconciler.development.j
s:16014:14)
- (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/node_modules/reac
t-reconciler/cjs/react-reconciler.development.js:15891:11)
Getting the above error whenever tried to run the below command:
npm init #shopify/app#latest
I've updated the node and react as well as the Ink module package.
I've gone through the mentioned link https://github.com/vadimdemedes/ink/#israwmodesupported
Any help would be appreciated

Getting file upload error in dojo iframe - doc.getElementsByTagName('textarea')[0].value undefined error

Getting file upload error in dojo iframe - doc.getElementsByTagName('textarea')[0].value undefined error. File upload is failing intermittently when dojo(1.11.2 version) handleResponse() method is called before the response comes from the remote server .
Below is the error message i am getting
Error: HTML Upload Error:Cannot read property 'value' of undefined at
Object._error
(/public/prod/dojo-1.11.2/dojox/form/FileUploader.js:18:56) at
Object.d (:244:264) at Object._error
(/public/prod/revolution-3.8.5/revit/form/FileUploader.js:12:300) at
Object.eval
(/public/prod/dojo-1.11.2/dojox/form/FileUploader.js:23:457) at
Object.error (:44:382) at :149:461 at g
(:163:21) at h (:162:331) at
h.Deferred.reject.errback (:164:304) at g
(:163:293) Message
I spent lot of hours in resolving this issue.But some how it is not getting resolved.Can anyone help me .

using ObjectAL with spritekit causes SKAction sounds not to be found?

I'm trying to use both ObjectAL and native SKAction in my spritekit project.
I've got it working, but when i run this code,
OALSimpleAudio.sharedInstance().playBg("shipengine.wav", loop:true)
it gives me an error saying 'Resource powershotbeep.wav can not be loaded' this is a file I use with SKAction somewhere else in the project. any idea why this would be happening?
if i stop loading those actions, then my shipengine sound will play just fine
i've tried this with objective-c as well.. i get this error
2014-09-06 13:18:23.790 testsound[59331:4033724] OAL Error: +[ALWrapper openDevice:]: Could not open device (null)
2014-09-06 13:18:23.791 testsound[59331:4033724] OAL Error: -[ALDevice initWithDeviceSpecifier:]: : Failed to create OpenAL device (null)
2014-09-06 13:18:23.791 testsound[59331:4033724] OAL Error: +[ALWrapper closeDevice:]: Invalid Enum (error code 0x0000a003)
2014-09-06 13:18:23.791 testsound[59331:4033724] OAL Warning: -[OALAudioSession onAudioError:]: Received audio error notification, but last reset was 0.001220 seconds ago. Doing nothing.
2014-09-06 13:18:23.791 testsound[59331:4033724] OAL Error: -[OALSimpleAudio initWithSources:]: : Could not create OpenAL device

ALIZE/LIA_RAL Toolkit 3.0 Tutorial

I am trying get started with ALIZE/LIA_RAL Toolkit. Tried to run ALIZE3.0 Tutorial 02_i-vector_system_with_ALIZE3.0 on my system. But there might be some problem with data. Data folder with the I-vector system is empty and I have used data you provided with GMM-UBM tutorial. IvTest_WCCN_Cosine.log file is showing the following error -
[ Exception 0x77ce00 ]
message = "Matrix is not positive definite"
source file = DoubleSquareMatrix.cpp
line number = 177
Can you please help me out to fix this problem?

IBM Worklight - "getSkinName is not defined"

I am trying to define a new android.tablet skin. I am testing with a Nexus 7 running KitKat.
I did this:
Added the Skin
updated getSkinName() function
I can see in LogCat the function getSkinName() being called
However, there is a confusing message:
"default" skin will be used, because skin named android.tablet was not
found. Add a skin or change android/js/skinLoader.js to return
existing skin.
Am I missing something?
04-01 17:03:32.969: D/CordovaNetworkManager(4481): Connection Type:
wifi 04-01 17:03:32.969: D/CordovaActivity(4481):
onMessage(networkconnection,wifi) 04-01 17:03:32.969:
D/CordovaLog(4481):
file:///android_asset/www/default/js/skinLoader.js: Line 18 :
screen.width 800 04-01 17:03:32.969: I/chromium(4481):
[INFO:CONSOLE(18)] " screen.width 800", source:
file:///android_asset/www/default/js/skinLoader.js (18)
04-01 17:03:32.969: D/CordovaLog(4481): file:///android_asset/www/default/js/skinLoader.js: Line 23 :
returned skinName is android.tablet 04-01 17:03:32.969:
I/chromium(4481): [INFO:CONSOLE(23)] " returned skinName is
android.tablet", source:
file:///android_asset/www/default/js/skinLoader.js (23) 04-01
17:03:32.969: W/WLDroidGap(4481): "default" skin will be used,
because skin named android.tablet was not found. Add a skin or change
android/js/skinLoader.js to return existing skin. ... ... ... 04-01
17:03:34.779: D/CordovaLog(4481):
file:///android_asset/www/default/worklight/cordova.js: Line 1034 :
processMessage failed: Error: ReferenceError: getSkinName is not
defined
Looks like you're right, Worklight Skins fail to load - at least on the first load of the application; if you load it a second time, it does work.
I've opened a defect for this issue.
If you are an IBM business partner or customer, please open a PMR so that once fixed you'll be able to receive this in the form of an iFix release.
Here's what I've done:
Created a new project and application
Added the Android environment
Added an application skin, android.skin, to the Android environment
Added a main.css to my-app\android.skin\css with body {background-color:red}
Changed getSkinName() in my-app\android\js\skinLoader.js' to return "android.skin"
Run As > Run on Worklight Development Server
Run As > Android application
The first load indeed loads the "default" skin instead of "android.skin". The second time I loaded the app (from the device, not by re-installing the app), it did load the "android.skin"...
So anyway, there's a defect. But you can continue developing your application albeit in a somewhat inconvenient way...