实时流媒体视频
Streaming video real time
我有一个特殊的设备(一种外部摄像机),它应该实时发送视频并流式传输到智能手机(android 首先)。
换句话说,想象一下 GoPro 应用程序的工作原理,您可以在智能手机上实时观看相机正在录制什么。
我的问题是,应该使用什么样的协议来获取实时视频流?我考虑过 WebSocket,但我不知道它是否是替代 HTTP 的最佳解决方案。
期待您的来信
非常感谢。
中的协议
希望对您有所帮助,
Ypu 应该使用 RTSP protocol. Depending on whether the codec uses your camera, you sholud use MediaPlayer class (see docs) or use VLC library。
我有一个特殊的设备(一种外部摄像机),它应该实时发送视频并流式传输到智能手机(android 首先)。 换句话说,想象一下 GoPro 应用程序的工作原理,您可以在智能手机上实时观看相机正在录制什么。
我的问题是,应该使用什么样的协议来获取实时视频流?我考虑过 WebSocket,但我不知道它是否是替代 HTTP 的最佳解决方案。
期待您的来信 非常感谢。
希望对您有所帮助,
Ypu 应该使用 RTSP protocol. Depending on whether the codec uses your camera, you sholud use MediaPlayer class (see docs) or use VLC library。