Opened 4 years ago

Last modified 4 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:
Has a Patch: no 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 Changed 4 years ago by korli

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

comment:2 in reply to:  1 ; Changed 4 years ago by 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.

comment:3 Changed 4 years ago by humdinger

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 Changed 4 years ago by korli

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

comment:5 in reply to:  2 Changed 4 years ago by stippi

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 Changed 4 years ago by bbjimmy

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.