实现视频聊天功能的网站

wulonxia2010 2010-04-08 04:38:03
最近忙着做一个网站,遇到很多问题,现在跟大家来交流关于这方面的技术,一起学习学习
...全文
194 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
wulonxia2010 2010-04-08
  • 打赏
  • 举报
回复
[JaSoft.Aspx]

<%@Language="C#"%>
<script runat="server">

private void Page_Load(object sender, System.EventArgs e)
{
Response.Write("conn=1&Sendid="+Session["ziyan"]+"&Recvid="+Session["sammi"]);
}
</script>


[View.Aspx]

<%@ Page Language="C#" %>
<script runat="server">

private void Page_Load(object sender, System.EventArgs e)
{
Session["ziyan"]=Request.QueryString["RecvId"];
Session["sammi"]=Request.QueryString["Sendid"];
}
</script>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-44553540000"
codebase= http://download.macromedia.com/pub/shockwave
/cabs/flash/swflash.cab#version=6,0,29,0 width="500" height="500">
<param name="menu" value="false">
<param name="movie" value="JaSoft.swf">
<param name="quality" value="high">
<embed src="JaSoft.swf" quality="high" pluginspage=
http://www.macromedia.com/go/getflashplayer
type="application/x-shockwave-flash" width="500" height="500"> </embed></object>
</div>
</body>
</html>

[JaSoft.Swf]

stop();
myCam = Camera.get();
myVideoObject.attachVideo(myCam);
myCam.onStatus = function(infoMsg) {

if(infoMsg.code == "Camera.Muted"){
_root.a.text="User denies access to the camera";
}
else
System.showSettings(0);
}


client_nc = new NetConnection();

client_nc.onStatus = function(info) {
trace("Level: "+info.level+newline+"Code: "+info.code);
_root.abc.text = "Level: "+info.level+newline+"Code: "+info.code;
};

client_nc.connect("rtmp://192.168.25.18/record_video");

rec_so = SharedObject.getRemote("myvideo", client_nc.uri, true);


rec_so.connect(client_nc);
var Recvid;
var Sendid;
GetId();
function Recv() {

in_ns = new NetStream(client_nc);

in_ns.play(Recvid);
_root.b.attachVideo(in_ns);
}

function Send() {
this.cam = Camera.get();
this.mic = Microphone.get();
out_ns = new NetStream(client_nc);

out_ns.attachVideo(this.cam);
_root.a.attachVideo(this.cam);

out_ns.attachAudio(this.mic);
out_ns.publish(Sendid, "live");
}

function GetId(){
myload = new LoadVars();

myload.action = "post";

myload.onLoad = function(success) {

if (success) {

if (this.conn == "1") {
_root.Recvid = this.Recvid;
_root.Sendid = this.Sendid;
Send();
Recv();
_root.abc.text =’ok...’;
}
} else {
//如果和服务器连接不成功则返回失败消息,需要检查路径是否正确
_root.abc.text = ’连接不成功....’;
}
};
myload.sendAndLoad(" http://192.168.25.18/Asp.Net/JaSoft.aspx", myload, "post");

}
gyb0302 2010-04-08
  • 打赏
  • 举报
回复
找的是插件吧!
自已做个IM,有点难了~
千游 2010-04-08
  • 打赏
  • 举报
回复
jf
灬上海爽爷 2010-04-08
  • 打赏
  • 举报
回复
jf.你想交流什么技术。。
mykelly6 2010-04-08
  • 打赏
  • 举报
回复
mark

61,124

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