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! While you're at it, check out some resources Treehouse students have shared here.

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

Android Build a Simple Android App (2014) Creating the Screen Layout Adding a TextView

Mayank Sapra
Mayank Sapra
4,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.

Dean Silvestro
Dean Silvestro
Courses Plus Student 20,733 Points

I run into the same problem. I know it's not the same and as exciting as the space bar, but clicking on the video with my cursor to pause and unpause does not restart the video.

Hopefully the space bar will work in the future though. :)

1 Answer

Miles Torres
Miles Torres
2,316 Points

If you ever find out tell me! hahaha!

Mayank Sapra
Mayank Sapra
4,555 Points

I think they have fixed this however video is still forced to start from the beginning after resuming from first pause but after that the play and pause feature work as expected.