# Sound Channels and Live Video Feeds

**URL:** <https://forum.kirupa.com/t/sound-channels-and-live-video-feeds/242352>\
**Category:** flash\
**Created:** [October 24, 2007, 11:55pm UTC](https://forum.kirupa.com/t/sound-channels-and-live-video-feeds/242352 "2007-10-24T23:55:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrmyers](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@mrmyers](https://forum.kirupa.com/u/mrmyers)\
**Post date:** [October 24, 2007, 11:55pm UTC](https://forum.kirupa.com/t/sound-channels-and-live-video-feeds/242352/1 "2007-10-24T23:55:09Z")

</div>

Hello All,  
I spent the better part of the afternoon researching this one and have come up empty handed. The app I am designing displays two live webcam streams from an FMS. What I want to do is control the audio from each stream so that camera1’s audio plays in the left speaker only and camera2’s audio plays in the right speaker only. I know this is done via soundchannels and soundTransforms, but how do you associate a soundChannel with the audio from a live webcam stream? All of the documentation I have read illustrates how to associate a soundChannel with a static mp3 file. ie:

```auto

sc = s.play();

```

The following code is what I am working with thus far. All I have been able to do is successfully control the volume with a soundTransform, but I can’t seem to do anything with pan and I think it is because I am lacking the knowledge concern creating a soundChannel to control a live webcam stream:

```auto

inStream1 = new NetStream(client_nc);
incomingVid1.attachNetStream(inStream1);
trans1 = new SoundTransform();
trans1.volume = .5;
trans1.pan = -1; //doesn't work
inStream1.soundTransform = trans1;
inStream1.play(video1);
 
 
inStream2 = new NetStream(client_nc);
incomingVid2.attachNetStream(inStream2);
trans2 = new SoundTransform();
trans2.volume = .5;
trans2.pan = 1; //doesn't work
inStream2.soundTransform = trans2;
inStream2.play(video2);

```

Thank you for your time and energy!  
Nate
