Author: duncan
Date: Wed Oct 11 12:28:53 2006
New Revision: 8350
Modified:
branches/rel-1-5/freevo/local_conf.py.example
branches/rel-1-5/freevo/src/audio/plugins/radioplayer.py
Log:
[ 1575225 ] Radio player for other players
Patch applied
Modified: branches/rel-1-5/freevo/local_conf.py.example
==============================================================================
--- branches/rel-1-5/freevo/local_conf.py.example (original)
+++ branches/rel-1-5/freevo/local_conf.py.example Wed Oct 11 12:28:53 2006
@@ -896,7 +896,24 @@
# TV_INPUT = 0
#
# Radio device default is None, /dev/video24 for ivtv
-# RADIO_DEVICE = '/dev/radio0'
+# RADIO_DEVICE = '/dev/radio'
+
+# Radio commands:
+# plugin.activate('audio.radioplayer')
+# plugin.activate('audio.radio')
+#
+# for fmtools
+# RADIO_CMD = 'fm'
+# RADIO_CMD_START = ('%s -q %s 65535' % (RADIO_CMD, %(station)))
+# RADIO_CMD_STOP = ('%s -q off' % RADIO_CMD)
+#
+# for ivtv-radio
+# RADIO_CMD = '/usr/bin/ivtv-radio -d /dev/radio0 -i /dev/video24'
+# RADIO_STATIONS = [
+# ('DRS 1', '94.80'),
+# ('VIRUS', '104.30'),
+# (u'Radio Zürisee', '90.20'),
+# ]
#
# Additional options to pass to mplayer in TV mode.
Modified: branches/rel-1-5/freevo/src/audio/plugins/radioplayer.py
==============================================================================
--- branches/rel-1-5/freevo/src/audio/plugins/radioplayer.py (original)
+++ branches/rel-1-5/freevo/src/audio/plugins/radioplayer.py Wed Oct 11
12:28:53 2006
@@ -8,22 +8,6 @@
# Todo:
#
# -----------------------------------------------------------------------
-# $Log$
-# Revision 1.10.2.2 2005/06/08 21:56:46 mikeruelle
-# back out change's from Georg Kunzel. need to do this in a real radio
-# item to get it to format similar to AudioItem
-#
-# Revision 1.10.2.1 2005/03/26 20:14:59 mikeruelle
-# Committing Georg Kunzel's radio player patch to make the elapsed time
-# actually work correctly.
-#
-# Revision 1.10 2004/07/10 12:33:38 dischi
-# header cleanup
-#
-# Revision 1.9 2004/01/20 00:24:20 mikeruelle
-# update elapsed time for radio in a thread
-#
-# -----------------------------------------------------------------------
# Freevo - A Home Theater PC framework
# Copyright (C) 2002 Krister Lagerstrom, et al.
# Please see the file freevo/Docs/CREDITS for a complete list of authors.
@@ -123,8 +107,8 @@
os.system('%s -f %s &' % (config.RADIO_CMD, self.item.station))
else:
# BTTV cards
- print '%s -qf %s' % (config.RADIO_CMD, self.item.station)
- os.system('%s -qf %s' % (config.RADIO_CMD, self.item.station))
+ print '%s' % (config.RADIO_CMD_START, self.item.station)
+ os.system('%s' % (config.RADIO_CMD_START, self.item.station))
thread.start_new_thread(self.__update_thread, ())
rc.app(self)
@@ -150,7 +134,7 @@
os.system('killall -9 aplay')
else:
# BTTV cards
- os.system('%s -qm' % config.RADIO_CMD)
+ os.system('%s' % config.RADIO_CMD_STOP)
rc.post_event(PLAY_END)
rc.app(None)
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog