MemoryFile to create a file in memory?

by Moto » Sat, 21 Feb 2009 07:30:38 GMT


Sponsored Links
 Hello,
Could someone let me know how I could get a File path from a file
create in memory using MemoryFile class?

I was able to create one but I can't seem to know how to obtain a
"pointer" path to this file in memory so that I could give it to
MediaPlayer...

Help?

Thanks!
Moto!
--~--~---------~--~----~------------~-------~--~----~



MemoryFile to create a file in memory?

by Marco Nelissen » Sat, 21 Feb 2009 07:48:36 GMT


 If it's in memory (i.e. RAM), then it is not in the filesystem, and
therefore there is no path.
What are you trying to do? Where is the data in the MemoryFile coming
from, originally?





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


Sponsored Links


MemoryFile to create a file in memory?

by Moto » Sat, 21 Feb 2009 07:58:10 GMT


 Thanks for your reply Marco...

I'm trying to somehow trick MediaPlayer into reading a buffer with
audio.  I'm not too sure how that would playout but at this point I'm
trying everything to get audio streaming working....

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



MemoryFile to create a file in memory?

by Marco Nelissen » Sat, 21 Feb 2009 08:04:33 GMT


 OK, but where does the data inside the buffer come from? Are you
generating it on the fly, or are you downloading/copying it from
somewhere?





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



MemoryFile to create a file in memory?

by Moto » Sun, 22 Feb 2009 01:14:01 GMT


 the data is generated on the fly you can say since it is being
retrieved from a UDP connection using an InputStream.
--~--~---------~--~----~------------~-------~--~----~



MemoryFile to create a file in memory?

by Marco Nelissen » Sun, 22 Feb 2009 02:38:58 GMT


 In that case you'll either have to wait for Cupcake, or set up a local
http proxy to stream through.





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



MemoryFile to create a file in memory?

by oliv yu » Mon, 23 Feb 2009 05:13:23 GMT


 Hi Moto,

I guess, what Marco means is that you don't really have to worry about the
buffer thing. All you need to do is to make your program found the root
where stream come from, a specific file, a URL (actually a file in the
server) or some devices etc. Then, let the program and OS mind how to
buffer.





Thanks for your reply Marco...

I'm trying to somehow trick MediaPlayer into reading a buffer with
audio.  I'm not too sure how that would playout but at this point I'm
trying everything to get audio streaming working....

--~--~---------~--~----~------------~-------~--~----~ You received this
message because you are sub...

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



MemoryFile to create a file in memory?

by Moto » Thu, 05 Mar 2009 03:32:45 GMT


 Thanks for your help!

So in respect to this topic if MediaPlayer is reading from a file on a
proxy or remote location does it ask for the length of the file? could
this length change as time goes by? I assume the server side of the
proxy would just continue sending data to the connected client
"MediaPlayer" and it won't care how much data I pass untill the
connection is terminated.

I don't understand this side of the logic...
Could someone explain....???

Thanks!
Moto!
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Android Camera Integration

A step by step guide to integrate the camera hardware with an Android
App

Covers:
* Working with a Preview Screen using a Surface View

* Hooking in a 'Take a Picture' callback

* Seamless integration with a Cloud Service

Link: http://code.google.com/p/openmobster/wiki/CameraTutorial

Thanks

-- 
.

2. Lesjaw Ardi wants to share their location with you on Google Latitude

Om... send invitation latitudenya ke mada...@gmail.com yak :)

sent thru Madroidpowered by smartfren evdo
pm: m...@robotijo.org


create
phone


-- 
===============

3. [WTS] Aksesoris buat HTC Series (Desire HD (Otterbox),Nexus S (SGP)),Galaxy Tab(Zenus,Anycall) & Galaxy S

4. [WTShare] DIY motorola defy media dock modalnya magnet sama karton

5. Aplikasi di android market

6. program mp3 paling baik untuk android (s spica)

7. Proxy to open blocked sites