Book Image

Kivy Cookbook

By : Hugo Solis
Book Image

Kivy Cookbook

By: Hugo Solis

Overview of this book

Table of Contents (16 chapters)
Kivy Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Including multimedia for Mac OS


The package used to load multimedia is not included in the previous recipe. So, we need to modify the previous recipe if we want to use the GStreamer. In this recipe, we are going to create a package of an app that loads a video.

Getting ready

We will use an app within multimedia. We are going to utilize the same code of the app used in the recipe Including multimedia for Windows in this chapter, that is, the code in e2.py file.

This app needs the file GOR.mov, which is the video that will be played. Also, it is highly recommended to read the previous recipe as the packaging process is explained in detail there.

How to do it…

Again, we are going to work directly in the terminal of the PyInstaller directory. We will create a package for an app that plays a video. To complete this recipe, follow these steps:

  1. Locate the directory that has the files: e2.py and GOR.mov, something like:

    /Users/Me/Documents/e2app/
    
  2. Go to the PyInstaller directory.

  3. Create the folder and specification...