Hi,
Any tips on how to send a mp4 video file via TCP from a desktop server to a j2me client, running on a Nokia N95?
I have looked around but have not been able to find anything. I am fairly new to MIDP and Java programming.
Hi,
Any tips on how to send a mp4 video file via TCP from a desktop server to a j2me client, running on a Nokia N95?
I have looked around but have not been able to find anything. I am fairly new to MIDP and Java programming.
you can use rtsp if you have streaming server on the pc and then just open an rtsp player on the client with the streaming url.
or just simply transfer the video as a file and read its content via tcp on client and then init a player with its content (as an inputstream)
BR
OK, so is it possible to create a mp4 video file from a byte array in J2ME?
I tried to read the byte array that I created on the server side by doing the following (videoData is the byte array; contentType is "video/mp4"):
But I get a MediaException (could not create Player).Code:ByteArrayInputStream is = new ByteArrayInputStream(videoData); player = Manager.createPlayer(is, contentType);
Any idea what I am doing wrong?
a. what is the media exception u get?
b. try video/mpeg as contentType
My bad. It didn't work because the emulator doesn't support the encoding type. It works on the handset. Thanks for your help!