O'Reilly logo

Python Multimedia Beginner's Guide by Ninad Sathaye

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - pause and resume a playing audio stream

We will now review a very simple example demonstrating various playback control techniques. The same example will be used in the next few sections. This exercise will be an ideal preparation while working on the project 'Extract Audio Using Playback Controls'. So let's get started!

  1. Download the file PlaybackControlExamples.py from the Packt website. This file has all the necessary code that illustrates various playback controls. The overall class and its methods are illustrated below for reference. See the source file to know more about each of these methods.
    class AudioPlayer: def __init__(self): pass def constructPipeline(self): pass def connectSignals(self): pass def decodebin_pad_added(self, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required