回复 ws02874137 的帖子
晕了,我是内网,所以才想弄本地上传。当然外网链接也可以,只不过现在最简单的也不行了,呵呵
可否帮忙看下是不是哪里有问题了?
conf.xml
- <server>
- <!-- 弹幕加载地址,变量{$id}为弹幕id,{$type}为视频来源类型,{$puri}为播放器所在的目录URI,比如http://xxx/newflvplayer/,播放器会在末尾自动添加随机参数r -->
- <load>http://bbs.ybu.edu.cn/plugins/playtanmu/get.php?id={$id}</load>
- <send>http://bbs.ybu.edu.cn/plugins/playtanmu/add.php</send>
- <!-- 远程调用的网关 实现时时弹幕-->
- <!-- <gateway>http://pad.xg-y.com/wp-content/plugins/mukioplayer-for-wordpress/php-scripts/amfphp/gateway.php</gateway> -->
- <send></send>
- </server>
复制代码
add.php
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <?php
- $playerID = $_POST['playerID'];
- $message = $_POST['message'];
- $color = $_POST['color'];
- $fontsize = $_POST['fontsize'];
- $playtime = $_POST['playTime'];
- $mode = $_POST['mode'];
- $date =$_POST['date'];
- $conn=mysql_connect("localhost", "tanmu", "123456");
- mysql_query("set names 'utf8'",$conn);
- mysql_select_db("tanmu",$conn);
- if($_POST['action']="chengji"){
- $exec="INSERT INTO `tm_comment` (`playerID`, `message`, `color`, `fontsize`, `playtime`, `mode`, `date`) VALUES ('$playerID','$message','$color','$fontsize','$playtime','$mode','$date')";
- $result=mysql_query($exec,$conn);
- mysql_close($conn);
- }
- ?>
复制代码
get.php
- <?php
- //include_once("tihuan.php");
- header('Content-Type: text/xml;');
- $playerID=$_GET['id'];
- $link=mysql_connect("localhost","tanmu","123456");
- mysql_select_db("tanmu", $link);
- $q = "SELECT * FROM `tm_comment` WHERE `playerID`='$playerID'";
- mysql_query("SET NAMES utf8");
- $rs = mysql_query($q, $link);
- if(!$rs){die("Valid result!");}
- echo "<?xml version="1.0" encoding="UTF-8"?>\n";
- echo "<information>\n";
- while($row = mysql_fetch_row($rs))
- echo "<data><playTime>$row[7]</playTime><message fontsize='$row[5]' color='$row[4]' mode='$row[6]'>$row[3]</message><times>$row[8]</times><user>By xg-y.com</user></data>\n";
- echo "</information>";
- mysql_free_result($rs);
- ?>
复制代码
我用的flash链接地址是:
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="800" height="500">
- <param name="movie" value="http://bbs.ybu.edu.cn/plugins/playtanmu/miku.swf?id={1}&type={2}">
- <param name="quality" value="high">
- <embed src="http://bbs.ybu.edu.cn/plugins/playtanmu/miku.swf?id={1}&type={2}" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="500"></embed></object>
复制代码
|