Streaming in android

by padma prabhavathi » Tue, 24 Jun 2008 16:13:27 GMT


Sponsored Links
 Hi Friends,

        Can anyone please tell me whether streaming is possible in
Android.Till now i saw tutorials on playing audio and video files that are
downloaded and played is it possible to play an audio or video without
downloading.

Thanks in advance

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



Streaming in android

by Fr盲ntz Miccoli » Tue, 24 Jun 2008 16:16:13 GMT


 Yes it is possible. One of my frind did it.

On Tue, Jun 24, 2008 at 2:13 PM, padma prabhavathi <[EMAIL PROTECTED]>





-- 
Frntz Miccoli
06.70.92.76.16
[EMAIL PROTECTED]

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


Sponsored Links


Streaming in android

by padma prabhavathi » Tue, 24 Jun 2008 20:18:41 GMT


 Hi Friends,

        Can anyone please tell me whether streaming is possible in
android.Till now i saw tutorials on playing video and audio files that
download into a folder and play.

Thanks in Advance.

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



Streaming in android

by David Given » Tue, 24 Jun 2008 21:14:46 GMT


 

[...]

No. It's not.

Trying to do streaming causes MediaPlayer to produce various bizarre and 
undocumented errors, which probably all boil down to 'not supported yet'.

-- 
David Given
[EMAIL PROTECTED]

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



Streaming in android

by padma prabhavathi » Tue, 24 Jun 2008 21:35:38 GMT


 



Thanks alot for the response.
But did u see the below url?

 http://android.tunewiki.com/index.php 

Do u know anything about tunewiki?If u know anything about it then kindly
give me some information about it.

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



Streaming in android

by Hong » Tue, 24 Jun 2008 21:41:33 GMT


 not sure about video streaming, but mp3 audio streaming is somewhat
possible...

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



Streaming in android

by David Given » Tue, 24 Jun 2008 21:52:39 GMT


 

[...]

I don't know who u is, and I don't know how tunewiki works, but if it's 
anything like the streaming audio app that *I* wrote, it works by using 
one thread to download the MP3 into a file, and then telling MediaPlayer 
to play from the file in another thread.

This approach works, but isn't really adequate; you need to pad the file 
out with zeroes to make it the right length otherwise MediaPlayer gets 
very confused about how long the audio is, and it *still* gets very 
confused (and crashes) if you use oggs instead of MP3s.

But this is strictly a workaround, and a pretty clunky and unreliable 
one. MediaPlayer is *supposed* to be able to open remote URLs directly, 
but that doesn't work yet.

-- 
David Given
[EMAIL PROTECTED]

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



Streaming in android

by Megha Joshi » Tue, 24 Jun 2008 23:03:37 GMT


 It is possible to play streaming audio and progressive streaming video using
the media samples posted to the android-developers group files section.

For creating progressive streamable video >>>one of the group users got it
working through Quick Time Pro and sent it along:

Here are the steps :

1. Open the video file in Quick Time Pro.

2. Goto File > Export

3. Select type as 'Movie to 3G'

4. Click Options

5. Select file format as 3gpp

6. In the drop down menu below the file format, select 'Streaming' from the
list of available options (Audio, Video, Text, Streaming, Advanced)

7. Select the required maximum packet size and maximum packet duration

8. Click Save

On Tue, Jun 24, 2008 at 9:16 AM, Frntz Miccoli <[EMAIL PROTECTED]>





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



Streaming in android

by rajesh » Wed, 25 Jun 2008 00:03:38 GMT


  http://blog.pocketjourney.com/2008/04/04/tutorial-custom-media-streaming-for-androids-mediaplayer/ 

 From the above post I believe, streaming is possible but the support of 
playing still is not available on emulator. so keep your code ready and 
fingers crossed until you could test your code on emulator till next 
release.

- Raj





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



Other Threads

1. Android testing: can't programmatically press buttons, etc...

Did you try working with the testing tutorial?

http://developer.android.com/resources/tutorials/testing/activity_test.html

That gives an example of using the Instrumentation to send key presses
to an Activity.


On Aug 5, 10:22am, Fabrizio Giudici <fabrizio.giud...@tidalwave.it>



-- 

2. Static variables and NullPointerExceptions...

I am seeing a lot of NullPointerException in my code at the moment
from public static variables.

I use these variables to store, e.g., my image library (used in
Activities throughout my code). All of them are initialized in the
OnCreate of my apps Base activity, and I check that they are
initialized in OnResume just to be certain (and initialize them if
they have somehow become nulled).

// Main APP Activity
MainActivity {
public static GlobalObject lib;

void OnCreate() {
  if (lib == null)
    lib = new GlobalObject();
}

void OnResume() {
  if (lib == null)
    lib = new GlobalObject();
}

}

// Some other activity instantiated later
OtherActivity {
void onCreate() {
  lib.doSomething();  // This line will sometimes fail with a
NullPointerException
}

}

I am quite unable to recreate the situation in which this
NullPointerException occurs. As I understand the activity lifecycle,
it should not be possible for lib to be null when OtherActivity is
created (if OtherActivity is in memory, MainActivity's static
variables should also be in memory and if the app is killed, it should
start over from MainActivity?), but that is the error I seem to be
getting.

Suggestions, anyone? I suppose I am probably overlooking something
simple, but I just can't see it.

Regards,

Michael A.

-- 

3. remove checkboxpreference in preferencescreen

4. Programmatically expanding / collapsing items of an ExpandableListView

5. how to check whether insterted SD Card is full or not

6. Looking for a generic simple demo of getting mobile phone ID and their x, y position data

7. Static variables and NullPointerExceptions...