How to play audio file in default player in j2me

Hi ,
I would like to implement Audio Streaming in Mobile application. I am record the voice using amr format and store
local mobile memory and retrieve and play the file successfully, what is my requirements is, when i was play the
file , i want to open the file in any default player in the mobile, the forward and backward control are use the default
player control. is it possible to play the file in default player in j2me. please reply soon.
With Regards,
Ganesh Kumar
Edited by: tlgkumar on Oct 23, 2008 11:55 AM

Hi Ganesh,
my suggestion to u is use existing streaming protocol that already support by MMAPI, thats RTSP/RTP protocol.
u only need to configure existing streaming server like HELIX SERVER or DARWIN SERVER, and ENCODER like FFMPEG, HELIX PRODUCER, etc to encode ur live media / store file become RTP packet and then let server send that to ur client. u can use camera / TV turner also to capture live video and send that by streaming. So u dont need to make ur own server, except ur project need different protocol from that streaming server use.
in client side, u can choose to use REAL MEDIA or make ur own player, Nokia already support RTSP protocol since S40 3rd edition and S50 2nd edition FP 3. so u dont need to parse by ur code RTSP message and RTP packet. u also can use forward and backward fiture too by that both streaming server.
please read any RTSP / RTP standar protocol reference, i think it will be helpfull to u to make ur own system configuration ..
-best regards-
adek aidi

