MP3 access file simultaneous Read and Write

Hello,

I am working on a project for MP3 streaming with my own protocol.

The protocol is working and i write the data on a MP3 file but i can't read this file, with the interface Player, before the end of the complete tranfert. The compilator return :

Error value: 80070020

Error: Unable to realize com.sun.media.amovie.AMController@2a5330

Does anybody know how i can stream these data or start the player before the end of the communication ?

Thanks a lot. See you...

[512 byte] By [Daminoua] at [2007-9-28 2:52:01]
# 1
If you are using FileOutputStream to write the file, you must close the FileOutpuStream before you are able to access the mp3 file.
ctdinoa at 2007-7-7 22:25:06 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...