Hi everyone,
I want to be able to PAN the stereo channel of the flv file.
Ostensibly so that I can play one of 2 languages (right channel or left
channel) when the flv is being played.
I have "played" with sound mixer and cannot get this to work with the flv.
Can I use soundMixer with videoPlayer and if so, can anyone correct my
(below) code?
TIA,
Phil.
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
protected function myVideo():void
{
var soundMixer:SoundTransform = new SoundTransform();
soundMixer.pan = 1;
myVid.soundTransform = soundMixer;
myVid.play();
}
]]>
</fx:Script>
<s:VGroup width="100%" height="100%">
<s:Button id="playVideo" label="Video" click="myVideo()"/>
<s:VideoPlayer id="myVid"
source="assets/caroLang.flv"
volume="1.0"
width="50%" height="50%"
autoPlay="false"
autoDisplayFirstFrame="true"
scaleMode="letterbox"
/>
</s:VGroup>
</s:View>
--