I usually watch videos with autoplay, love it, I'm a binger. However I think I'm also too much of a Youtube binger.
Meaning when I see a video starting I expect the space bar to be the play/pause button.
However on Laracasts when you load a video, if you press on the space bar, you scroll to the teacher's section right below the video. It's slightly frustrating.
Was that intended behaviour? Could it be possible to have the space bar being the default play/pause button?
Thanks
PS: I know that once you've clicked once on the video to pause or play it, the space bar then becomes the play/pause trigger
If you press ? when the video is in focus, it will show you all the shortcuts. That being said, the Play/Pause shortcut is not listed there, but indeed is the space key, as long as your LAST focus was on the video. If you selected another element afterwards or clicked somewhere else on the page, the video is no longer the focused element and hence the space will scroll the page down. Press on the video, and once it pauses try pressing space again you'll see that the video will continue playing.
And btw, on YouTube is the same, k letter is Play/Pause option, and not the Space button unless again the focus is on the video itself, then the Space can be used too.
Thanks for your reply. I did mention the autoplay feature, therefore I don't touch the video before trying the space bar. I would want that to be automatic.
As for Youtube, I just tried again, simply starting a video and pressing space pauses the video. So I guess the video is automatically focused, maybe it would be something to look into for Laracasts if Jeffrey is willing :D