Ferra.resource
index
c:\python32\lib\site-packages\ferra\resource.py

 
Modules
       
pyglet.image

 
Classes
       
builtins.object
AudioPlayer

 
class AudioPlayer(builtins.object)
    A simple audio player with the use:
myaudio = Ferra.resource.AudioPlayer("myaudio.mp3", window)
it automatically starts playing to make it not auto-start:
myaudio = Ferra.resource.AudioPlayer("myaudio.mp3", window, autostart=False)
VideoPlayer will be implemented soon
window is the window this is important because AudioPlayer is an on_close handler
it automatically stops the sound or music when the window is closed
Experimental: NOT YET TESTED!
 
  Methods defined here:
__init__(self, audioname, window, autostart=True)
on_close(self)
pause(self)
Pause or stop(if you don't call play again it is stop)
play(self)
play the music or sound
seek(self, length)
Fast forward or rewind to length

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
load_animation(name)
load an animation
load_image(name)
load an image
load_media(name, streaming=False)
Load video or audio

 
Data
        media = <pyglet._ModuleProxy object>