以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]代码放狐表后不能用  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=143582)

--  作者:OKK
--  发布时间:2019/11/28 16:44:00
--  [求助]代码放狐表后不能用
视频播放mp4,HTML代码转换到狐表时不能使用,HTML正常,放到请狐表时不显示视频,请问是不是要写些什么才行?

HTML文件的代码如下:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv=\'Content-Type\' c />
<title>放狐表就不行</title>
</head>

<body>
<center><div id=\'video\'><div id=\'a1\'></div></div></center>
<script type=\'text/javascript\' src=\'js/player.js\'></script>
<script type=\'text/javascript\'>
var flashvars={
f:\'\',
c:0,
b:1
};
var params={bgcolor:\'#FFF\',allowFullScreen:true,allowScriptAccess:\'always\'};
CKobject.embedSWF(\'ckplayer/ckplayer.swf\',\'a1\',\'ckplayer_a1\',\'600\',\'400\',flashvars,params);
var video=[\'video/视频1.mp4->video/mp4\'];
var support=[\'iPad\',\'iPhone\',\'ios\',\'android+false\',\'msie10+false\',\'webKit\'];
CKobject.embedHTML5(\'video\',\'ckplayer_a1\',600,400,video,flashvars,support);
  </script>
</body>
</html>






放狐表的代码如下:
Dim e As RequestEventArgs = args(0)
Dim sb As New StringBuilder
sb.AppendLine("<!DOCTYPE HTML>")
sb.AppendLine("<html>")
sb.AppendLine("<head>")
sb.AppendLine("<meta http-equiv=\'Content-Type\' c />")
sb.AppendLine("<title>放狐表就不行</title>")
sb.AppendLine("</head>")
sb.AppendLine("<body>")
sb.AppendLine("<center><div id=\'video\'><div id=\'a1\'></div></div></center>")
sb.AppendLine("<script type=\'text/javascript\' src=\'js/player.js\'></script>")
sb.AppendLine("<script type=\'text/javascript\'>")
sb.AppendLine(" var flashvars={")
sb.AppendLine(" f:\'\',")
sb.AppendLine(" c:0,")
sb.AppendLine(" b:1")
sb.AppendLine(" };")
sb.AppendLine(" var params={bgcolor:\'#FFF\',allowFullScreen:true,allowScriptAccess:\'always\'};")
sb.AppendLine(" CKobject.embedSWF(\'ckplayer/ckplayer.swf\',\'a1\',\'ckplayer_a1\',\'600\',\'400\',flashvars,params);")
sb.AppendLine(" var video=[\'video/视频1.mp4->video/mp4\'];")
sb.AppendLine(" var support=[\'iPad\',\'iPhone\',\'ios\',\'android+false\',\'msie10+false\',\'webKit\'];")
sb.AppendLine(" CKobject.embedHTML5(\'video\',\'ckplayer_a1\',600,400,video,flashvars,support);")
sb.AppendLine("  </script>")
sb.AppendLine("</body>")
sb.AppendLine("</html>")
e.WriteString(sb.ToString)


--  作者:有点蓝
--  发布时间:2019/11/28 17:14:00
--  
这种暂时没有办法。
--  作者:OKK
--  发布时间:2019/11/28 17:49:00
--  
意思是狐表没办法播放MP4吗

我想播放视频,有什么办法修改

--  作者:有点蓝
--  发布时间:2019/11/29 8:34:00
--  
不支持视频流,直接播放的就可以,就是完整下载后再播放这种。
可以使用video,embed 等标签,不过有些插件可能支持的不好,不行就多试几个不同的插件

http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=137194&authorid=0&page=0&star=1

http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=114940&skin=0

--  作者:OKK
--  发布时间:2019/11/29 17:18:00
--  
sb.AppendLine("<div>")
sb.AppendLine("<video src=\'video/视频1.mp4\' controls ></video>")
sb.AppendLine("</div>")


我使用了这个代码,电脑正常播放、手机安卓正常播放

但手机苹果播放不了,要怎么改?

--  作者:有点蓝
--  发布时间:2019/11/29 17:23:00
--  
苹果系统不支持:https://www.baidu.com/baidu?word=苹果手机+video+标签
--  作者:OKK
--  发布时间:2019/11/29 20:49:00
--  
我按你说的,翻了十多页百度,搞了几小时,最后发现,原来是狐表的问题,把HTML文件放在IIS时苹果可以播放

HTML文件:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv=\'Content-Type\' c />
<link href=\'jjercss/popuo-box.css\' rel=\'stylesheet\' type=\'text/css\' media=\'all\' />
<title>佳杰儿托育</title>
</head>
<body>
<video width=\'600\' height=\'450\' c >
<source src=\'video/视频1.mp4\' type=\'video/mp4\'>
</video>
</body>
</html>


狐表代码:
sb.AppendLine("<!DOCTYPE HTML>")
sb.AppendLine("<html>")
sb.AppendLine("<head>")
sb.AppendLine("<meta http-equiv=\'Content-Type\' c; charset=\'gb2312\' />")
sb.AppendLine("<link href=\'jjercss/popuo-box.css\' rel=\'stylesheet\' type=\'text/css\' media=\'all\' />")
sb.AppendLine("<title>佳杰儿托育</title>")
sb.AppendLine("</head>")
sb.AppendLine("<body>")
sb.AppendLine("<video width=\'600\' height=\'450\' c >")
sb.AppendLine("<source src=\'jjerimage/situation视频/视频1.mp4\' type=\'video/mp4\'>")
sb.AppendLine("</video>")
sb.AppendLine("</body>")
sb.AppendLine("</html>")
e.WriteString(sb.ToString)




晕,到底狐表代码能不能在苹果上播放VIDEO???

如果可以,能不能给个方法,再在百度找,我快崩溃了
[此贴子已经被作者于2019/11/29 20:50:24编辑过]

--  作者:有点蓝
--  发布时间:2019/11/29 20:58:00
--  
直接在Foxtable里使用静态html文件:http://www.foxtable.com/mobilehelp/topics/0020.htm

不使用sb.AppendLine能不能播放?

--  作者:OKK
--  发布时间:2019/11/29 21:22:00
--  
刚测试了,还是不行



能不能通过WEUI播放?

还有没有其它方法?


图片点击可在新窗口打开查看

--  作者:有点蓝
--  发布时间:2019/11/29 21:38:00
--  
我这边没有苹果系统测试。您试过不行那就是不支持了