编辑:说三道四文库 发布时间:2018-04-26 03:31
HTML文档下载
WORD文档下载
PDF文档下载
我在sql server2000中 image字段中存了声音、视频文件,但在播放中,用下面代码只能播出声音文件,而视频文件却没反应
index.html
<html>
<title>sound</title>
<body>
<embed src="video.asp" type="video/x-msvideo" controls="imagewindow" autostart="true" width="380" height="380" ></emded>
</body>
</html>
vodeo.asp
<%
dim rst
dim cn
dim strsql
set cn=server.createobject("adodb.connection")
set rst=server.createobject("adodb.recordset")
strsql="DSN=media"
cn.Open strSql
strSql = "Select * From tbl_Media where nid=4"
rst.Open strSql, cn
response.ContentType="video/x-msvideo"
response.binarywrite rst("imedia").getchunk(7500000)
rst.close
cn.close
set rst=nothing
set cn=nothing
%>
imedia字段是image类型,已经存了几个mp3文件和mpg,avi等视频文件
会不会是你的播放器有问题?
不会,因为我试过src="video.mpg" 的话,就能正常播放