media player error codes - android

This link is broken. Are there any other resource that keeps media player error codes?
or does anybody know what the -18 error code means?
Thanks,

https://github.com/android/platform_external_opencore/blob/master/pvmi/pvmf/include/pvmf_return_codes.h
/*
Error due to general data processing
*/
const PVMFStatus PVMFErrProcessing = (-18);

Related

Error while running PJSUA android sample application

I am trying to build & run pjsua sample app of pjsip and have successfully build it.
I have followed this PJSIP tutorial.
ID : sip:150#123.12.xxx.123:5060
Registrar : sip:123.12.xxx.123:5060
Proxy : sip:123.12.xxx.123:5060
Username : 150
Password : 111111
I am able to register as i am getting "Registration Successful" as response on dialog screen and 200 ok response in log.
I added a buddy with URI as sip:151 (username). It is being shown in list.
When i select buddy from list and try to make call i get a crash with following error log.
10-24 10:57:13.644: A/libc(7553): ../src/pjmedia/sdp_neg.c:110: pjmedia_sdp_neg_create_w_local_offer: assertion "(status=pjmedia_sdp_validate(local))==PJ_SUCCESS" failed
10-24 10:57:13.644: A/libc(7553): Fatal signal 6 (SIGABRT), code -6 in tid 7699 (Thread-21990)
I am not sure where i am going wrong but i am not able to establish a sip call with my sip server.
I have tested my server with CSipSimple app available from this link and it is working fine with it.
Thanks in advance.
Just a theory, but maybe try adding him using the URI of "sip:151#YourServer"
Same crash and lot of search bring me to this post.
I'm build pjsip without video codecs and size of CodecInfoVector was 0.
CodecInfoVector mCodecInfoVectorV = mEndpoint.videoCodecEnum();
for (int i = 0; i < mCodecInfoVectorV.size(); i++) {
System.out.println(mCodecInfoVectorV.get(i).getCodecId() + "\n" +
mCodecInfoVectorV.get(i).getDesc());
}
So i had to enable video codecs and re-build pjsip even if they are isn't used. And after that i've been able to make call

MovIeTexture not valid type build error

I am trying to insert a movie texture in unity onto a cube screen. This is my code to make it play.
#pragma strict
var movTex : MovieTexture;
function Start () {
renderer.material.mainTexture = movTex;
movTex.Play();
}
function Update () {
}
When I try to build it to my Android I get a build error:
Assets/Scripts/Movie.js(3,14): BCE0018: The name 'MovieTexture' does not denote a valid type ('not found').
Does anyone know what may be wrong?
You are trying to use something that doesn't work on Android, if you look up the MovieTexture on the unity docs we find:
http://docs.unity3d.com/Manual/class-MovieTexture.html
Movie Textures are not supported on Android. Instead, full-screen streaming playback is provided using Handheld.PlayFullScreenMovie.

How can i fix "Duplicate status message" issue while binding the Facebook SDK in my android Application? [duplicate]

