Recipe 16.2.
Controlling Video Sound
Problem
You
want to control the volume
and pan transform of the sound portion of the video.
Solution
Use the soundTransform property of the
NetStream object.
Discussion
If a Flash video has an audio track, the audio
plays back automatically along with the video. If you want to
manage the volume or pan transform of the sound you can use the
soundTransform property of the NetStream object to
retrieve a reference to the SoundTransform object associated
with the audio. For more details on working with
SoundTransform objects, see
Recipe 15.14.
See Also
Recipe 15.14
|