来自 Android 的流媒体视频
我正在尝试从 Android 手机流式传输视频,该视频应该在媒体播放器中观看。 我一直在查看 http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system 这似乎是一个死胡同它发送原始文件数据,而不是可流格式。
然后我尝试使用 SipDroid 的一些代码,更具体; VideoCamera.java、RtpPacket.java 和 RtpSocket.java 的部分,它们在 UDP 上提供流,但是这些不能在 ie mplayer 中播放(无法检测编解码器)。 Wireshark 告诉它是 UDP 数据包而不是 RTP 数据包,因此可能缺少某些内容?
我有点陷入困境,你有什么建议如何克服这个障碍吗?
I'm trying to stream video from the Android phone, which should be watched in an mediaplayer.
I've been looking at http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system which seems to be a dead end since it send the raw file data, and not a streamable format.
Then I tried using some code from SipDroid, more specific; parts of VideoCamera.java, RtpPacket.java and RtpSocket.java, which gives a stream on UDP, however these is not playable in i.e. mplayer(can't detect the codec). Wireshark tells that it is a UDP packet and not a RTP packet so something might be missing?
I'm kind'a stuck, have you any suggestions how to get past this bump?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 Wireshark 中右键单击数据包,然后选择解码为选项。然后选择rtp。现在您可以在 Wireshark 中看到 RTP 数据包。
Right click on the packet in Wireshark and select the decode as option. Then select rtp. Now you can see RTP packets in Wireshark.
我认为您可以从以下代码片段中找到解决方案:
I think that you can find the solution from the following code snippet: