Skip to main content
Known Participant
August 11, 2010
Question

How to play audio

  • August 11, 2010
  • 1 reply
  • 803 views

Hi,

I am developing video chat application.I am able to play published video stream.But I am unable to hear sound which is published along with the video.

The video is visible but sound is not comming.What is going wrong.Does anybody could point me in right direction.Thanks in adavance.

Srinivas

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    August 11, 2010

    How are you publishing - are you using SWF client to publish, if yes are you publishing with audio or its just video. Check if you are attaching Microphone to your netstream using attachAudio

    Known Participant
    August 11, 2010

    I am publishing both video and audio:

    if(isPublisher){

    //this is publisher side:

      microphone = Microphone.getMicrophone();

      ns.attachAudio( microphone );

      video.attachCamera(camera );

      videoDisplay.video = video; //custom component in flex

      ns.attachCamera( camera );

      ns.publish(data.nickName);

     

    }

    else{

    //this is subscriber side:

    video.attachNetStream(ns);

    videoDisplay.video = video;

    ns.play(data.nickName);

    }

    both publisher and subscriber videos are seen.I am using customItemrender of tilelist where I display my videos

    as tiles.When the first user enters his  sound is heard at subscriber side but the sound from subscriber's is not heard.

    My question is,if video is visible then sound also should be played along with it.What is wrong with me.Please point.

    Thanks

    Srinivas

    Participating Frequently
    August 11, 2010

    Did not get what did you mean by - "When the first user enters his  sound is heard at subscriber side but the sound from subscriber's is not heard."

    Also are you using single instance of client to publish and subscribe or are there two instances of same application - one used as publisher and one used as subscriber.