Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/04/2011, 13:51
Avatar de hungrywood
hungrywood
 
Fecha de Ingreso: abril-2011
Mensajes: 1
Antigüedad: 13 años
Puntos: 0
De acuerdo transmitir rtmp en dispositivos moviles

Estoy buscando la manera de transmitir rtmp para dispositivos móviles.
este código me funciona pero solamente para verlo en el computador, cuando lo reviso en un movil me pide descargar el archivo y dice que es invalido. HELP ME!!!

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HTML5 MediaElement</title>

<script src="../build/mediaelement.js"></script>
</head>
<body>

<h1>MediaElement.js</h1>

<p>This is only the Flash/Silverlight Shim for older browers or browsers without the codec you need. It is not a full player.</p>

<h2>RTMP stream</h2>
<video width="360" height="203" id="player1" src="rtmp://miservidor/envivo/midireccion" autoplay="true" type="video/flv" controls="controls"></video>

<input type="button" id="pp" value="toggle" />
<span id="time"></span>

<script>
MediaElement('player1', {success: function(me) {

me.play();

me.addEventListener('timeupdate', function() {
document.getElementById('time').innerHTML = me.currentTime;
}, false);

document.getElementById('pp')['onclick'] = function() {
if (me.paused)
me.play();
else
me.pause();
};

}});
</script>

</body>
</html>