Hi, I want to add a mouseover event in an embedded video.
I want the sound of the video to play when someone hovers and stop the sound when they mouseout (only the sound not the video).
I only found ways to do that when I import a video but mine is streaming from youtube.
I want to know where and what code should I add to make this happen.
The code I used (found in a tutorial with some amateur additions of mine) in composition ready is the following:
Can you try the following code, on a mouse over event for element in question:
youtube.muted = !youtube.muted;
Edit: on second thought its youtube reference and what I have may not work - but give it try and let me know.
The sample used was different than yours.