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. Honeycomb surprising result for WallpaperManager.getDesiredMinimumHeight()

Hi,

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

getDesiredMinimumHeight=1408
getDesiredMinimumWidth=1920

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

Thanks,
Shai Levy

-- 

2. Absolute path for an asset file

Hello,

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)
                testURI("//android_asset/mydemo.txt");
                testURI("//assets/mydemo.txt");

        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);
                        e.printStackTrace();
                }
        }

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?