Control bar – adding buttons to control the video

In this section, we will work on user interaction with the application. Right now, we control the video with touches on the screen that play, pause, and stop the video. However, this is not very intuitive for a new user of our application. So, let's add some buttons to improve the usability of our application.

We will use Image widgets enhanced with ToggleButtonBehaviour and ToggleBehaviour classes in order to create buttons for a play/pause button and a stop button, respectively. Here is a cropped screenshot of the simple control bar that we will be implementing in this section:

Control bar – adding buttons to control the video

Let's start defining ...

Get Kivy – Interactive Applications and Games in Python - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.