Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在 Android 上制作视频聊天应用程序,我从Camera.PreviewCallback::onPreviewFrame(byte[] data, Camera camera).
Camera.PreviewCallback::onPreviewFrame(byte[] data, Camera camera)
但我不知道如何将字节数组“数据”变成Stream可以在远程机器上播放的,或者由 MediaPlayer 在本地机器上播放。也许我真的不知道 a是什么以及 a和“数据帧”Stream之间的区别是什么。Stream
Stream
这里有人可以帮助我吗?
用这个InputStream is = new ByteA rrayInputStream(decodedBytes);
InputStream is = new ByteA rrayInputStream(decodedBytes);