Simultaneous Recording in file and  playing incoming rtp stream

I want to Simultaneous Recording in file and  playing incoming rtp stream.I have cloned the data source. After cloning I created two data sinks and two processors.One processor/datasink is meant for recording the stream in a file and other processor/data sink is used to play the rtp through speaker.
But at a time I am only able to achieve one operation i.e either recording or playing.For recording into the wav file I have to put Thread.sleep(30) so that I can record the rtp into the file.During this time I am not able to play the audio through speaker.I also create separate thread but this does not help.
Please give suggestion on how to resolve this issue.

thanks for the reply, but I think I've already solved the problem.

Similar Messages

  • Can I play and save the incoming RTP streams simultenously

    Hi,
    I want to whether i can play and save the incoming RTP stream simultenously using
    JMF 2.1. The idea is by saving in the file, i can playback the same file later time
    Is there any example code aviliable.
    Thanks in Advance
    bye
    Srikanth

    I think this, today, it's impossible lamentably. By but that I have tried it, I have not been able to obtain it.
    If exists someone that it has obtained it, please, help us with this subject. It's very important.
    Thanks

  • How do I record myself singing and playing and still be able to manipulate the volume of either the voice or the guitar? Or is that possible?

    How do I record myself singing and playing and still be able to manipulate the volume of either the voice or the guitar? Or is that possible? I have a single mic.

    GarageBand cannot unix audio files and split them into separate tracks.
    Record the guitar and the vocals to separate tracks. If you only have one microphone, record both tracks separately, one after the other.

  • Using a container to load several swf files and play them

    I need some help. I want to use several swf files and have them be called upon in a container file and play them in sequence. It's a presentation that needs to play thru but still have the ability to stop, click on items, open a popup and then continue on in the presentation. I am building all the individual "chapters" and their "sub-chapters" as swf files, with the hope that I can load them in order. I am relatively new to AS3. Help?

    If you will be loading swf files into a container then you will use the Loader class to accomplish that, so give that a looking over in the help documents and see what you can do.  If you have a problem getting it to work, post your code and describe what you have done.

  • Hello! I have some my violin recorded audio files and want them to be converted to printable notation throw "audio to score"from Factory. But do not have a normal result. Could someone help me, please. .

    I have some my violin recorded audio files and want them to be converted to printable notation throw "audio to score"from Factory. But do not have a normal result. Could someone help me, please. .

    seeren wrote:
    Normal result is on the sloppy side of inaccurate.
    Wish I'd started this topic so I could give you a green star!
    Great description.

  • I have backed up my iPad  using iTunes to windows 8 Lenora laptop but I could not find my files and play video files  in my laptop.

    I have backed up my iPad  using iTunes to windows 8 Lenora laptop but I could not find my files and play video files  in my laptop

    You cannot access files in the backup on your computer.
    Do you mean that you synced with iTunes and transferred your purchased videos and app documents? If that is what you mean, what videos are you talking about? If they are videos that you took with the iPad, they do not sync to iTunes. What files?
    What exactly are you trying to do? Details please.

  • Anyone successfully recording mic audio and playing it back on ios?

    hey all
    i am having a lot of annoying problems with recording microphone audio and playing it back on the iPhone (same app works flawlessly on desktop and android)
    has any of you successfully done that?
    Saar

    @Varun Bhatia,
    yes i can
    my simple recording test app works great on the desktop and on Android.
    on the other hand, on ios (iPhone 3gs, latest os) i sometimes hear nothing on playback, sometimes just the end of the recording, sometimes the playback is stuttering.
    thanx,
    Saar
    i am using flash pro cs5.5 overlayed with the AIR 3 sdk.
    the FLA contains two movieclips on stage named "recorder" and "player". they act as buttons. all the code is in the document class:
    package  {
              import flash.display.Sprite;
              import flash.media.Microphone;
              import flash.media.Sound;
              import flash.media.SoundChannel;
              import flash.events.MouseEvent;
              import flash.events.SampleDataEvent;
              import flash.utils.ByteArray;
              import flash.events.Event;
              import flash.media.SoundMixer;
              import flash.media.AudioPlaybackMode;
              public class RecTest extends Sprite {
                        var mic:Microphone;
                        var s:Sound;
                        var sc:SoundChannel;
                        var nowRecording:Boolean = false;
                        var nowPlaying:Boolean = false;
                        var recordedBytes:ByteArray;
                        public function RecTest() {
                                  SoundMixer.audioPlaybackMode = AudioPlaybackMode.MEDIA;
                                  mic = Microphone.getMicrophone();
                                  mic.rate = 44;
                                  mic.gain = 70;
                                  mic.setSilenceLevel(0);
                                  s = new Sound();
                                  recordedBytes = new ByteArray();
                                   recorder.addEventListener(MouseEvent.CLICK, record);
                                   player.addEventListener(MouseEvent.CLICK, playBack);
                        function record(e:MouseEvent) {
                                  if (!nowRecording) {
                                            trace("recording");
                                            recordedBytes.clear();
                                            mic.addEventListener(SampleDataEvent.SAMPLE_DATA, getMicAudio);
                                            nowRecording = true;
                                  } else {
                                            trace("recording stopped");
                                            mic.removeEventListener(SampleDataEvent.SAMPLE_DATA, getMicAudio);
                                            nowRecording = false;
                        function getMicAudio(e:SampleDataEvent) {
                                  recordedBytes.writeBytes(e.data);
                        function playBack(e:MouseEvent) {
                                  if (!nowPlaying) {
                                            trace("playing");
                                            recordedBytes.position = 0;
                                            s.addEventListener(SampleDataEvent.SAMPLE_DATA, playAudio);
                                            sc = s.play();
                                            sc.addEventListener(Event.SOUND_COMPLETE, stopPlayback, false, 0, true);
                                            nowPlaying = true;
                                  } else {
                                            sc.stop();
                                            stopPlayback();
                        function stopPlayback(e:Event=null) {
                                  trace("playing stopped");
                                  s.removeEventListener(SampleDataEvent.SAMPLE_DATA, playAudio);
                                  nowPlaying = false;
                        function playAudio(e:SampleDataEvent) {
                                  for (var i:int = 0; i < 8092 && recordedBytes.bytesAvailable > 0; i++) {
                                            var sample:Number = recordedBytes.readFloat();
                                            e.data.writeFloat(sample);
                                            e.data.writeFloat(sample);

  • Weird timing issues when playing back a recorded sound file and with synths

    Hello there,
    I'm having a couple of strange issues with playing back files that I have recorded using MIDI data which is then used to play an external synth which then gets recorded to an audio track which at the time is perfectly synced to a click track.
    The problem is (and I really dont get why this is happening) when it comes to playing back the recorded audio file that sometimes it is either behind or ahead of the beat.
    This makes absolutely no sense because sometimes it IS in time with the beat and other times when I play through my piece it is obviously out! I haven't moved the audio file in the arrange window and it is a permanent .aiff file that is stored on my hard-drive...what on Earth is going on?
    On a side note, the same problem happens with any of Logic's synths when I use an LFO that is supposed to be synced to the beat. Sometimes when I play back the MIDI data it is perfectly synced and in time and other times it is horribly out. It really is just pot luck!
    Anyone got any ideas?

    Thank you supermacmom!
    I have the LifeProof case for the iPhone5, and I remember the instructions saying that any protective screen cover should be removed before enclosing the phone into the case, but I left mine on with no ill effects.
    But I should have taken off the back protective film, which was covering the video mic!

  • Record audio clip and play back it into media player

    how can i record voice clip using java application and play back it with media player.

    870902 wrote:
    how can i record voice clip using java application and play back it with media player.1) Record from "javasound://0" using a Processor / DataSink
    2) Play back the file from 1 using a Player

  • How to export HD files and play them on Western Digital HD Media PLayer?

    Hi Folks,
    I'd need your help here. I shoot HD video in AVCHD with Canon HF200.
    My goal is to be able to export my edited footage with minimum quality loss and be able to play it on the well known Western Digital HD Media Player:
    http://www.wdc.com/en/products/Products.asp?DriveID=735
    The player supports the following formats for video:
    Video - AVI (Xvid, AVC, MPEG1/2/4), MPG/MPEG, VOB, MKV (h.264, x.264, AVC, MPEG1/2/4, VC-1), TS/TP/M2T (MPEG1/2/4, AVC, VC-1), MP4/MOV (MPEG4, h.264), M2TS, WMV9
    Here is what I do:
    1. I convert the avchd files into .avi using  Cineform Prospect HD.
    2. Then I import and edit the footage in Adobe Premiere Pro CS3
    3. Finally I export the edited footage using the ' BD-h.264 ' codec in the 'Adobe Media Encoder'
    4. I end up with two files after the export: .M4V file (video) and .WAV file (sound).
    The WD HD Media Player plays 'black' screen while displaying a message 'no audio'.
    I guess the exported file is not fully supported by the WD player,
    Any ideas? How can I combine the two files into one and play it on the WD player?
    Maybe I'm not exporting it correctly?
    Please share your experience and help me out.
    Thanks

    Let me give you an optimum example of my last HD to DVD timing.  The video was shot with two cameras under good lighting conditions and there was very little color correction required and only a few special effects.  The finished video was 39 minutes (1.35 GB).  The AME encoding time on my 8 core (2.33 GHz) with a really fast RAID 0 array was 36 minutes 48 seconds!  If you start adding in a lot of color correction and lots of other effects encoding time does increase significantly. I am convinced that the DVD was of much better quality that had we shot it in SD.  I have had problem shoots (lighting) that required vast amount of color correction etc. that required many hours of MPEG2 DVD encoding.
    Incidentlly I do not export from Premiere (which uses the new copy of the Project on your C:drive), I close Premiere and open AME and use the much faster true project file on my RAID 0 array.

  • Recording 16 tracks and play movie on Macbook pro

    Hi
    Has anyone experience with recording 16 tracks 24 bits and play in the same time a movie on a new Macbook pro 2,16 on a secondary screen ?
    On my G5 it's no problem.
    Thanks
    G5 2.3 DC   Mac OS X (10.4.6)  

    Hmm... I do recall there was some kind of external USB2 video input device. I think it was from ATI though i may be mistaken. One of there All-In-Wonder devices.
    Regardless, such devices do exist, though they are likely only composite, S-Video, or F-Connecter based, and will likely have some form of latency issues.
    You may want to look around to see if there any form of ExpressCard capture devices. The ExpressCard slot is is capable up fill PCI Express speeds around 2.5Giga bits per second, so I suppose it does have sufficient bandwidth to capture say Component or HDMI video. Though I'm not sure if such a device even exists.

  • Need to Append the records in file and want to Overwrite the file

    Dear SDners,
    I facing one scenario i am sending 5lacs records in 50k slots want to append these records in same file in one day and next day i want to overwrite the existing file............
    Plz suggest......
    Regards
    Ganga

    hI Santosh,
    I am not duplicating the posting .now i have now change my interface design my interface is not meeting my req ,by this append opreation as you also know that first want to append the records whole day in one file and then next day with same processing i want to over write the file.
    I think now u will get my point......................:)
    Regards
    Edited by: gangadhar kh on Feb 4, 2010 2:24 PM

  • I want to open a file and play back by clicking play icon, but Audition doesn't react.

    I've recently moved my computer with Windows 7 to Spain. Everything works fine, but not my Adobe Audition CS5.5. I want to open a file and click my play button, to play back the file, but Adobe doesn't react. Anybody know what could be wrong?

    I would try checking your hardware setup to ensure that your playback device is selected and setup properly
    From the main menu select Edit > Preferences > Audio Hardware

  • Play an rtp stream and save at the same time

    Hello
    How cam i play and save at the same time an rtp stream.
    can anyone help me about this.
    Thanks

    Hello
    How cam i play and save at the same time an rtp stream.
    can anyone help me about this.
    Thanks

  • Processor on incoming RTP stream

    I'm attaching a processor to an incoming audio ReceiveStream sent via RTPManager.
    The processor is so that I can record the ReceiveStream to a file via a DataSink.
    Sometimes the processor fails to configure and I can't figure out why, but other times it configures ok and carries on to process the incoming audio stream.
    I always create and configure the processor on the StreamMappedEvent of the ReceiveStream.
    During testing, I'm always sending the same audio via RTP to my receiving class, so I'm really not sure why sometimes the processor should fail to configure but other times it works fine.
    Is this why all the examples using processors always have a waitForState and then a check for the processor being configured ?
    I had to slightly amend the waitForState method so that it gives up after a certain amount of time, otherwise it would loop forever waiting for the processor to configure.

    Is this why all the examples using processors always have a waitForState and then a check for the processor being configured ?
    I had to slightly amend the waitForState method so that it gives up after a certain amount of time, otherwise it would loop forever waiting for the processor to configure.
    If you look (again) at the examples - they do block at various stages in the 'configuration' process
    If your App doesn't like this mechanism (after all the examples are just that) then perhaps you should seperate out your code and use the Listener Interfaces

Maybe you are looking for

  • Help re: Recovered Photo Albums

    Hi there, I have an album in my iPhoto library called recovered Photos. When I open it up it shows 50 jpgs but doesn't show the picture of what it is. When I click open, it won't open and it shows that I have images in there, but when I click to open

  • CR410 for CRM5.0

    Hi Can any one give me the CR410 (Interaction Center Web Client) for CRM5.0 My id is [email protected] Thanks and full points for help Thanks & Regards Amit

  • Fact table/Cube mapping

    I'm relativly new to the OWB but I'm in the learing proces...I have some serious problems mapping the cube. How do I map my surrogate dimension key into the cube (which has the same surrogate key)? Do I have to map them at all or are they automatical

  • Data Security in Sys Admin

    Hi, I wanna ask about "Data Security in Sys admin", how it can be done (setup)? Thanx

  • How to use facetime to call my iphone 4s?

    I have an ipad2 & i cant used facetime to call my iphone 4s & vice versa.