MAJigsaw77 / hxvlc

A Haxe/OpenFL library for @:native video playback using libVLC.
https://lib.haxe.org/p/hxvlc
MIT License
42 stars 19 forks source link

[Flixel] Volume doesn't follow application volume #25

Closed ActualMandM closed 8 months ago

ActualMandM commented 8 months ago

When a video is playing, adjusting it in volume mixer will have the video volume adjust for a split second before going back to Flixel's set volume.

https://github.com/MAJigsaw77/hxvlc/assets/15317421/037bc916-5cef-4214-ace9-cd3a8f408536

MAJigsaw77 commented 8 months ago

As you can see, on the flixel backend we are automatically handling the volume according to flixel's sound global volume.

MAJigsaw77 commented 8 months ago

But you can prevent that by setting autoVolumeHandle to false.

MAJigsaw77 commented 8 months ago

Maybe there might be a issue with the mute variable.

MAJigsaw77 commented 8 months ago

Try the latest commit on the repo and see if it works now.

MAJigsaw77 commented 8 months ago

Try the latest commit on the repo and see if it works now.

It's kinda odd to me tbh, i never seen something like this before.

MAJigsaw77 commented 8 months ago

Ok so, after doing some research, this issue might actually be impossible to fix as we are constantly setting the volume of the libvlc media player to the flixel sound global volume.

MAJigsaw77 commented 8 months ago

Ok so, after doing some research, this issue might actually be impossible to fix as we are constantly setting the volume of the libvlc media player to the flixel sound global volume.

Apparently it might be related to this issue https://forum.videolan.org/viewtopic.php?t=142860

MAJigsaw77 commented 2 months ago

https://github.com/MAJigsaw77/hxvlc/commit/7e1f85bcb9271d686588572ee98d6c777d58b8cb

MAJigsaw77 commented 2 months ago

This ended up fixing this issue.