video sound
-
Hi, Alruwaili Omar!
Here are few things to check:
1. Be sure that imported video has an audio track
2. Select your video texture on a Resources Panel then on The Inspector panel please check if your volume is not set to 0
Audio should play automatically when you play a video.
You can use next script to mute and unmute the video:
//@input Asset.Texture videoTexture
var control = script.videoTexture.control;
var soundOn = true;
script.createEvent("TapEvent").bind(function (eventData) {
soundOn = !soundOn;
if (soundOn) {
control.volume = 1.0;
print("Sound is on");
}
else {
control.volume = 0.0;
print("Sound is off");
}
});Let me know if this works for you!
Best
Olha
Comment actions -
I am having this same issue. Your GIF is really helpful and explains how it should work, however, when i move the slider it automagically defaults back to zero, i.e. it won't stay at anything other than 0
Is this a bug, or am I missing something?
Comment actions -
PS I have tried the script too, but alas, still same result
Comment actions -
Hi jeff rayner
There is definitely sone undesired behavior here, than you for reporting! Our engineers will look into this
Apparently when you set the volume a couple times if will work
Best
Olha
Comment actions
Please sign in to leave a comment.
Have a comment?