I want to post the several same messages onto my feed/wall in an iOS application.
From the 2nd try, I receive this error -
(#506) Duplicate status message.
How can I solve it?
You can't.
That is Facebook's way to tell you to stop spamming.
Sorry if it sounds slightly mean - but posting the same message over and over and over again is spamming, and its not good. The error message you are getting describes the problem - you are posting the same status message. It is a special error message created specifically for this case.
I check for the 506 code and don't show any error to the user in case it's a duplicate status error
if (error && [[[[[error.userInfo objectForKey:#"com.facebook.sdk:ParsedJSONResponseKey"] objectForKey:#"body"]objectForKey:#"error"]objectForKey:#"code"] intValue] !=506) {
alertTitle = NSLocalizedString( #"SomethingWentWrongTitle", nil);
}

android 4.1 composer->captureScreen(...) failed

I use JNI way, composer -> captureScreen(...) to capture final surfaceflinger composed screen, like this sample in source code.
and build success on android 4.1, but there are error happened at runtime: the captureScreen(...) returns err = 1, and heap = null.
I googled this link is the same fail, still no answer.
OK! I got the answer...
the err = 1 means PERMISSION_DENIED = 1 in native code,
the root cause is after android 4.0 screenshot consider APP's permission , explained here in Chinese,
and here is the detail to work
thanks!
B.R.

Error Codes Media Player syntax and definition

I cannot find any documentation on error codes with regard to Android. I am putting together an app that seemed to be working on a lower level API setup but not on a higher one.
The error occurs when trying to play an audio file and like I said it all worked in a lower version.
The error code I see is in the log are:
MediaPlayer info/warning (1, 32)
MediaPlayer Info (1,32)
MediaPlayer info/warning (1,26)
MediaPlayer Info (1,26)
MediaPlayer error(351, -4)
MediaPlayer Error(351,-4)
VideoView Error(351,-4)
So can someone please explain how this works in detail?
I know I have an error in MediaPlayer and possibly VideoView as per the data above but what do the numbers represent? I assume it is a particular error but which one?
I can not seem to find anything on this and how this is decoded.
Where can I find documentation on how to find out what this means that is the main question.
If I can get an answer for this particular error code even better, but again the actual documentation source so I may be able to look up additional codes myself would be of great benefit also.
Here is the exact logfile as exported by Eclipse:
07-04 12:22:48.298: V/key =(6969): http://xxxxxx/glennharrold/audio/normal/relaxsleepwellfull.mp3
07-04 12:22:48.388: D/MediaPlayer(6969): Couldn't open file on client side, trying server side
07-04 12:22:48.388: D/SprintMM(6969): Proxy will be bypassed because of WIFI connection.
07-04 12:22:48.508: W/MediaPlayer(6969): info/warning (1, 32)
07-04 12:22:48.508: I/MediaPlayer(6969): Info (1,32)
07-04 12:22:48.508: W/MediaPlayer(6969): info/warning (1, 26)
07-04 12:22:48.508: I/MediaPlayer(6969): Info (1,26)
07-04 12:22:48.508: E/MediaPlayer(6969): error (351, -4)
07-04 12:22:48.508: E/MediaPlayer(6969): Error (351,-4)
07-04 12:22:48.508: D/VideoView(6969): Error: 351,-4
Now what is unclear is exactly what means what I can see that it may have something to do with the file not being found on the client side but this exact same code works on a lower API version I copied working code to this App to make a new one.
The only thing I see in this that I did not see in my logcat in Eclipse is the (6969) and the D/, E/, W/, I/ in front of MediaPlayer text
don't know what this extra stuff means and it only appears when I export the code to a text file.
FYI, When logcat displays information it is one of the following:
D - D ebug
W - W arning
I - I nformation
Followed by a '/' with a identifier to identify the Java code name which is usually defined by TAG as in a standard practice of doing :
public class fooClass{
private static final String TAG = "fooClass";
// ... SNIP
}
Following that, is the process id of the Java code that is running in the DalvikVM, along with some informative error code/message depending on the program spec.
For example, continuing on from the Java class fooClass as highlighted above, suppose it has a function fooMethod like this:
private void fooMethod(){
Log.d(TAG, "fooMethod() - This is a debug message");
//
Log.i(TAG, "fooMethod() - This is a info message");
//
Log.w(TAG, "fooMethod() - This is a warning message");
}
Now that will show up in the log like this:
07-04 20:58:00 D/fooClass (1234): fooMethod() - This is a debug message
07-04 20:58:00 I/fooClass (1234): fooMethod() - This is a info message
07-04 20:58:00 W/fooClass (1234): fooMethod() - This is a warning message
Some apps, will elect to display the message at the programmer's discretion or display a cryptic message.
Notably within the Android framework itself, some services will display a meaningless message that has little significance to anyone except the developer(s) behind the ROM itself, to aid in troubleshooting.
Edit: Since the OP insisted on trying to nail down understanding this, here goes
The AOSP source code for the MediaPlayer lies on github here, look in there there's a reference to 'pvmf_return_codes.h' in the source on line number 1547, which, a quick google-fu lead to this linky. The error code and condition is as a result of incompatible or media error.

Categories

Resources