Opened 9 years ago

Last modified 9 years ago

#12068 new bug

Media Player changes volume when the Window looses focus.

Reported by: bbjimmy Owned by: stippi
Priority: normal Milestone: Unscheduled
Component: Applications/MediaPlayer Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

hrev49135

Launch MediaPlayer by double-clicking an mp3 file and set the volume as desired.

Click in another window to continue working. MediaPlayer sets the volume lower. Click MediaPlayer to adjust the volume again, the volume returns to where it was set. Click another window and the volume is too low again.

Change History (6)

comment:1 by korli, 9 years ago

It's actually a feature, i think there is a setting to disable it.

in reply to:  1 ; comment:2 by jessicah, 9 years ago

Replying to korli:

It's actually a feature, i think there is a setting to disable it.

There is, but it's supposed to only apply to video clips from my understanding. The code at https://github.com/haiku/haiku/blob/master/src/apps/mediaplayer/Controller.cpp#L355 doesn't perform this check.

comment:3 by humdinger, 9 years ago

I can't reproduce this as it is described. MediaPlayer only plays at a lower volume when in background (and activated in the settings) if there are more than one MediaPlayer windows running. If you have just one MediaPlayer and switch to any other app, it keeps playing with the set volume.

This feature is nice for demonstrations, where you open 12 videos and a few audios. The audience isn't overwhelmed and can concentrate on the thing having focus. For everyday use, it's not an issue because you either only have one MediaPlayer running at a time anyway, or you disable the feature via its setting.
It could be argued to disable it by default, I guess.

comment:4 by korli, 9 years ago

Component: Applications/MidiPlayerApplications/MediaPlayer
Owner: changed from korli to stippi

in reply to:  2 comment:5 by stippi, 9 years ago

Replying to jessicah:

Replying to korli:

It's actually a feature, i think there is a setting to disable it.

There is, but it's supposed to only apply to video clips from my understanding. The code at https://github.com/haiku/haiku/blob/master/src/apps/mediaplayer/Controller.cpp#L355 doesn't perform this check.

Why would it only apply to videos?

comment:6 by bbjimmy, 9 years ago

Sound files are usually run in the background, Video is more of an up front and in your face media. It doesn't feel right to have the volume change on a sound file if you focus on another window, but seems reasonable for video.

Just my twio cents.

Note: See TracTickets for help on using tickets.