Foros del Web » Administración de Sistemas » Software para Servers »

Servidor RTMP

Estas en el tema de Servidor RTMP en el foro de Software para Servers en Foros del Web. hola a todos....yo nuevamente...quiero con ancias aprender como montar un servidor rtmp para una emisora de radio online!!!.... Deseo transmitir con shoutcast con audio aac+ ...
  #1 (permalink)  
Antiguo 13/03/2011, 13:33
 
Fecha de Ingreso: febrero-2011
Mensajes: 62
Antigüedad: 13 años, 2 meses
Puntos: 0
Servidor RTMP

hola a todos....yo nuevamente...quiero con ancias aprender como montar un servidor rtmp para una emisora de radio online!!!....
Deseo transmitir con shoutcast con audio aac+ , y necesito un servidor rtmp por ej:
rtmp://xxx.xxx.xx.xx/miradio y otro http://xxx.xxx.xx.xx/puerto
Donde xxx.xxx.... es mi IP
es que quiero utilizar el siguiente código para reproducir el audio pero primero necesito crear un servidor rtmp

function initialize()
{
_root.connect.streamStr.text = "http://xxx.xxx.xxx:puerto";
_root.connect.connectStr.text = "rtmpt://xxx.xxx.xxx/miradio";
_root.connect.connectButton.onPress = _root.doConnect;
_root.connect.connectButton2.onPress = _root.doConnect;
metaDataValues.title = "";
metaDataValues.genre = "";
metaDataValues.name = "";
metaDataValues.url = "";
doConnect();
trace (System.capabilities.version);
}
function doConnect()
{
if (nc == null)
{
nc = new NetConnection();
nc.onStatus = function (infoObject)
{
trace ("nc: " + infoObject.code + " (" + infoObject.description + ")");
if (infoObject.code == "NetConnection.Connect.Success")
{
playShoutcast();
} // end if
};
nc.connect(_root.connect.connectStr.text);
enablePlayControls(true);
}
else
{
if (nsPlay != null)
{
nsPlay.attachVideo(null);
nsPlay.attachAudio(null);
} // end if
nsPlay = null;
nc.close();
nc = null;
updateMetaData();
enablePlayControls(false);
} // end else if
} // End of the function
function enablePlayControls(isEnable)
{
} // End of the function
function playShoutcast()
{
nsPlay = new NetStream(nc);
nsPlay.onStatus = function (infoObject)
{
trace ("nsPlay: " + infoObject.code + " (" + infoObject.description + ")");
};
nsPlay.onHeaderData = function (infoObject)
{
trace ("onHeaderData");
for (var _loc2 in infoObject)
{
trace (" " + _loc2 + " = " + infoObject[_loc2]);
} // end of for...in
if (infoObject["icy-genre"] != undefined)
{
metaDataValues.genre = infoObject["icy-genre"];
} // end if
if (infoObject["icy-name"] != undefined)
{
metaDataValues.name = infoObject["icy-name"];
} // end if
updateMetaData();
};
nsPlay.onMetaData = function (infoObject)
{
trace ("onMetaData");
for (var _loc2 in infoObject)
{
trace (" " + _loc2 + " = " + infoObject[_loc2]);
} // end of for...in
if (infoObject.StreamTitle != undefined)
{
metaDataValues.title = infoObject.StreamTitle;
} // end if
if (infoObject.StreamUrl != undefined)
{
metaDataValues.url = infoObject.StreamUrl;
} // end if
updateMetaData();
};
nsPlay.setBufferTime(10);
nsPlay.play(_root.connect.streamStr.text);
soundRemote.attachAudio(nsPlay);
} // End of the function
this.mc_vc.show_percent = true;
this.mc_vc.shadow = {distance: 0, angle: 0, color: 0};
var nc = null;
var nsPlay = null;
var metaDataValues = new Array();
Stage.align = "TL";
Stage.scaleMode = "noScale";
_global.style.setStyle("backgroundColor", "0xFFCC00 ");
initialize();
_root.musicPlayer.gotoAndPlay(1);
musicPlays = true;


por favor si me ayudan!!!...desde ya muchas gracias!!!.....
Un cordial saludo a todos!!!...

Etiquetas: aac, audio, radio, rtmp, servidor, servidores-web, shoutcast
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:54.