Forum Discussion
Video play/pause toggle on click
Hey Everyone,
I have embedded a screen recording video on a slide, and would like to disable the default pause/play function that occurs when the user clicks on the video. The only work around that I have found is covering the video with a hotspot. Is there a way to disable this feature? Thanks in advance for any advice/input.
- AdamYergerCommunity Member
Hello,
I know this is an old thread, but for the sake of anyone searching this topic, a good solution to this is to add the video to your base layer, and then create a new layer that is set to appear when the timeline starts.
- On the new layer, ensure that you have disabled the "Hide other slide layers", "Hide objects on base layer", and "Pause timeline of base layer".
- Next, make sure you have enabled the option "Prevent the user from clicking on the base layer".
This should allow your video to play in the background on the base layer, and disable the native "play/pause" when a user clicks directly on the video object. If you have other items that need to sync or work with the video layer, it would probably be best to keep them on other layers (not the base layer).
Adam
- KarynHarlow-ea3Community Member
Adam, this was really helpful but it looks like the layer I've added is gray or shaded...even though there is nothing on it. Do you have any insight on this issue by any chance?
- BlakeMohlerCommunity Member
Hi -
If you put a square over the video to try and block the user from clicking it as suggested, you can't set the fill to "no fill". You instead have to pick any color and set the transparency to 100% using the Format Shape option. THAT will fix the problem for you, and I find it to be simpler and faster than trying to set up triggers, layers, or hotspots.Good luck!
- AlejandroChavezCommunity Member
Just now had the same issue, and i find another solution based on Ashley comment,
I changed the video options,
In the options bar, i changed the option "Play video" to "From trigger", this disable the option to click the video, so you cant stop it with a click,
Altough you need to add a little trigger to start the video, in my case, i need the video to start at the begining of my slide so i add the following trigger,
To start the video when the timeline of my slide starts;
In case you need to start the video at certain time you can use the trigger when "Timeline reaches" and set the time, so i guess its a 3 solution.
Sorry for the bad english have a great day.
- PabloRico1Community Member
Definitely this is my favourite option, Alejandro.
Muchas gracias,
Pablo.
- LisaPastoor-51cCommunity Member
This worked perfectly!!!
- GertieMcQuil151Community Member
you saved the day!
- ChristineHendriFormer Staff
Hi Kerry and welcome!
The best method I've seen for this is to cover the video. You don't really need to use a hotspot, but you certainly could.
In the past, I've recommended creating a shape and covering the area - then make this shape transparent.
The reason I prefer the shape is because you won't get the cursor change that occurs when you're hovering over a hotspot.
I hope that helps!
Best,
Christine
- amanda_sirianniCommunity Member
Thanks, Christine! Your solution worked for me. By adding a transparent shape to cover the entire the slide, the learner can't click on the video to pause it.
- KerryPCommunity Member
Hi Steve and Ashley, thank you for your replies.
Steve-
Thank you for the suggestion, but I still need to be able to sync the video to the timeline. Looks like I'll either have to leave it as is or go the hotspot route.
Ashley-
I have the player controls disabled. What I am referring to is when the user drags their mouse over the slide, specifically over the embedded video and clicks. It will pause the video if it is still in play, or replay if the video has already completed. I have the video set to remain on the timeline for the length of the entire slide.
Thanks again for the suggestions.
- DouglasHarrimanCommunity Member
I'm a fan of the transparent, solid fill shape on top solution and would add that if you use it, make sure to also hide the video from accessibility tools, since without that, someone using keyboard navigation could still tab to the video and hit enter to play/pause it. And if you had wanted to alt tag the video so screen reader users knew it was there, just alt tag the transparent shape instead.
Hiding the video from accessibility tools isn't necessary with Adam's layer solution, as the Prevent users from clicking on the base layer setting also essentially hides everything in the base layer from accessibility tools while that layer is open.
I typically set mine to 99% just in case...but 100% should work fine. 🙂
If you're running into a problem with a file, feel free to upload here Vicki and we'll take a look!
- SteveMcAneneyCommunity Member
Convert to swf, then insert as video. Unfortunately it won't be synched with the slide timeline any more though.
See the below thread on the subject:
Hi Kerry and welcome to Heroes!
You can also use the Video formatting options and unselect "show video controls" to prevent the user from clicking on the play/pause button or the video's seekbar:
- AllisonZwozdeskCommunity Member
Thank you Ashley! This is a huge help!
- MaureenKilgoreCommunity Member
Hi Christine!
I've just tried the shape suggestion and it's not working. When we click on the active video, the movement of the voice continues, but the video action (cursor moves) stops. Any solutions to this that you know of?
Thanks!
Maureen- VickiKnowlerCommunity Member
Hi there, thew shapes Transparency needs to be at 99% not a 100 %
- MarianLewisCommunity Member
Are you sure? My .story works perfectly at 100%. I just checked it to be certain.
- JanaGodwinCommunity Member
We used this technique which did not work either at first. We had to make the FILL a color and then make it 99% transparent, so you could not see it. Apparently, a rectangle shape without a fill becomes a border and you can click anything inside it. But giving it a FILL almost transparent changes it to a "cover" box.
However, I like Adam Yerger's suggestion below!