The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

22. November 2011, 23:13:23

Alexandr15251

Posts: 3

Help!!!

Help please make volume control for radio can't understand. Maybe some people do?

24. November 2011, 08:57:33

d4n3

Posts: 957

If you want help, you need to be more specific about what you're trying to do.

Are you writing an extension for internet radio? Are you using the Audio element and want to add a control that adjusts the volume?
Do you have visible UI for the audio element or is it just running in the background? Is the audio element running in the background process?

You should probably look into the volume property of the Audio object. It's a value between 0.0 and 1.0 that controls the volume of the element.

24. November 2011, 12:39:07

Alexandr15251

Posts: 3

I am writing an extension for Internet radio help make the volume of the expansion for

24. November 2011, 13:36:07

d4n3

Posts: 957

So how exactly is your extension structured? Where is the UI displayed? Where does the audio element reside?

Btw. I'm the developer of the Radio Dial internet radio extension. smile

30. November 2011, 14:44:51

d4n3

Posts: 957

I had a quick look at your extension, and I see you're using a Flash embed for the player.

Honestly, I'm surprised that works - when I was writing my extension, I couldn't get a flash embed into the background process, so I used the HTML5 Audio element. It could be because I used the speed dial for the background.

What you'd have to do is figure out a way to send variables to the flash embed and figure out if/how your embedded flash can change volume.

I think it's possible to do javascript -> flash messaging, but I can't tell you how exactly. Also, it depends on how your embed works, so you should consult its documentation.

Good luck!

Forums » Dev.Opera » Opera Extensions Development Discussions