Transmisión en vivo RTMP/RTSP player sin usar webview (WOWZA server) en Android


Estoy desarrollando una aplicación para Android en la que quiero publicar y transmitir un video...

Lo que quiero es:

  1. Mi aplicación graba un vídeo y ese vídeo se envía al servidor

  2. El video grabado se transmitirá en vivo a otro dispositivo Android al mismo tiempo..

He completado la primera tarea usando javac y ffmpeg. Estoy atascado en la segunda tarea. He buscado mucho para transmitir el video desde el servidor, pero no lo logré. Yo no quiero usar WebView y reproducir el video en él. Yo quiero un reproductor RTMP. Esta tarea se ha completado en iOS... Quiero lo mismo para Android. ¿Qué es un enlace para cumplir mi tarea?

P.d.:

Estoy usando wowza server y RTMP stream. Me gustaría transmitir video RTMP (.flv)... Si no hay solución disponible, me gustaría cambiar a RTSP y para eso también, necesito un enlace de trabajo para seguir..

Ahora he cambiado a Reproductor RTSP [con servidor wowza] ya que no he encontrado un reproductor RTMP sin webview. ¿Cómo soluciono este problema?

Author: M.G, 2013-12-04

6 answers

Puede hacerlo fácilmente a través de Vitamio Lib. Vitamio puede reproducir 720p / 1080p HD, mp4, mkv, m4v, mov, flv, avi, rmvb, rm, ts, tp y muchos otros formatos de video en Android e iOS. Casi todos los protocolos de transmisión populares son compatibles con Vitamio, incluidos HLS (m3u8), MMS, RTSP, RTMP y HTTP.

Descarga Vitamio Bundle desde aquí.

Y una demo de aquí .

Un tutorial de aquí.

 22
Author: Zeeshan Saiyed,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-03-31 13:05:07

Estoy usando Adobe AIR para jugar RTMP y es impresionante. He encontrado la respuesta aquí; ver el código:

function init_RTMP():void
{
    streamID  = "RT_2";
    videoURL = "rtmp://fms5.visionip.tv/live/RT_2";

    vid = new Video();

    nc = new NetConnection();
    nc.addEventListener(NetStatusEvent.NET_STATUS, onConnectionStatus);
    nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
    nc.connect(videoURL);
}

private function onConnectionStatus(e:NetStatusEvent):void
{
    if (e.info.code == "NetConnection.Connect.Success")
    {
        trace("Creating NetStream");
        netStreamObj = new NetStream(nc);

        metaListener = new Object();
        metaListener.onMetaData = received_Meta;
        netStreamObj.client = metaListener;

        netStreamObj.play(streamID);
        vid.attachNetStream(netStreamObj);
        addChild(vid);
    }
}
 3
Author: Anas,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-05-23 11:46:58

Si no tiene otras opciones, puede usar spydroid-ipcamera, que es un proyecto de código abierto. Es una alternativa para sus necesidades. Lo he comprobado y proporciona video en vivo treaming.

 1
Author: Hardik Joshi,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-02-07 19:47:49

Es posible que desee probar el uso de Adobe AIR que puede jugar trivialmente rtmp, y deplay la aplicación de AIRE a Android.

Implementación de la aplicación AIR en Android: http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-8000.html

 0
Author: Bgpl,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-01-10 08:57:39
 0
Author: Mina Gabriel,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-02-28 05:04:57

He usado libVLC en una de mis aplicaciones y funciona bien. https://github.com/mrmaffen/vlc-android-sdk

 0
Author: Abhishek Akhani,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-09-02 08:56:30