Author: gwadavel
Date: 2009-03-12 23:29:14 +0100 (Thu, 12 Mar 2009)
New Revision: 4035

Modified:
   
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/trunk/executables/tux-gadget-clockradio.py
   
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/trunk/resources/gadget.xml
Log:
Add test for playing mms:

Modified: 
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/trunk/executables/tux-gadget-clockradio.py
===================================================================
--- 
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/trunk/executables/tux-gadget-clockradio.py
    2009-03-12 21:42:23 UTC (rev 4034)
+++ 
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/trunk/executables/tux-gadget-clockradio.py
    2009-03-12 22:29:14 UTC (rev 4035)
@@ -33,6 +33,9 @@
     - Add tgp_radio for select radio from the control center
     - Add dictionary for webradio
 
+2009/03/12 - version 0.0.3:
+    - Add test for playing mms:
+    
 TODO LIST
 =========
 - Add more webradio 
@@ -42,7 +45,7 @@
 
 __author__  = "Eric Lescaudron AKA Gwadavel"
 __appname__ = "tux clock radio"
-__version__ = "0.0.2"
+__version__ = "0.0.3"
 __date__    = "2009/03/12"
 __license__ = "GPL"
 
@@ -58,12 +61,16 @@
             "Le-Mouv":"http://viphttp.yacast.net/V4/radiofrance/lemouv_hd.m3u";,
             
"France-Musique":"http://viphttp.yacast.net/V4/radiofrance/francemusique_hd.m3u";,
             
"France-Bleu-Ile-de-France":"http://viphttp.yacast.net/V4/radiofrance/francebleu_idf_hd.m3u";,
-            "BBC2":"http://www.bbc.co.uk/radio2/realmedia/fmg2.ram"}
+            "BBC2":"http://www.bbc.co.uk/radio2/realmedia/fmg2.ram";,
+            "RFM":"mms://viplagardere.yacast.net/encoderrfm"}
 
-radio = os.environ['tgp_radio']
+radio = WEBRADIO[os.environ['tgp_radio']]
 
-command = "mplayer -ao alsa:device=plughw=TuxDroid.0 -playlist " + 
WEBRADIO[radio]
-
+if radio[:4] == "http": # Test if begin radio's url is "http"
+    command = "mplayer -ao alsa:device=plughw=TuxDroid,0 -playlist " + radio
+else:
+    command = "mplayer -ao alsa:device=plughw=TuxDroid,0 " + radio
+    
 if DEBUG: print command
 
 os.system(command)

Modified: 
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/trunk/resources/gadget.xml
===================================================================
--- 
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/trunk/resources/gadget.xml
    2009-03-12 21:42:23 UTC (rev 4034)
+++ 
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/trunk/resources/gadget.xml
    2009-03-12 22:29:14 UTC (rev 4035)
@@ -7,7 +7,7 @@
                <name>Clock Radio</name>
                <description>Use tux as webradio or clock radio</description>
                <author>Gwadavel</author>
-               <version>0.0.2</version>
+               <version>0.0.3</version>
                <iconFile>resources/clockradio.png</iconFile>
                <executionMode>command</executionMode>
                <uuid>8349ed52-572d-4c3f-a7b8-05c2a8aec2c6</uuid>
@@ -16,7 +16,7 @@
                <parameter
                        name="radio"
                        description="Select radio"
-                       
type="enum(BBC2,France-Bleu-Ile-de-France,France-Culture,France-Info,France-Inter,France-Musique,Le-Mouv,RMC-Info)"
+                       
type="enum(BBC2,France-Bleu-Ile-de-France,France-Culture,France-Info,France-Inter,France-Musique,Le-Mouv,RFM,RMC-Info)"
                        defaultValue="France-Inter" />
        </parameters>
        <commands>


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to