ocarina/src/core/play.py

32 lines
622 B
Python

# This is a simple test plugin, to make sure everything is working
__author__="bjschuma"
__date__ ="$Dec 22, 2009 12:05:02 AM$"
global name, app, type, path, opt
name = "test"
app = "scion"
type = "core"
path = ""
opt = []
from bt.message import write
import gstreamer
# Called every time the plugin is enabled
def open():
write("Example plugin has been started",True)
#write("Example plugin has been changed",True)
# Called every time the plugin is stopped
def close():
write("Example plugin has been stopped",True)
# Called when the plugin needs to perform some action
def run(args=None):
gstreamer.play()