Vote count:
0
When I set the value to -1 or 1, it still plays sound from both speakers. The volume setting is working fine. I also found that SoundTransform is working when I play a local audio file using SoundChannel. You can find snippets of my code below. It's working fine to play the audio and video from a stream, only the sound panning part is not working.
I am using FMS4.5 as the streaming server. My application is a desktop application running AIR3.4.
private var videoNetStream:NetStream = null;
private var video:Video = null;
videoNetStream = new NetStream(mediaServerConnection.netConnection);
videoNetStream.client = new Object();
videoNetStream.client.onMetaData=ns_onMetaData;
video.attachNetStream(videoNetStream);
videoNetStream.play(streamName);
videoNetStream.soundTransform = new SoundTransform(1,-1);
asked 50 secs ago
AS3, NetStream.soundTranform.pan is not working.
Aucun commentaire:
Enregistrer un commentaire