تماشای این درس نیاز به اشتراک حرفه‌ای دارد.

Installing Hotkeys Plugin1:13

Okay, so here's how we get this set up. It's really simple. You can either reference it from a CDN, or most of these are stored on NPM. So I'll show you how to do all that stuff once we get to that portion of the series. Okay, next, once Video.js is ready to go, we just reference the hotkeys plugin, and then we pass through any options that we want. And that's it. So it's really easy to use these plugins. Let me show you. Let's go to Sublime.

Adding Script and Options1:36

Let me show you. Let's go to Sublime. Here's where we left off in the last video. So far, so good. But now we're going to pull in the hotkeys plugin, so I will reference that script. And then if we go to Main.js, yeah, here's just some of our playgrounds so far. So I'm going to comment that out, bring this back, and we'll say, once the video has loaded and it's ready to go, we'll say this.hotkeys, and let's see what we want here. Now you'll see a bunch of them have defaults. So like the seekStep is defaulting to 5 seconds.

دوست دارید گاهی خبرهای Laracasts را ایمیل کنیم؟