def __init__(self, media_file):
     # Tell Panda3D to use OpenAL, not FMOD
     loadPrcFileData("", AUDIO_LIBRARY)
     self.media_file = media_file
     self.get_video()
     # Initialize the ShowBase class from which we inherit, which will
     # create a window and set up everything we need for rendering into it.
     ShowBase.__init__(self)
     props = WindowProperties()
     props.setTitle(MEDIA_TITLE + media_file)
     props.setIconFilename(MEDIA_ICON)
     self.win.requestProperties(props)
     self.display_text()
     self.tex = None
     self.load_texture()
     self.set_fullscreen()
     self.sound = None
     self.synchronize_sound()
     self.set_keys_acceptions()
     self.sound.play()