WebRadio 板


LINE

本篇适用於SAM+SHOUTcast使用者。 这是一个PAL Script,在SAM的讨论区找来的, 用处在於不同DJ要接手伺服器时,可以顺利的切换到另一位DJ, 不会发生中断现象。 运作原理简单来说... 用这个pal script的人 1.共用同一台shoutcast server 2.互相知道密码 所以使用这个pal script, 可以直接把现在在线上的DJ踢掉(kill source) 接下来他自动会帮你连上(预设是第一个encoder) 要修改的部分有 const shoutcast_password = 'changeme'; ←请把密码换掉 const shoutcast_host = 'localhost';←IP设定(SHOUTcast在本机就不动) const shoutcast_port = '8000'; ←请把port换成你设定的port 另外这里预设是启动第一个encoder 如果一次要启动所有encoder 请把 Encoders[0].Start; 用{}框起来 (0代表第一个encoder) Encoders.StartAll;则不要用{}框起来 程式码如下,请复制存成xxx.pal (我存成switchDJ.pal) 或是从这里下载修改 http://0rz.tw/c02oi 在SAM的Desktop B, 有个小视窗便是PAL scripts,按+就可以加入这个script。 {Switching DJ's A lot of stations have more than one DJ operating the station, most of the time these DJ's are spread across the world. They employ a nifty trick to switch between DJ sessions. If you new DJ wishes to start their session, they log into the SHOUTcast admin panel and kick the current DJ's encoder, and then quickly connect with their own encoder. The following PAL script can completely automate this process:} { About: This script will disconnect any source connected to a SHOUTcast server and then connects this SAM Broadcaster as the new source. Usage: a) Create a single MP3 encoder to connect to the SHOUTcast server. b) Supply your SHOUTcast server details in the configuration section below c) Use the Event Scheduler to start this PAL script at the correct time. } { CONFIGURATION } {==================================================} const shoutcast_password = 'changeme'; const shoutcast_host = 'localhost'; const shoutcast_port = '8000'; {==================================================} { IMPLEMENTATION } {--------------------------------------------------} { Build URL used to send command to SHOUTcast server } var URL : String; URL := 'http://admin:'+shoutcast_password+'@'+shoutcast_host+':'+shoutcast_port+'/admin.cgi?mode=kicksrc'; { Kick source from SHOUTcast server } WebToFile('c:\dummy.txt',URL); { Now start & connect all encoders } { NOTE: This assumes you only have one encoder Encoders.StartAll; } {TIP: Use this to start a specific encoder:} Encoders[0].Start; {--------------------------------------------------} -- ▃▄▆◤▃▄▆◣ ▁ ◢ ▉ ▉ ▌ ◥◣ ◢◤ http://radio.douzo.net/ ▃▆◤ ◥◢◤ 一个让你享受点歌乐趣的世界。 ▌ ▌ ▋ ◢◤◣ ▍ ▍ ◥▄◤◢◤ ◥█◣的小世界。夜夜伴你入睡的好声音。 ﹊﹉﹉﹊﹊﹊﹉﹉﹉﹊﹊﹉﹊﹉﹊﹉﹊﹊﹊﹊﹉﹊﹉﹊﹉﹊﹊﹉﹊﹊﹊﹉﹊ ζTTYζ --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.119.73.222 ※ 编辑: Tingyutony 来自: 140.119.73.222 (02/07 09:41)
1F:推 picadar:下次所有DJ可以轮流了 XDD 02/08 19:25
2F:推 novapig:很有用的资讯! 感激不尽~ 02/12 12:30







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:WOW站内搜寻

TOP