直播视频流RTMP / RTSP播放器不使用的WebView(WOWZA服务器)上的Andr​​oid播放器、服务器、视频、RTMP

2023-09-12 22:44:14 作者:远山寻你

我正在开发中,我要发布和流式播放视频的Andr​​oid应用程序...

I am developing an Android application in which I want to publish as well as stream a video...

我要的是:

我的应用程序记录一个视频和视频被发送到服务器

My app records a video and that video is sent to the server

录制的视频将直播流传输到另一个Android设备在同一时间。

The recorded video will be streamed live to another Android device at the same time..

我已经完成了使用第一个任务javac和ffmpeg的。我被困在第二个任务。我寻觅了很多数据从服务器上的视频,但我没有成功。 我不想使用的WebView ,并在它播放视频。 我想要一个RTMP球员。这个任务已经在iOS中已完成......我想同样为Android。什么是一些链接,完成我的任务是什么?

I have completed the first task using javac and ffmpeg. I am stuck in the second task. I have searched a lot to stream the video from the server, but I didn't succeed. I don't want to use WebView and play the video in it. I want an RTMP player. This task has been completed in iOS... I want the same for Android. What is some link to fulfill my task?

P.S:

我使用的 wowza服务器并RTMP流。我想RTMP流视频(FLV的)......如果没有解决方案是可用的,我想切换到RTSP和也,需要一个工作环节要遵循..

I am using wowza server and RTMP stream. I would like to stream RTMP video (.flv)... If no solution is available, I would like to switch to RTSP and for that also, need a working link to follow..

现在我已经切换到 RTSP播放器[与wowza服务器] 作为我还没有找到一个RTMP球员没有web视图。如何解决这个问题?

Now I have switched to RTSP player [with wowza server] as I have not found an RTMP player without webview. How do I fix this issue?

推荐答案

您可以通过Vitamio库轻松地做到这一点。 Vitamio可以在Android和iOS播放720p / 1080p高清,MP4,MKV,M4V,MOV,FLV,AVI,RMVB,RM,TS,TP等众多视频格式。几乎所有流行的流媒体协议是由Vitamio支持,包括HLS(M3U8),MMS,RTSP,RTMP和HTTP。

You can easily do it via Vitamio Lib. Vitamio can play 720p/1080p HD, mp4, mkv, m4v, mov, flv, avi, rmvb, rm, ts, tp and many other video formats in Android and iOS. Almost all popular streaming protocols are supported by Vitamio, including HLS (m3u8), MMS, RTSP, RTMP, and HTTP.

从下载Vitamio捆绑这里。

和从这里 演示。

And a demo from here.

从这里的教程。