Copy link to clipboard
Copied
I have a custom built Flash video player which streams videos from a server. When I start the videoplayer the Mediaplayer's volume I get is 1.0 even though I have set the volumebar's initial volume to 0.8.
i.e. When I am doing Console.log(MediaPlayer.volume), I am getting a value of 1. But the volume bar's volume is showing as 0.8. When I drag the volume bar to change the volume, the Mediaplayer's volume changes according to the dragged value of the volume bar. Then why the mediaplayer volume shows as 1.0 initially? Please help!!
Copy link to clipboard
Copied
you may be changing the bar's position before the stream starts.
Copy link to clipboard
Copied
I have set the volume bar's initial value as 0.8. When I am starting the videoplayer without changing the bar's position I am getting videoplayer's volume as 1.0. After the videoplayer starts when I am changing the position of the volume bar from 0.8 to any other position say 0.5, then the videoplayer's volume changes to 0.5. But when the videoplayer starts its volume is 1.0 though the volume bar's initial value is set as 0.8. Why the videoplayer doesnot take the volumebar's initial position when it starts ?
Copy link to clipboard
Copied
again, change to .8 AFTER the stream starts or, at least, is initialized. ie, use a listener.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now