Stream Player with jsp website

by Edwin » Fri, 13 Mar 2009 01:42:35 GMT


Sponsored Links
 I have written an Android Program that get the video from a jsp web.
Basically, the jsp will return a movie to the client, in this case,
the client is Android. I can get the movie in the browser. Then, I set
the this path to mediaplayer by  mp.setDataSource(path). Then prepare
it, exception is thrown about the player is invalid. I also try
prepareAsyn(), it still doesn't work. Can anyone know how to play a
movie from a jsp?

ps. if I set the path = " http://www.abc.com/123.mp4" ;, it works
perfectly. However, path = " http://www.abc.com/456.jsp" ;, the android
cannot work.

Thank

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Zygote process died due to SIGSEGV

Hello,

I ported my linux kernel 2.6.25 to Freescale based IMX31 board. After
that i applied the android kernel patches from the android 1.0 source
to my kernel 2.6.25.
I build the filesystem and load on my ext2 formatted SD card.

Then i load my normal linux kernel 2.6.25 and mount the sdcard and run
the android ./init process.
After sometimes the Zygote process gets died due to SIGSEGV.

Log messages:
# logcat
I/DEBUG   ( 1651): de{*filter*}d: Jan 19 2009 17:28:23
E/mountd  ( 1650): could not read initial mass storage state
E/mountd  ( 1650): inotify_init failed, Function not implemented
E/flash_image( 1659): can't find recovery partition
D/AndroidRuntime( 1653):
D/AndroidRuntime( 1653): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime( 1653): CheckJNI is ON
I/        ( 1654): ServiceManager: 0xaab8
W/AudioHardwareInterface( 16read Setting54): Using stubbed audio
hardware. No sound will be produced.
I/AudioFlinger( 1654): AudioFlinger's main thread ready to run.
I/Parcel  ( 1654): read Setting data pos of 0xa834 to 76
I/Parcel  ( 1654): read Setting data pos of 0xa834 to 76
I/CameraService( 1654): CameraService started: pid=1654
I/Parcel  ( 1654):  data pos of 0xa834 to 76
D/AndroidRuntime( 1653): --- registering native functions ---
I/Zygote  ( 1653): Preloading classes...
D/dalvikvm( 1653): GC freed 746 objects / 41240 bytes in 3ms
D/dalvikvm( 1653): GC freed 302 objects / 18584 bytes in 3ms
D/dalvikvm( 1653): GC freed 309 objects / 18720 bytes in 4ms
D/dalvikvm( 1653): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1653): Added shared lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1653): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1653): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0
D/dalvikvm( 1653): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1653): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0
I/DEBUG   ( 1651): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG   ( 1651): Build fingerprint: 'generic/generic/generic/:1.0/
TC3/eng.deepak.singal.20090119.170753:eng/test-keys'
I/DEBUG   ( 1651): pid: 1653, tid: 1653  >>> zygote <<<
I/DEBUG   ( 1651): signal 11 (SIGSEGV), fault addr 0000002c
I/DEBUG   ( 1651):  r0 0000bb00  r1 41106f58  r2 00000000  r3 00000003
I/DEBUG   ( 1651):  r4 befa0398  r5 00000000  r6 41106f58  r7 00000000
I/DEBUG   ( 1651):  r8 00000162  r9 00000000  10 4104acac  fp 00000000
I/DEBUG   ( 1651):  ip ad07f030  sp befa0340  lr ad050eaa  pc
ad051eb6  cpsr 20000030
I/DEBUG   ( 1651):          #00  pc ad051eb6  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #01  pc ad051f60  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #02  pc ad05a0a4  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #03  pc ad05a93e  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #04  pc ad0121dc  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #05  pc ad02a92c  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #06  pc ad0169d0  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #07  pc ad051f40  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #08  pc ad051f60  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #09  pc ad03ddd0  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #10  pc ad012748  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #11  pc ad02a92c  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #12  pc ad0169d0  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #13  pc ad051f40  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #14  pc ad051f60  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #15  pc ad05a0a4  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #16  pc ad05ab8c  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #17  pc ad00f7e8  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #18  pc ad02a92c  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #19  pc ad0169d0  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #20  pc ad051f40  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #21  pc ad051f60  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #22  pc ad05a0a4  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #23  pc ad05a17e  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #24  pc ad03c560  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #25  pc ad03c5e2  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #26  pc ad012748  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #27  pc ad02a92c  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #28  pc ad0169d0  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #29  pc ad051f40  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #30  pc ad03f8aa  /system/lib/libdvm.so
I/DEBUG   ( 1651):          #31  pc ad030b96  /system/lib/libdvm.so
I/DEBUG   ( 1651): stack:
I/DEBUG   ( 1651):     befa0300  00000000
I/DEBUG   ( 1651):     befa0304  00000000
I/DEBUG   ( 1651):     befa0308  0000bb00  [heap]
I/DEBUG   ( 1651):     befa030c  ad06929a  /system/lib/libdvm.so
I/DEBUG   ( 1651):     befa0310  41106f58
I/DEBUG   ( 1651):     befa0314  00000000
I/DEBUG   ( 1651):     befa0318  befa0338  [stack]
I/DEBUG   ( 1651):     befa031c  ad05a571  /system/lib/libdvm.so
I/DEBUG   ( 1651):     befa0320  befa0328  [stack]
I/DEBUG   ( 1651):     befa0324  ad057fe1  /system/lib/libdvm.so
I/DEBUG   ( 1651):     befa0328  0000002a
I/DEBUG   ( 1651):     befa032c  ad07fa78
I/DEBUG   ( 1651):     befa0330  00000054
I/DEBUG   ( 1651):     befa0334  00000320
I/DEBUG   ( 1651):     befa0338  df002777
I/DEBUG   ( 1651):     befa033c  e3a070ad
I/DEBUG   ( 1651): #00 befa0340  befa0398  [stack]
I/DEBUG   ( 1651):     befa0344  00000000
I/DEBUG   ( 1651):     befa0348  4184f0f8
I/DEBUG   ( 1651):     befa034c  400759e0
I/DEBUG   ( 1651):     befa0350  befa0328  [stack]
I/DEBUG   ( 1651):     befa0354  befa0330  [stack]
I/DEBUG   ( 1651):     befa0358  00000000
I/DEBUG   ( 1651):     befa035c  befa0398  [stack]
I/DEBUG   ( 1651):     befa0360  400759e0
I/DEBUG   ( 1651):     befa0364  0000bb00  [heap]
I/DEBUG   ( 1651):     befa0368  ad07edf8
I/DEBUG   ( 1651):     befa036c  ad051f63  /system/lib/libdvm.so
I/DEBUG   ( 1651): #01 befa0370  befa0390  [stack]
I/DEBUG   ( 1651):     befa0374  0000bb00  [heap]
I/DEBUG   ( 1651):     befa0378  ad07edf8
I/DEBUG   ( 1651):     befa037c  befa0390  [stack]
I/DEBUG   ( 1651):     befa0380  ad069298  /system/lib/libdvm.so
I/DEBUG   ( 1651):     befa0384  fffea4a0
I/DEBUG   ( 1651):     befa0388  ad05a0a7  /system/lib/libdvm.so
I/DEBUG   ( 1651):     befa038c  befa0398  [stack]



