simple flash example

http://www.kennybellew.com/tutorial/
http://www.justskins.com/forums/live-stream-24730.html
http://www.vnfx.com/vb/forumdisplay.php?s=69e88d4fefb4d4dd0fba5a0053be3ca3&f=28
for example:

var client_nc:NetConnection;
var out_ns:NetStream;
var in_ns:NetStream;

emisor_cam = Camera.get();
emisor_video.attachVideo(_root.emisor_cam);

function doConnect() {
client_nc = new NetConnection();
client_nc.onStatus = function(info) {
trace("Level: " + info.level + " Code: " + info.code);
}
client_nc.connect("rtmp://loca lhost/videochat/" + _level0.sid);
}

function publishMe() {
out_ns = new NetStream(_root.client_nc);
out_ns.attachVideo(_root.emiso r_video);
out_ns.publish(_level0.eid);
}

function playMe() {
in_ns = new NetStream(_root.client_nc);
receptor_video.attachVideo(in_ ns);
in_ns.play(_level0.rid);
}
// Connect to the server
doConnect();

// Publish the live stream
publishMe();

// Play back the stream from the server
playMe();

Nhận xét

Bài đăng phổ biến từ blog này

Ký tự viết tắt trong chat & email

dung lượng RAM lớn nhất mà HĐH cấu trúc 32-bit nhận được

Ubuntu LAMP Server