×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    8

    Streaming MP3 via DataSource on j2me

    Hi
    If we download the mp3 file and play it on nokia 6681 it plays fine.But if we try to play mp3 file via datasource streaming it does not play on cell phone.The j2me player buffers the content but does not play.we are not using RTSP.The packets reach the cell phone and j2me player is realized but it doesn't play music.

  2. #2
    Registered User
    Join Date
    Jan 2008
    Posts
    5

    Re: Streaming MP3 via DataSource on j2me

    hi


    how u hav implemented datasource....
    actually i too hav to implement dataSource with http protocol can u plz send me dummy code....

    looking for prompt reply....

  3. #3
    Regular Contributor
    Join Date
    Apr 2007
    Posts
    220

    Re: Streaming MP3 via DataSource on j2me

    Hi there,

    I have worked quite a bit in hunting streaming solution in j2me, but till now no real solution.

    In j2me we can not implement a piped input stream in whic we can write at one end and read from other end.

    I thought that data source will be the solution for that but that also didn't worked for me....

    I am experiancing that once you have created the data source and given to the player, the player does the read() from input stream attached to it and then after not moving ahead for next read cycle.

    if any other observations...please let me know as well.

    Regards

  4. #4
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Streaming MP3 via DataSource on j2me

    In general, use RTSP, if you like to implement streaming with Java ME. Usually all the other network transfer methods require that the whole file is downloaded first.

    Also not that not all file formats are supported for streaming that only newer phones support RTSP (S60 2nd Edition FP3 and newer and Series 40 3rd Edition FP2... if my memory servers me right)

    Hartti

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    2

    Re: Streaming MP3 via DataSource on j2me

    Hi Did u get any code to imelent Data source..?

    Can we implement Data source with file system ?

  6. #6
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Finland
    Posts
    99

    Re: Streaming MP3 via DataSource on j2me

    One way to do streaming is to read chunks to buffer and then create a new player when last part has finished. Works okayish with mp3. Smaller chunks, bigger chance to hear cracks and pauses while playing.
    http://users.tkk.fi/~tlindber
    http://bttris.game-server.com
    http://roosterdesigns.fi/glassplayer

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

    Re: Streaming MP3 via DataSource on j2me

    Hi All,
    Any body succeeded playing mp3 files by using data source.
    if any body knows ,plz send me the sample code for that

    Thanks

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

    Re: Streaming MP3 via DataSource on j2me

    Hi
    Can anybody tell how to use datasource for playing audio files?if u have any code plz share with me

  9. #9
    Registered User
    Join Date
    Feb 2010
    Posts
    2

    Re: Streaming MP3 via DataSource on j2me

    hi,
    I simply want to play mp3 off the file system.. how can i do this?

Similar Threads

  1. Streaming Server Supported by J2ME
    By telekomahmed in forum Mobile Java General
    Replies: 7
    Last Post: 2011-05-24, 13:48
  2. streaming mp3
    By santosh shetty in forum Symbian Media (Closed)
    Replies: 76
    Last Post: 2010-05-28, 16:03
  3. Streaming mp3 from local file system.
    By qbodzio in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2008-05-19, 17:22
  4. J2ME and streaming
    By Aditto in forum Mobile Java General
    Replies: 3
    Last Post: 2007-01-04, 18:35

Posting Permissions

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