isselmuden
%Europe/Berlin %857 %2005, 21:35
Hallo
Ik heb een probleem, ik probeer een stream van mijn webcam op te slaan
op de Communication server.
Maar dat lukt niet ik krijg de volgende info codes:
Code: NetConnection.Connect.Success Level: status
Code: NetStream.Publish.Start Level: error
Code: NetStream.Record.NoAccess Level: status
Code: NetStream.Unpublish.Success Level: status
Kan iemand mij uitleggen waarom ik de start error krijg en
de NoAccess error?
Dit is mijn code:
#include "NetDebug.as"
RecState_box.text = 0;
numSnaps = 0;
Record_btn.setLabel("Record");
function doConnect() {
client_nc = new NetConnection();
client_nc.onStatus = function(info) {
_root.debug += "Level: "+info.level+newline+"Code: "+info.code+"<br>";
};
client_nc.connect("rtmp:/profiles");
}
function initStreams() {
// Stream for recording
out_ns = new NetStream(client_nc);
out_ns.onStatus = function(info) {
_root.debug += "Level: "+info.level+newline+"Code: "+info.code+"<br>";
};
// Stream for playing
in_ns = new NetStream(client_nc);
in_ns.onStatus = function(info) {
_root.debug += "Level: "+info.level+newline+"Code: "+info.code+"<br>";
};
}
client_cam = Camera.get();
Live_vc.attachVideo(client_cam);
function doRecord() {
if (RecState_box.text == 0) {
Snapshot_mc.removeMovieClip();
out_ns.attachVideo(client_cam, 0);
out_ns.publish("myRecording"+numSnaps, "record");
Record_btn.setLabel("Stop");
RecState_box.text = 1;
} else {
out_ns.publish(false);
out_ns.close();
Record_btn.setLabel("Record");
RecState_box.text = 0;
showSnapshot();
}
}
function showSnapshot() {
_root.attachMovie("View_mc", "Snapshot_mc", numSnaps);
Snapshot_mc.SnapView_vc.attachVideo(in_ns);
Snapshot_mc._x = 375;
Snapshot_mc._y = 225;
in_ns.play("myRecording"+numSnaps);
numSnaps++;
}
doConnect();
initStreams();
stop();
Ik hoop dat iemand me verder kan helpen
Groeten Willem
Ik heb een probleem, ik probeer een stream van mijn webcam op te slaan
op de Communication server.
Maar dat lukt niet ik krijg de volgende info codes:
Code: NetConnection.Connect.Success Level: status
Code: NetStream.Publish.Start Level: error
Code: NetStream.Record.NoAccess Level: status
Code: NetStream.Unpublish.Success Level: status
Kan iemand mij uitleggen waarom ik de start error krijg en
de NoAccess error?
Dit is mijn code:
#include "NetDebug.as"
RecState_box.text = 0;
numSnaps = 0;
Record_btn.setLabel("Record");
function doConnect() {
client_nc = new NetConnection();
client_nc.onStatus = function(info) {
_root.debug += "Level: "+info.level+newline+"Code: "+info.code+"<br>";
};
client_nc.connect("rtmp:/profiles");
}
function initStreams() {
// Stream for recording
out_ns = new NetStream(client_nc);
out_ns.onStatus = function(info) {
_root.debug += "Level: "+info.level+newline+"Code: "+info.code+"<br>";
};
// Stream for playing
in_ns = new NetStream(client_nc);
in_ns.onStatus = function(info) {
_root.debug += "Level: "+info.level+newline+"Code: "+info.code+"<br>";
};
}
client_cam = Camera.get();
Live_vc.attachVideo(client_cam);
function doRecord() {
if (RecState_box.text == 0) {
Snapshot_mc.removeMovieClip();
out_ns.attachVideo(client_cam, 0);
out_ns.publish("myRecording"+numSnaps, "record");
Record_btn.setLabel("Stop");
RecState_box.text = 1;
} else {
out_ns.publish(false);
out_ns.close();
Record_btn.setLabel("Record");
RecState_box.text = 0;
showSnapshot();
}
}
function showSnapshot() {
_root.attachMovie("View_mc", "Snapshot_mc", numSnaps);
Snapshot_mc.SnapView_vc.attachVideo(in_ns);
Snapshot_mc._x = 375;
Snapshot_mc._y = 225;
in_ns.play("myRecording"+numSnaps);
numSnaps++;
}
doConnect();
initStreams();
stop();
Ik hoop dat iemand me verder kan helpen
Groeten Willem