FME + FMS + record

Hello.

I am creating program based on this site's Article.

http://www.fmsguru.com/showarticle.cfm?articleID=34


In similar way I create, but a warning dialog appears when starting record.

warning say that "publishing aborted.publishing to server aborted. continuing encoding to file."

Probably Because of two streams from client's same video source, Error happen.

I call record() method like following.


--------------------------------------------
application.onConnect = function(){

client.onRecordStart = function( streamname ){

stream = Stream.get("XXX");
stream.play("sample", -1, -1 );
stream.record();
}
}
--------------------------------------------

In the Article, record() method is called like this.

application.recordStream.record();

How do I call record() method?
Where do I call record() method?

thanks.


Try this on the server side:


application.onAppStart = function(){
this.users = new Object();
this.userID = 0;
}

application.onConnect = function(clientObj){
application.acceptConnection(clientObj);
clientObj.userID = this.userID;
this.users[this.userID] = clientObj;
this.userID++;
}

application.onDisconnect = function(clientObj){
delete this.users[clientObj.userID]

for(var i in this.users){
trace(this.users[i]);
}
}
Then, connect up with the client, open the admin and get the live log panel up. Then close the client side and you'll see there are no users in the object.

Nhận xét

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

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

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

Ubuntu LAMP Server