Re: [Savonet-users] [Fwd: Petite requête]
gelnior wrote: > J'ai appris que vous utilisiez LiquidSoap pour diffuser vers IceCast et > je me demande comment vous faites pour afficher les infos du titre en > cours sur votre page... > > J'en viens donc à ma question : Voulez vous bien me communiquer > l'endroit ou vous avez trouvé le script permettant de faire ça, ou mieux > encore, si vous accepteriez de m'en envoyer une copie. Salut, Le site est fait maison mais il n'y a pas grand mérite car Sam et moi sommes aussi développeurs de liquidsoap ;) Là tout de suite il faudrait que je récupère une clé ssh pour accéder un script en question, donc à la place je vais te décrire la chose, de toute façon ça variera toujours un peu d'une radio à l'autre. L'idée de base c'est de mettre un handler sur la métadonnée qui passe. On utilise dans le script liquidsoap l'opérateur on_metadata() avec une fonction qui se charge d'appeler un script ruby externe. Cette fonction liquidsoap pourrait formatter la métadonnée et la passer en argument: s = on_metadata(fun (m) -> system("/path/to.rb #{quote(string_of(m))}"), s) Dans notre cas on appelle juste le script qui utilise l'interface telnet pour récupérer les 10 dernières metadonnées et formatter le tout en XML. Côté web ce fichier XML est rechargé périodiquement en AJAX. En gros tu prends liquidsoap/scripts/ask-liquidsoap.rb (ou .pl si tu préfères le Perl) et tu le bricoles jusqu'à avoir ce que tu veux. Si tu n'as jamais codé ça va être un peu coton, redemande moi notre script; sinon, ça devrait vite venir. Amuse toi bien! David -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] Liquidsoap daemon trouble
Le vendredi 4 septembre 2009 08:24:10, Mathijs Vos a écrit : > It appeared liquidsoap had no writing permissions in the log directory when > running in deamon mode. Hence the empty logfile. Now everything works fine. Cool, nice to read ! Have fun ! Romain -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] How to play one track from playlist at once with precedence
Hi Ari, Let's split the bill in two. (1) Play track1, track2, etc. in order: it's a playlist(mode="normal",...) (2) Play a track of a source S at each X:15, otherwise play from O. It's fallback(track_sensitive=false,[switch([({15m},S)]),O]). That should be a good start. Then, you'll probably want to look for transitions, but that's another story. Have fun! -- David -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
[Savonet-users] How to play one track from playlist at once with precedence
Hello, I have a playlist with hundreds of small tracks (2-3 min), each one to be played at a precise instant (e.g. {15m}) every hour. However, there's precedence among them: track1 first, track2 the next hour, and so on. Is there any built-in way to deal with this? Thank you, Ari Constancio -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users