본문 바로가기

winamp 방송정보 알아오기

반응형

사용법은 첨부화일에 있는 view.php 를 참고하세요

<?
include("class_w_info.php");
$winamp = new winamp_cast_info;
$url = "서버주소";
$winamp->set_cast_url($url);
echo "서버의 갯수: ";
echo $winamp->cast_info["server_amount"];
echo "<br>";
echo "현재청취인원: ";
echo  $winamp->cast_info[now_listen];
echo "<br>";
echo "최대청취가능 인원: ";
echo  $winamp->cast_info[max_listen_persons];
echo "<br>";
echo "최대청취자수: ";
echo  $winamp->cast_info[peak];
echo "<br>";
echo "방송음질: ";
echo  $winamp->cast_info[kbps];
echo "<br>";
echo "평균청취시간: ";
echo $winamp->cast_info[a_l_time];
echo "<br>";
echo "방송타이틀: ";
echo  $winamp->cast_info[title];
echo "<br>";
echo "방송장르: ";
echo  $winamp->cast_info[genre];
echo "<br>";
echo "URL: ";
echo  $winamp->cast_info[url];
echo "<br>";
echo "aim: ";
echo  $winamp->cast_info[aim];
echo "<br>";
echo "IRC: ";
echo  $winamp->cast_info[irc];
echo "<br>";
echo "현재나오는음악제목: ";
echo  $winamp->cast_info[song];
echo "<br>";
# 방송히스토리를 알고 싶을경우
$history_array =  $winamp->cast_info[history];
for($i=0;$i <= sizeof($history_array["time"])-1;$i++){
  echo $history_array["time"][$i];
  echo " :::: ";
  echo $history_array["title"][$i];
  echo "<br>";
}
?>

new_w_info.zip
0.00MB

응용하여 만든 음악방송 웹플레이어 디자인 예제 보기

반응형

댓글


Copyright ⓒ SmartWeb All rights reserved.