Can anybody tell me why the Zygote process is died. what may be the
reason ?


Regards,
Saroj K Pradhan
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website:  http://www.***.com/ 
-~----------~----~----~----~------~----~------~--~---

2. Issue in openintents simulator, after running directly going to "Connection settings" page instead of my desired page

hi,

I am trying to use open intents simulator and do all the settings
according to the instructions. But when i tried to run a sample
program, after running, its directly going to the "connections
settings page" in openintents.apk.

please guide me in this issue, heres my code...

import org.openintents.hardware.SensorManagerSimulator;
import org.openintents.provider.Hardware;

import android.app.Activity;
import android.content.Intent;
import android.hardware.SensorListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.widget.Toast;

public class OpenPage extends Activity implements SensorListener {

        SensorManager sensorManager;
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.openpage);

                /* start open intents code */

                Hardware.mContentResolver = getContentResolver();
                sensorManager = (SensorManager)getSystemService
(SENSOR_SERVICE);
                Intent intent = new Intent(Intent.ACTION_VIEW,
Hardware.Preferences.CONTENT_URI);
                startActivity(intent);
                sensorManager.unregisterListener(this);
                SensorManagerSimulator.connectSimulator();

                /*end open intents code */

                sensorManager.registerListener(this,
SensorManager.SENSOR_ACCELEROMETER |
                           SensorManager.SENSOR_MAGNETIC_FIELD |
                           SensorManager.SENSOR_ORIENTATION,
                           SensorManager.SENSOR_DELAY_FASTEST);
        }

        @Override
    protected void onResume() {
        super.onResume();
        sensorManager.registerListener(this,
                SensorManager.SENSOR_ACCELEROMETER |
                SensorManager.SENSOR_MAGNETIC_FIELD |
                SensorManager.SENSOR_ORIENTATION,
                SensorManager.SENSOR_DELAY_FASTEST);
    }

    @Override
    protected void onStop() {
        sensorManager.unregisterListener(this);
        super.onStop();
    }

        public void onAccuracyChanged(int sensor, int accuracy) {
        }

        public void onSensorChanged(int sensor, float[] values) {
                Toast.makeText(this, Float.toString(values[0]) +"::"+
Float.toString
(values[1]) +"::"+ Float.toString(values[2]), Toast.LENGTH_SHORT).show
();
        }

}

Thanks
Nithin
--~--~---------~--~----~------------~-------~--~----~

3. Does the latest sdk provide the function of dynamic loading classes?

4. Do I have to provide a business address so customers can contact me?

5. How to find out the cause of a configuration change

6. Cannot modify a button from the menu

7. download question