Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
As we saw last movie it's super easy to add a movie to your document because InDesign treats it like a graphic. I will go ahead and place that movie again and setup the Media panel. I'm going to chose Place, select my movie, click inside of here, I will wait for a moment while it loads the movie. And then I'm just going to scale this down to fit and setup a Media panel. Let's grab an image that we like a little bit more, and set that to be the current poster. Now, just like in the last movie, I'm going to turn on the controller and set the Show Controller on Rollover check box. So, we're in good shape here, but instead of forcing my user to click on the movie to play it, I'd like to add a button, a Play button. I'll open my sample Buttons and Forms library and grab a button out of here, maybe this green button.
I'll just drag it out and drop it on my page. Now, to make this button play the movie, all I need to do is go to the Buttons and Forms panel, make sure it's selected on the page, and then give it an action. Right now the action is set to Go to URL, so I don't want that. I'm going to delete it with a little Minus button. And instead I'll go to the Plus button and add a new action, and the action is going to be Video. When you choose Video, InDesign looks for all the videos that are on your current spread and gives you a list inside the Video pop-up menu. Right now there's only one video of course, so it just picked it for me. Then it lets me choose, what do I want to do to that video? And you can see in the Options pop-up menu, you have a bunch of different options.
I could play it. I could stop it, or pause, or resume it. In this case, all I want to do is play. Now, unfortunately, buttons in a PDF are one state. That is, you cannot make a single button do two different things, like I cannot make this one button play if the movie if the movie is not playing, but pause if it is playing. You can however, make two different buttons and then hide and show them. So, this is kind of a trick. I'm going to duplicate this button but before I do that I'm going to change its name. And I'm going to call this Play video. Now, I'll duplicate it simply by Option+Alt dragging. Now, I want this copy of a button to do something different. I want it to stop, so I'm going to come over here to the Action panel, choose Video.
It'll choose the same video, but I'm going to change the option to Stop. Then I'll change the name of course, I want to have a very descriptive name, like Stop Video. I'm also going to tell this button to be hidden until triggered. In other words, make it invisible until I tell it to show up. Now, you'll remember from an earlier chapter that you can hide and show buttons simply by using the Hide Show Buttons action. When someone clicks on this Stop Video button, I want it to not only stop the video, but I also wanted to show and hide some buttons.
Specifically I wanted to show the Play Video and hide itself, I am going to do the opposite thing for the play video button. I'm going to tell it to show and hide some buttons but its going to hide itself and show the Stop Video. Just so that we can see what's going on here, I'm going to change the color of the Stop Video one, otherwise it will be really hard to see that they've changed. So, I'll double click on this and then double click again to select the frame inside the button. This is the green frame and I'm going to change it to a different color, like blue.
Finally, I'm going to deselect everything by clicking off of the pace board and then dragging the Stop button on top of the green Play button. Remember, the Stop button is going to be hidden until it's triggered. And it's going to be triggered by clicking on the Play button. Okay, after setting this thing up, we better test it to see if it's going to work. I'll test it inside the SWF Preview panel instead of exporting a PDF. I'll open the panel, click Play, and up comes that one page. We have the video and we have the button. As soon as I click on that button, it plays the movie and it changes, hides itself and shows the Stop Movie button.
There it is, there's the Blue button. Then when I click on this Blue button, it stops the movie playing and it changes back to the Play button. Now, you don't have to add buttons to control your video or audio files, especially if you use a poster image that makes it clear that you should click on it to start it playing. But sometimes having a button to trigger a sound or a movie is really helpful, so now you know how.
Get unlimited access to all courses for just $25/month.Become a member
117 Video lessons · 41901 Viewers
119 Video lessons · 53442 Viewers
65 Video lessons · 13877 Viewers
113 Video lessons · 82615 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.