Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: AxelG on January 02, 2020, 10:08:00 PM
-
Hello,
In my current project I'd like to be able to control the volume of a videoclip with a float variable.
There is no action for in Playmaker so I tried the "Set Property" action and at my surprise, there is most of the videoclip property but not the "Volume" one.
Is it on purpose or it's an oversight?
In any case does someone know how to achieve that?
Best,
Axel
-
Up before it goes on second page.
Anyone?
-
Try running it through an Audio Mixer and control levels...?
-
Hey there,
Thanks, already tried. Couldn't solve my problem, so I went for an other way:
Separating the audio from the video. It's quite sad that there is no other solution but it works.
Best,
Axel
-
Hi,
I think you have to redirect the audio first to an audio source
https://docs.unity3d.com/ScriptReference/Video.VideoAudioOutputMode.html
Bye,
Jean
-
Hi,
you also have this: https://docs.unity3d.com/ScriptReference/Video.VideoPlayer.SetDirectAudioVolume.html
can you use the action VideoPlayerGetCanSetDirectAudioVolume, does it says yes or no?
Bye,
Jean
-
Hi Jean,
Thanks for your tips, I already tried the VideoPlayerGetCanSetDirectAudioVolume.
It says yes but the value is a boolean that I created. Maybe I'm not using it correctly.
Redirect the audio from an audio sources is what I did :)
Best,
Axel
-
Hi,
that must be it then, anyway, for all my video needs, I have to say that relying to AVPro was a great move, but it's not free.
Bye,
Jean
-
Hi Jean,
Thanks for the tips I'll think of it, but it's rather expensive for now.
Also, the post wasn't really solved, since I'm using the solution I came-up with from the beginning. I still can't set the volume directly to the videoplayer.
-
Hi,
I uploaded on the Ecosystem a new action VideoPlayerSetDirectAudioVolume. Can you get it and check if it works for you?
Bye,
Jean
-
Thank you Jean, it works!
Best,
Axel
-
I uploaded on the Ecosystem a new action VideoPlayerSetDirectAudioVolume. Can you get it and check if it works for you?
Hello Jean, sorry for the necro, but I can't find this action anywhere. Not on the Ecosystem or GitHub. :-\
I installed the Video Player 'full' package, and yes I get a lot of actions, but not that one.
Could you post it here, please?
Thanks!
-
Hi.
i found the action on a backup from github.
I have attached it below, i have not tested if this is working tho.
Let me know if it works
-
Thank you so much for taking the time finding it! ;D
I'll try it tomorrow and get back here to report.