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 = "" ;, it works
perfectly. However, path = "" ;, the android
cannot work.



Other Threads

1. Honeycomb surprising result for WallpaperManager.getDesiredMinimumHeight()


In the new Android 3.0 Honeycomb Preview emulator
WallpaperManager.getDesiredMinimumHeight()  returns 1408.


The 1408 result is a bit surprising, is this planned ? is there any
special reason the desired Height is 1408 and not just 1400 ?

Shai Levy


2. Absolute path for an asset file


I have been trying to get the absolute path for an asset file but i
havent found an answer.

the file which is directly within my asset folder is mydemo.txt
 and i call the function given below to test the validity of the path
(tried the below options)

        public void testURI(String filepath) {
                try {
                        Log.e(TAG, "Testing " + filepath);
                        File f = new File(filepath);
                        if (f.exists() == true) {
                                Log.e(TAG, "Valid :" + filepath);
                        } else {
                                Log.e(TAG, "InValid :" + filepath);
                } catch (Exception e) {
                        Log.e(TAG, "File not found" + filepath);

Can someone let me know whats the absolute path i can use to get an
asset file. i don't need the file descriptors but i want the file path
to construct an URI.


3. app doesn't install anymore!

4. How to Read Device Properties

5. Motorola Camera issue

6. gldfish kernel and goldfish kernel

7. What's new in honeycomb?