Similar Messages

  • How to play audio file in voice Modem

    Hi,
    I am developing IVR application. i want to run audio file whenever phone rings.
    caller should be able to hear the content of audio file.
    I am using voice modem DLINK DFM 562E++.
    Please give some idea how to implement it using JMF.
    Thanks in advance
    Pradeep

    @ mark
    as u said I am doing all these. but my problem is i do not get OK response back when i send AT+VLS=7 command to receive a call. AT+VLS=7 is needed to select device mode and enabling transfer and receive.
    when i send AT+VLS=7 after ring, it seems call is picked up but i do not get ok response back in my program.
    after this none of command gives ok response so i don't know whether my setting to play file is correct or not.
    i am doing this one by one...
    'Init' AT Command: 'ATE0V1S0=0&C1&D2+MR=2;+DR=1;+ER=1;W2<cr>'
    'VoiceMode' AT Command: 'AT+FCLASS=8<cr>'
    'EnableCallerID' AT Command: 'AT+VCID=1<cr>'
    'SpeakerPhoneON' AT Command: 'AT+VSP=1<cr>'
    SpeakerGain' AT Command: 'AT+VGS=255<cr>'
    'SpeakerPhoneVolume' AT Command: 'ATL=3<cr>'
    'SpeakerPhoneControl' AT Command: 'ATM=3<cr>'
    'VoiceGainTransmit' AT Command: 'AT+VGT=255<cr>'
    'SetupSampling' AT Command: 'AT+VSM=129,8000,0,0<cr>'
    after this if ring comes then i am sendnig AT+VLS=7 to serial port.

  • How to play audio files in sequence?

    I have several audio books that I am trying to listen to on the new nano 6g. It seems that when one chapter is done playing, it restarts the same chapter instead of moving on to the next one in sequence. I have disabled shuffle, which I have never liked, but with the new design, it doesn't seem like there is a universal shuffle off setting, just the shake featue. I don't want ANY shuffle. How can I get this thing to play files in ORDER?
    thanks

    This is an interesting topic. Nobody dares to believe that Java can do good sound. I got all hooked up and studied it for an hour. I hope you or another will be able to use what I've found. It seems credible that Java have some great audio capabilities, but I haven't tested them all yet.
    http://java.sun.com/docs/books/tutorial/sound/playing.html
    has a great general introduction to sound in applications versus applets.
    If you are dealing with a limited set of sound files that you want to incorporate in, say, a game, convert them to .au or .wav files or another that can be read by the AudioClip class. A great conversion tool that I've used for some time is Goldwave. Fetch at at
    www.download.com
    Java Media Framework can do more than that, it can stream audio and do other stuff too. The procedure is as follows:
    1. Download JMF
    2. import javax.media.*;
    3. make a Manager
    4. get a Player from the Manager
    5. play something
    Morten Hjerl-Hansen
    founder
    www.gentleprotest.com
    www.kitcheneer.com
    developer
    www.zellsoft.com

  • How to play multiple files in media player

    Hello,
    Whenever I select multiple files (video and/or MP3) to be played with QuickTime, a different window is opened for each file.
    Is there a way or another player where the files selected to be played consecutively are all opened and listed in one window and played consecutively?
    Many thanks in advance!
    manoka

    Hi manoka,
    Have you tried creating a playlist with them in iTunes?
    I see compatible movies from my Movies folder in the Movies section under Library in iTunes.
    When a playlist is created for selected movies, they play sequentially in iTunes. It plays MP3s too .
    ivan

  • How to play .AVI files in Quicktime Player 7.6.4

    Quicktime Player 7.6.4 will not playback my .AVI movies that I recorded with my Polaroid DVG-1080p digital video camera. I have videos that are 1080p and 720p (H264).
    I wish I knew enough about the formatting to troubleshoot, but I thought I would seek advice from the experts.
    Any suggestions?

    I don't think that QuickTime natively recognizes H.264 content in an AVI wrapper. You might try installing Perian and see if that helps.
    Regards.

  • The audo files do not play from websites instead ask for download. This has occured from the time I have updated Firefox 4 to Firefox 5. Why? And how can i play audio files?

    The audo files do not play from websites instead ask for download. This has occured from the time I have updated Firefox 4 to Firefox 5. Why? And how can i play audio files from websites?

    You have a <b>general.useragent.override</b> pref that identifies you as Firefox/3.5.7
    *Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
    See:
    *https://support.mozilla.com/kb/Websites+or+add-ons+incorrectly+report+incompatible+browser
    *http://kb.mozillazine.org/Resetting_your_useragent_string_to_its_compiled-in_default

  • Can anybody explain me how to sample and play audio files with logic's EXS2

    can anybody explain me how to sample and play audio files with logic's EXS24 Sampler???
    i cant find a way to upload and manage my own audio content on this sampler...

    i uderstand , thanx...
    i managed to open an audio file and placed it in the sampler,i can play t sample in the little keyboard in the zones section, howver i dont know how to play it with my controller... the sample shows in C1 on logic's keyboard but if i play C1 on my controller nothing happens... how can i fix this?
    Also, i noticed the sample plays from beginning to end once i click on it, how do i do to just make it last until i release the key? like a logic sound??? (in case i want to play a small portion of the sample only)
    Thanx

  • HT3775 how do i Play AVI files on QT Player?

    how do i Play AVI files on QT Player?

    Subsequent to this I did some more research and came accross DivX Plus Player which played my video and sound.
    Thanks all for your help.
    Rich

  • Looking for some info on how to play music files on IPAD2

    Hi and thanks for sharing.  Trying to figure out how to play sound files such as wavs or mp3s on my ipad2 while I browse the internet or use my computer.  I was trying to see if the music feature will play my songs or if I can import downloaded files from the net to itunes and if that will play in the background.  I have an audio program that can send sound files to email and was trying to figure out how, similarly, to get this play in the background while I do things too.  That and sound files downloaded from the internet.   Do these go to iCloud when you download them?  Can I import sounds into itunes with my iPad someway.  (It's the only computer or device I own).   Basically looking for a pathway to get music from my audio program that's sent to email, and clips I've DLed off sites on the internet, to play while I use the pad or browse the net.  Thanks for your intel on the mission.   Cheers!

    The only way to get content into the Music app is via iTunes store downloads or syncing with itunes on a computer. You will need to find a third party media player such as VLC (whick integrates with DropBox and GoogleDrive, if that appeals to you).

  • Play audio file in Java

    This is very cute example.
    I want to do this: In JTextPane I have some audio files (.au) and what I want to do is that vhen I duble clicked to the file that this file will be opened in some program (like CoolEdit). And this program (with file, which is played) I want to insert to my application. If someone know how to do this, pleasse tell.
    I know that with applet player can play audio file, but this is not good enough for me:)
    Thanks a lot.

    You can use some static methods in the Applet class to play AudioClips, but these only play short sound files. Try reading this thread to play long sound files:
    http://forum.java.sun.com/thread.jspa?forumID=513&threadID=450768

  • Problem with playing audio data using Real Player

    i've seen the intruction for playing video data (.rm) using real player and it works. Then i tried to play audio data (.wav, .dat, .mp3) with real player, but it didn't work.
    These are some codes i've wrote:
    ------------------------------------------- BEGIN PL/SQL CODES---------------------------------------
    CREATE TABLE SONGS
    ( Item_ID number not null PRIMARY KEY,     
    Audio ordsys.ordaudio
    create or replace procedure load_audio(id integer, filename in varchar2) as
    obj ORDSYS.ORDAudio;
    ctx RAW(4000) := NULL;
    begin
    INSERT INTO SONGS VALUES(ID,
         ORDSYS.ORDAudio.init());
    SELECT audio into obj from Songs
    where item_id = id FOR UPDATE;
    obj.setSource('FILE','AUDIODIR', filename);     
    Obj.setDescription('A movie trailer');
    Obj.setMimeType('audio/x-pn-realaudio');
    Obj.setFormat('Real Media File Format');
    obj.import(ctx);
    UPDATE Songs
         SET audio=obj WHERE item_id=id;
    COMMIT;
    END;
    show errors;
    truncate table songs;
    exec load_audio(1,'aud1.wav');
    exec load_audio(2,'aud2.mp3');
    exec load_audio(3,'testaud.dat');
    -- just for comparison, i put a video file (.rm)
    exec load_audio(4,'autorace.rm');
    commit;
    show errors;
    create or replace procedure get_audio(
         audio_id in varchar2,
         mimetype out varchar2,
         data out blob) as
         tempBLOB BLOB;
         s varchar2(200);
    begin
    -- Deliver audio and mimetype
    select t.audio.getcontent(), t.audio.getmimetype()
    into tempBLOB, s
    from songs t where t.item_id = audio_id;
    data := tempBLOB;
    mimetype := s;
    end;
    show errors;
    ---------------------------------------- END of PL/SQL CODES-------------------------------------
    -----------------------------------MOUNTPOINT at FILESYSTEM rmsever.cfg-------------------
    <List Name="pn-oracle-audio">
    <Var Database="oracle"/>
    <Var HeaderCacheSize="2048"/>
    <Var LobFetchSize="32768"/>
    <Var MaxCachedConnections="1"/>
    <Var MountPoint="/dbaudio/"/>
    <Var Password="ZGF2aWQ="/>
    <Var ShortName="pn-oracle"/>
    <Var SQL="get_audio"/>
    <Var Username="skripsi"/>
    </List>
    ----------------------------------------End Of MOUNTPOINT----------------------------------
    then in the real player, i tried some urls :
    http://david:88/ramgen/dbaudio/1 --> it didn't work, it was said invalid path
    http://david:88/ramgen/dbaudio/2 ----> it didn't work, it was said invalid path
    http://david:88/ramgen/dbaudio/3 ----> it didn't work, it was said invalid path
    http://david:88/ramgen/dbaudio/4 ----> it worked
    did i put a wrong url?
    does the http://..../ramgen/... path is just for ram file?
    can anyone show me the way to play audio data using real player?
    Thanx before.

    Yes, realserver expects an exact mimetype.
    to make matters worse, it expects audio/x-pn-realaudio (an audio mimetype) for video!?!?!
    Seems the code inside maps multiple file extensions to some mime type. Only one is allowed.
    I have used the unix strings commands in teh plugins directory to find the exact mime type realserver is expecting. The file format plugins have this information in them.
    Larry

  • Playing audio file while Downloading

    Hello all,
    Can anyone give me an idea on how can I play audio file while downloading.
    Thanks

    Connect the external drive and then launch Disk Utility found in Applications/Utilities. Your external drive while show up in Disk Utility's side bar. It should be Mac OS Extended or OS Extended (Journaled).
    If it isn't:
    Then select it and click the 'Erase tab' at the top.
    Select Mac OS Extended-Journaled formatting from the Volume Format menu.
    Then click the oval Erase button at the lower right. Just remember-this will erase the drive!
    http://danslagle.com/mac/iMovie/usage/5006.shtml
    Sue

  • How to play video files that are in Drop box on iPod?

    How to play video files that are in Drop box on iPod?

    I am going to have to write a technote about this, because it comes up a lot.
    Flash Player itself is designed to play SWF content as a browser plugin or as an ActiveX control (when it's IE Windows).
    There is a standalone Flash Player, but that's something Adobe  provides directly as a feature of Flash CS4 Professional. It gets installed with Flash. We have made some standalone players available on http://www.adobe.com/support/flashplayer/downloads.html, but not all (and I don't know why.  Looking into it)
    There are numerous 3rd party standalone SWF players out there though.  Some designed to just play video, others that play full SWF. I suggest a google search of 'play SWF standalone' and read the results.
    On the Mac, consumers who want to play SWF content off their desktop can use the Adobe Media Player. You can import a local SWF (and FLV and other video) and play it in AMP.  Get it here:
    http://www.adobe.com/products/mediaplayer/
    That's Mac only, doesn't work on Windows.

  • Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file

    Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file
    How do I fix this?

    That would probably be a question best taken up in on a site for Windows support questions. Not knowing anything about the movie you're trying to play, all I can suggest is to confirm that the format of the movie you wish to play is supported in your version of WMP. If it isn't, you'll either need to convert the movie or use some other player software.
    Regards.

  • Play audio files in Bridge CS6

    Hi,
    I used to be able to play audio files created with my Mk4 right in the preview window in CS4 which was easy for renaming files after their description was recorded when taking the shot.
    Does anyone know how I can do this in CS 6 - there are no play/pause controls under the preview like there was in CS4.
    Thanks Heaps for any help.

    Hi ,
    yes , MK4 and .wav files
    I have Mac 10.7.5 & Bridge CS6
    I have selected "Play audio files automaticly when selected" in the preferences but it doesnt do it.
    In previous versions of bridge you could get a play and pause buttons below the .wav icon view in the preview
    but this doesnt happen.
    It is really inconveinent as it defeats the purpose of having the .wav file and the I have to go back to Bridge CS4 to play the files.
    Thanks

Maybe you are looking for

  • How do i get rid of 39 cents on my account to later switch the country to canada?

    hello everyone, i have a US account with 39 cents on it that i obviously cant spend of anything. I live in canada now and i have 20 free song downloads that id like to use but am not allowed to on my US account. I cannot change my country with the ba

  • New macmini - keyboard fails to pair

    I just unpacked a new macmini. My old mouse will pair with it (I use a trackpad on the i7 now) but the new wireless keyboard will not pair with the macmini. I tried powering off the i7 and removing batteries from the othey keyboard and trackpad but t

  • How I must use GENERATE_SEQUENCE_NUMBER?

    I have a form that has a detail and I want generate a unique sequence number when a record is created. But I don't know how use the GENERATE_SEQUENCE_NUMBER built-in. Somebody could help me? Thanks null

  • Twitter iOS Notifications Badge broken

    Has anyone figured out how to disable the Twitter icon notification badge on iOS 8 yet? Option not present in Settings.app...

  • Session in-memory replication problem

    Hi,           I am running into some cluster HttpSession replication problems. Here is           the scenario where replication fails (all servers mentioned here are a           part of a cluster).           1a - 2 Weblogic servers (A&B) are running