android 是否可以通过socket发送图片
不仅仅是一两张图片,而是很多图片,以某种帧速率将其作为视频
,并将其通过套接字传递,让其他 Android 设备实时构建图片
Not only one or two picture but a lot of picture to make it as a video at some frame rate
and pass it through the socket and let the other android device build the picture real-time
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能的?是的,只要您使用 WiFi 或中间服务器,因为大多数移动网络实际上都有防火墙,不允许传入连接,因此手机无法直接发起相互通信。
有用?如果不进行压缩,您可能无法获得可容忍的速率/分辨率。
就实现而言,一旦您的应用程序在其清单中获得了互联网许可,网络部分就完全是标准的。 Android 的独特部分包括获取和显示帧,以及您选择使用内置编码器/解码器的任何用途。
Possible? Yes, provided you use either wifi or an intermediate server, as most mobile networks effectively have firewalls which won't permit incoming connections, so the phones cannot directly initiate communication with each other.
Useful? You would probably not get a tolerable rate/resolution without compression.
In terms of doing it, the networking part is fully standard once your application has internet permission in its manifest. The Android unique parts consist of obtaining and displaying frames, and any use you chose to make of built in encoders/decoders.