Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Difference between MediaPlayer volume and Controbar's volumebar volume

Explorer ,
Sep 26, 2015 Sep 26, 2015

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!!

TOPICS
ActionScript
389
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 27, 2015 Sep 27, 2015

you may be changing the bar's position before the stream starts.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 27, 2015 Sep 27, 2015

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 ?  

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 28, 2015 Sep 28, 2015
LATEST

again, change to .8 AFTER the stream starts or, at least, is initialized.  ie, use a listener.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines