Go Back   Forum > Tecno-Cool > Hardware & Software

LOGIN

Register FAQ Live Now! Rules Live TV Arcade Search Today's Posts Mark Forums Read






× Notice: This forum is read-only.The content of the community may not be verified or updated. More info
Reply
 
Thread Tools Search this Thread Display Modes Translate
  #1  
Old 11-05-2007, 05:15 PM
jfive jfive is offline
Senior Member
 

Join Date: Sep 2005
Posts: 1,326
jfive is on a distinguished road
Send a message via MSN to jfive
Default

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


Reply With Quote
  #2  
Old 11-06-2007, 12:16 PM
jfive jfive is offline
Senior Member
 

Join Date: Sep 2005
Posts: 1,326
jfive is on a distinguished road
Send a message via MSN to jfive
Default

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


Reply With Quote
  #3  
Old 11-06-2007, 05:28 PM
jfive jfive is offline
Senior Member
 

Join Date: Sep 2005
Posts: 1,326
jfive is on a distinguished road
Send a message via MSN to jfive
Default

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


Reply With Quote
  #4  
Old 11-06-2007, 06:37 PM
Ogher Ogher is offline
Amministratore offroad
 
Ogher's Avatar
 

Join Date: Jul 2005
Location: Foam pit
Posts: 1,872
Ogher is on a distinguished road
Send a message via MSN to Ogher
Default

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
__________________
"Ad Ancelotti glielo dico sempre: 'Immagina se avessi i piedi buoni, non sapremmo dove mettere le coppe...'." G.Gattuso
"Chi vince a Siena ritorna a Siena, chi vince ad Atene va a Tokyo.." C.Pellegatti
"Meglio 1-0 per noi che 1-0 per loro.." C.Pellegatti
Io sono contro l'uso di animazioni al posto del testo su MSN
Non mandatemi messaggi privati con richieste d'aiuto su partite/software, alle partite non rispondo e per i software ci sono i sottoforum dedicati.


Reply With Quote
  #5  
Old 11-07-2007, 12:19 AM
jfive jfive is offline
Senior Member
 

Join Date: Sep 2005
Posts: 1,326
jfive is on a distinguished road
Send a message via MSN to jfive
Default

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...


Reply With Quote
  #6  
Old 11-07-2007, 12:56 AM
jfive jfive is offline
Senior Member
 

Join Date: Sep 2005
Posts: 1,326
jfive is on a distinguished road
Send a message via MSN to jfive
Default

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;


Reply With Quote
  #7  
Old 11-17-2007, 07:43 PM
jfive jfive is offline
Senior Member
 

Join Date: Sep 2005
Posts: 1,326
jfive is on a distinguished road
Send a message via MSN to jfive
Default

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


Reply With Quote
  #8  
Old 11-17-2007, 07:45 PM
jfive jfive is offline
Senior Member
 

Join Date: Sep 2005
Posts: 1,326
jfive is on a distinguished road
Send a message via MSN to jfive
Default

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


Reply With Quote
  #9  
Old 11-19-2007, 12:04 AM
jfive jfive is offline
Senior Member
 

Join Date: Sep 2005
Posts: 1,326
jfive is on a distinguished road
Send a message via MSN to jfive
Default

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?!?


Reply With Quote
Reply







Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +2. The time now is 01:40 AM.


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