Forum

Forum (https://www.coolstreaming.us/forum/)
-   Hardware & Software (https://www.coolstreaming.us/forum/a/)
-   -   Sam broadcaster - programmazione html (https://www.coolstreaming.us/forum/a/39492-a.html)

jfive 11-05-2007 05:15 PM

Sam broadcaster - programmazione html
 
Con il programma di cui nel titolo so che si può programmare la playlist... e un modo è quello di usare uno script html... io sto facendo delle ricerche, ma qualcuno magaril 'ha già fatto... devo solo riuscire ad impostare il programma poer cui metta determinate canzoni a determinati orari...

Aspetto qualche tecnico... grazie come al solito

fonte: jfive.com :D :D :D

jfive 11-06-2007 12:16 PM

nessuno ha dato un occhio al programma... perchè con la rotazione fatta sulla base delle categorie mi sembra complesso... invece c'è la possibilità di farla sulla base di uno script in php...

questo è quello che mette nella guida sui tre modi di creare rotazioni programmate
Quote:
Playlist rotation logic modules

SAM3 comes with a few built-in logic modules to suit the needs of most broadcasters. Here follows a brief description of each:

Category Playlist rotation logic module
This is the default and recommended playlist logic module. It allows you to easily specify the format of your station by selecting songs from categories in a certain order using certain selection methods .
Category based rotaton explained
Weighted Playlist rotation logic module
This module is very easy to use. It applies a basic weighted rotation . In other words, each song starts out with a weight of 60. Each time the song plays, it gets aged by decreasing the weight by a fraction, causing the song to be played less and less. Each time the song is requested, the weight is increased, causing the song to play more.
Thus, weighted rotation is "self-maintained": new and popular songs will be played more often than old and unpopular songs.
Web scripting based logic module
This module will make SAM contact a website each time it requires a new song for rotation or if a certain song event (like a song being requested) occurs.
Thus, if you know PHP, ASP, or any other web scripting language, you can take full control of SAM's playlist rotation logic by writing your own logic with a web scripting language.


fonte: www.jfive.org :D :D :D

jfive 11-06-2007 05:28 PM

ora ho scoperto che si possono usare anche gli script pal... qualche d'uno sa come si programma uno script del genere?!?

Ogher 11-06-2007 06:37 PM

Quote:
Originally Posted by jfive
ora ho scoperto che si possono usare anche gli script pal... qualche d'uno sa come si programma uno script del genere?!?

mai sentito..a occhio è un linguaggio di scripting ideato appositamente per sam3, l'unica soluzione è leggere le istruzioni :)

jfive 11-07-2007 12:19 AM

Quote:
Originally Posted by Ogher
mai sentito..a occhio è un linguaggio di scripting ideato appositamente per sam3, l'unica soluzione è leggere le istruzioni :)


fatto... devo capire... intanto prima o poi lo script che mi sono creto da quelli già fatti... magari può servire ad altri...

jfive 11-07-2007 12:56 AM

questo è il codice che ho rubato sul sito di spacial audio e ho adattato... secondo voi si può adattare ad altro?!?

Code:
Pal { Original Author: Chan Weinmeister Modified by: Louis Louw Purpose: To play a pre-recorded show on Wednesday at around 8:00PM The show is split into 4 parts We play a station ID after each part } PAL.Loop := True; var mytime : DateTime; var I : Integer; var start_time, end_time : DateTime; mytime := now; start_time := T['23:48:00']; end_time := T['23:58:30']; {Check if this is the right day of the week} if DayOfWeek(Now) = Thuesday then begin if( mytime >= start_time) and (mytime <= end_time) Then begin WriteLn('Canvas Prog Hour!'); Queue.AddFile('C:\Documents and Settings\Gabrio\Documenti\RAdio\nuova stagione\file.mp3',ipTop); cat['Music (All)'].QueueTop(smRandom,NoRules); { Wait a while to make sure time is AFTER end_time } PAL.WaitForTime(T['+00:01:00']); end; end;

jfive 11-17-2007 07:43 PM

nuovi aggiornamenti... ora ho trovato un plugin per usare sam broadcaster con last fm ... lo trovate qui, http://www.skyminds.net/2007/10/19/...am-broadcaster/ in francese... qualcuno poi mi sa dire come usare php.exe faccio molta fatica ma solo eprchè sono stanco :p :p :p

jfive 11-17-2007 07:45 PM

cioè il mio problema principale è che php.exe ha bisogno delle curl (librerie vero?!?) e io non so dove piazzarle... e come configure il file lastfm.php

grazie :D :D :D

jfive 11-19-2007 12:04 AM

Qualcuno che conosce di php mi sa dire dove piazzare le librerie curl?!? cioè il plugin mi richiede di dargli l'indirizzo di dov'è curl init... ma io non capisco... cioè per far funzionare php sono indispensabili?!?


All times are GMT +2. The time now is 12:35 PM.

Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.