jwplayer 에 대해 질문을 좀 할께요...ㅠㅠ;; 급

jwplayer 에 대해 질문을 좀 할께요...ㅠㅠ;; 급

QA

jwplayer 에 대해 질문을 좀 할께요...ㅠㅠ;; 급

답변 1

본문

제가 현재 "헌이"님이 제작을 하신 유투브 동영상 스킨을 사용하려고 하는데요...

질문은 아래와 같습니다.
유투브 아이디를 입력하는 곳을 여분필드로 고쳐서 재생까지는 나오게 되는데 첨부로 올린 이미지가 배경에 나오지 않는 문제...어떻게 해결할까요?

아래는 플레이어 소스 입니다.
music.php
----------------------------------------------------------------------
<?php
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
?>
<title>YOUTOBE/HEON PLAYER</title>
<style type="text/css"> body{ margin:0 auto; background:#F0F0F0;} #header{ background-color:#009ACD; height:120px;} #header_content { width:70%; background-color:#00B2EE; height:120px; margin:0 auto; text-align:center;} #content{ width:68%; background-color:#EBEBEB; margin:0 auto; padding:20px;} </style>
<?
@extract($_GET);
@extract($_POST);
include $g4[path]."/config.php";
include $g4[path]."/dbconfig.php";
$data_path = $g4[path]."/data/file/$bo_table";
$connect = @mysql_connect($mysql_host, $mysql_user, $mysql_password);
$select_db = @mysql_select_db($mysql_db, $connect);
mysql_query("set names utf8");
$img = $data_path.'/'.$view[file][0][file]; //
//$link1="http://$_SERVER[SERVER_NAME]/bbs/board.php?bo_table=$bo_table&wr_id=".$view[wr_id];// URL 가져오기  
?>
<meta http-equiv="content-type" content="text/html; charset=utf-8"> 
<script src='<?=$board_skin_path?>/js/swfobject.js' type="text/javascript"></script>
<script type='text/javascript' src='<?=$board_skin_path?>/js/jwplayer.js'></script>
<div id="container"></div>
<script type="text/javascript">
  jwplayer('container').setup({'flashplayer': './swf/player.swf','plugins': {'captions-1': {'back': 'false','file': '<?=$wr_3?>'}},'width': '700','height': '400','playlist.position':'right','playlist.size': '260','autostart': 'true','frontcolor': 'e7ae00','backcolor': '','image': '<?=$img?>','skin': '<?=$board_skin_path?>/swf/Skins/simple.zip',
  'playlist': [<?
$checked_song=explode(",",$selected); 
$checked_song=array_reverse($checked_song); 
$array_cnt=count($checked_song); 
for($i=0;$i<$array_cnt;$i++)
{

$temp=mysql_fetch_array(mysql_query("select wr_subject as subject, wr_name as name, wr_3 as sitelink1, '$img' as image, wr_link2 as sitelink2, wr_content as memo, wr_hit as hit from g4_write_$bo_table where wr_id='$checked_song[$i]' "));
$subject[$i]=stripslashes($temp[subject]);
if($temp1[image]==true){ $arr = array($data_path,$temp1[image]);}
else{
$arr = array($temp1[image]);
}

$snd_path = implode("",$arr);
$snd_1="";
if(!eregi("\.smi",$temp[sitelink1])) $snd_1="$temp[sitelink1]";
$snd_3="";
if(!eregi("\.smi",$snd_path)) $snd_3="$snd_path";
if ($snd_1==""){
$song_path1[$i]=$snd_3;
}else{
$song_path1[$i]=$temp[sitelink1];
}
$song_path3[$i]=$snd_path;

if ($song_path1[$i]==true)
{
?>
{'file':'<?=$song_path1[$i]?>','title':'<?=$subject[$i]?>'},
<?
}

//Hit Up
mysql_query("update zetyx_board"."_$id set hit=hit+1 where no='$no'");

}
mysql_close($connect); 
?>],repeat: 'list'});
</script>  
-------------------------------------------------------------------------------

여기서 setup 옵션을 건드려 봐도 않되구요... 보통 setup 옵션에 'image': '<?=img?>' 이렇게 입력을 하면
나오던데요... 문제는 밑부분의 playlist 옵션때문에 첨부이미지가 나오지 않는것 같더라구요...

어떻게 해결이 가능할까요?

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 125,873
© SIRSOFT
현재 페이지 제일 처음으로