×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    24

    Sending video over TCP

    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.

  2. #2
    Registered User
    Join Date
    Dec 2004
    Posts
    370

    Re: Sending video over TCP

    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

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    24

    Re: Sending video over TCP

    OK, so is it possible to create a mp4 video file from a byte array in J2ME?

  4. #4
    Registered User
    Join Date
    Jan 2008
    Posts
    24

    Re: Sending video over TCP

    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"):

    Code:
    ByteArrayInputStream is = new ByteArrayInputStream(videoData);
    player = Manager.createPlayer(is, contentType);
    But I get a MediaException (could not create Player).

    Any idea what I am doing wrong?

  5. #5
    Registered User
    Join Date
    Dec 2004
    Posts
    370

    Re: Sending video over TCP

    a. what is the media exception u get?
    b. try video/mpeg as contentType

  6. #6
    Registered User
    Join Date
    Jan 2008
    Posts
    24

    Re: Sending video over TCP

    My bad. It didn't work because the emulator doesn't support the encoding type. It works on the handset. Thanks for your help!

Similar Threads

  1. Problem in sending video size
    By minasamy in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2007-06-18, 13:48
  2. emulators stopped working
    By mborg in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2006-11-18, 08:54
  3. Cannot sending video mms
    By pandateh in forum General Messaging
    Replies: 0
    Last Post: 2006-07-17, 08:00
  4. sending video through tcp socket
    By sathy in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-10-01, 14:25
  5. Sending Video MMS problem
    By stephenclifton in forum Symbian C++
    Replies: 1
    Last Post: 2004-08-24, 12:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •