Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Mayank Sapra4,555 Points
How to prevent video from restarting from the beginning while using space bar to play and pause the video?
I like to follow along what is taught in tuts and to do that I have to switch from the browser window hosting the tut video to Android Studio or an IDE I am working on to practice writing the code. Sorry If I sound pedantic but when I switch(alt+tab) from my browser hosting the tut video to android studio, I prefer pausing the video by tapping the space bar and then when I am done with my work with Android Studio and want to return back to resume the tut, I have to tap the space bar again, what annoys is that second tap on space bar restarts the video from the beginning instead of resuming from the point where it was paused. It will greatly ameliorate UX if you can fix this behavior of your video player.