[flexcoders] VideoDisplay volume problem

2007-05-28 Thread Paul DeCoursey
I am having an issue with a VideoDisplay.  It seems to ignore any
volume setting I set.  I have tried to set it to 0 at many different
places and times in my code and every single time I can still hear the
audio when the video starts.  Has anyone else had this issue?  Does
anyone have a workaround?

Thanks,

Paul




Re: [flexcoders] VideoDisplay volume problem

2007-03-13 Thread Julian Sander

Hi David,

the problem is based on the conditional in the VideoDisplay function  
set volume...

I had to track this down and found a temporary workaround..



package com.iahh.teaser.ui
{
import mx.controls.VideoDisplay;


public class IAHHVideoDisplay extends VideoDisplay
{

public function IAHHVideoDisplay()
{
//TODO: implement function
super();
}
override public function set volume(value:Number):void
{
	  // change value by just a touch to trick the super class into  
taking it.

super.volume = value+0.1*Math.random();


}
}


}


I created a subclass that I have tied into my mxml file using a new  
namespace and just override (overrode) the volume setter.  it does  
the trick for me.  btw, the random is needed to insure that you can  
set the same value, like 0 at every new source attachment.


cheers, Julian


On Mar 9, 2007, at 7:57 PM, David Gassner wrote:


Using the VideoDisplay component, it seems that setting the volume
property doesn't have any effect. For instance:



results in playing the video, but the sound is still there. I've also
tried setting the volume to 0 just before playing, and even calling
SoundMixer.stopAll(), but I can't seem to turn the sound off.

Any ideas?

Thanks,
David







[flexcoders] VideoDisplay volume problem

2007-03-09 Thread David Gassner
Using the VideoDisplay component, it seems that setting the volume 
property doesn't have any effect.  For instance:



results in playing the video, but the sound is still there.  I've also 
tried setting the volume to 0 just before playing, and even calling 
SoundMixer.stopAll(), but I can't seem to turn the sound off.

Any ideas?

Thanks,
David