Good afternoon,
I have 3 questions please help me.
1 - I use to live broadcast, a script in AS2.
But is not working in this version using the ADDON “Transcoder” the screen goes BLACK.
What should I do?
2 - There is a flash grabber for live broadcasts, the latest? Free?
3 - How to stay put authenticated this connection? Why I had to disable publish users to connect.
thank you very much
function cameraOn()
{
mycam = Camera.get();
mycam_audio = Microphone.get();
//mycam.setMode(160, 120, mycam.fps);
mycam.setMode(160, 120, mycam.fps);
mycam.setQuality(40000, 100);
cam_feed.attachVideo(mycam);
cam_feed.attachAudio(mycam_audio);
client_nc = new NetConnection();
client_nc.connect("rtmp://xxxx/live/");
cam_ns = new NetStream(client_nc);
cam_ns.setBufferTime(0);
cam_ns.attachVideo(mycam);
cam_ns.attachAudio(mycam_audio);
cam_ns.publish("teste123");
cam_ns.onStatus = function (infoObject)
{
txt_situacao_conexao_envio.text = infoObject.description;
if (infoObject.code == "NetStream.Play.Stop")
{
txt_situacao_conexao_envio.text = "Parado";
} // end if
if (infoObject.code == "NetStream.Publish.Start")
{
txt_situacao_conexao_envio.text = "OK - Conectado!";
fundo_desc._x = -9000;
fundo_desc._y = -9000;
} // end if
};
in_ns = new NetStream(client_nc);
in_ns.play("teste123");
in_ns.setBufferTime(0);
in_ns.onStatus = function (infoObject)
{
};
live_feed.attachVideo(in_ns);
live_feed.attachAudio(in_ns);
} // End of the function
function runOnce()
{
if (in_ns.liveDelay < 0.500000)
{
tmp = "Boa";
}
else if (in_ns.liveDelay < 1)
{
tmp = "Média";
}
else
{
tmp = "Lento";
} // end else if
txt_delay.text = in_ns.liveDelay + "s " + tmp;
txt_situacao_audio.text = mycam_audio.activityLevel + "%";
if (in_ns.liveDelay == undefined)
{
txt_situacao_conexao_envio.text = "Parou!";
txt_delay.text = "-";
myDate = new Date();
if (myDate.getSeconds() % 5 == 0)
{
++desconexoes;
txt_desconexoes.text = desconexoes;
fundo_desc._x = 0;
fundo_desc._y = 0;
cameraOn();
} // end if
} // end if
setTimeout(runOnce, 1000);
} // End of the function
fundo_desc._x = -9000;
fundo_desc._y = -9000;
cameraOn();
var intID = setTimeout(runOnce, 1000);
desconexoes = 0;