简体   繁体   English

通过蓝牙将视频从一台Android手机实时流向另一台

[英]Live-stream video from one android phone to another via bluetooth

I am intended to make an app that stream live videos from one android phone to other one via Bluetooth,i need a simple player and there is no need to save the file,just play it. 我打算制作一款可通过蓝牙将实时视频从一部Android手机传输到另一部Android手机的应用程序,我需要一个简单的播放器,无需保存文件即可播放。 My knowledge about stream in java is not enough and I really don't know where to start! 我对Java流的了解还不够,我真的不知道从哪里开始! Please help me in finding any solution. 请帮助我找到任何解决方案。 Any help will be appreciated. 任何帮助将不胜感激。

There is a sample android project to do streaming live video and allows you take photos and record videos from remote phone via bluetooth. 有一个示例android项目可以进行流式直播视频,并允许您通过蓝牙从远程电话拍摄照片和录制视频。

BluetoothCameraAndroid BluetoothCameraAndroid

Android allows you to get frames as byte array using camera, you can use that api to get frames and send it across. Android允许您使用相机以字节数组的形式获取帧,您可以使用该API获取帧并将其发送出去。 But the problem is throttling the sending rate. 但是问题是限制了发送速率。 That also has been handled in that project. 该项目也已处理了该问题。

In marshmallow and above devices, you have to give permissions manually in settings. 在棉花糖及以上设备中,您必须在设置中手动授予权限。 This project does not include runtime permissions 该项目不包含运行时权限

Xuggler is a Java opensource library that works with streaming and modifying media on the fly. Xuggler是Java开源库,可实时处理流媒体和修改媒体。 you can start from it at: 您可以从以下位置开始:

http://www.xuggle.com/xuggler/ http://www.xuggle.com/xuggler/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM