Forum Discussion
Pause/Stop and play videos in SL360 by using the space bar
Dear Storyline-Fellows,
I am currently looking for a way to pause/stop and play a video by pushing the space bar on the keyboard. Apparently that works after navigating/tabbing to the play/pause-button of the video player which storyline provides. But is there any possibility to make this work without navigating there beforehand with the Tab-Button? Just like I am watching a YouTube-Video and it automatically recognizes that I use the space bar for pausing/playing the video?
Thanks for your help in advance.
Best regards
Bernhard
- MariaCSStaff
Hi, Tommy.
I'm happy to help you further!
You can find the Toggle option under the Adjust Variable action. Click on the word Set, and you'll be able to change it. See below:
Let me know if you have additional questions!
- MariaCSStaff
Hi, Bernhard.
Thank you for reaching out!
While not a current feature of the video control options, you can create your own trigger for playing and pausing a video using the spacebar.
Since you will be using the same key for both actions, you need to tell Storyline when to pause and when to play. You can do that by toggling a True/False variable:
After creating the variable, add three triggers connected to pressing the spacebar:
- Play the video when the variable is True.
- Pause the video when the variable is False.
- Toggle the variable.
Preview:
I hope this helps!
- VincentOlakanyeCommunity Member
Thanks Maria Costa-Stienstra. This solution was super helpful and way easier than using layers. I tweaked my command to pause/play the timeline instead and it worked perfectly. You could even see the play/pause icon visibly change without having to create any button/layer. All done on the master slide. I'll appreciation your feedback in case a newer solution has been released or if there limitations to this set up. Thanks.
- Borg_CubeCommunity Member
Thanks for this, however I can only get the pause-functionality to work. I have the 2 bottom triggers you show in place, but I can't figure out how to create the "Toggle pause" one at the top of the hierarchi.
- Borg_CubeCommunity Member
Thank you, Maria. Works great!