开发者

Audio streaming from Android to VLC on PC

开发者 https://www.devze.com 2023-03-20 13:14 出处:网络
The method bellow captures on slice of sound and saves it: MediaRecorder.setOutputFile(PATH); I want to stream sound. So I need capture sound frame by framef to send across the network. How I can

The method bellow captures on slice of sound and saves it:

MediaRecorder.setOutputFile(PATH); 

I want to stream sound. So I need capture sound frame by framef to send across the network. How I can do it?

How 开发者_如何学CI can capture sound frame by frame?


I found one class enable to do this. AudioRecord. http://developer.android.com/reference/android/media/AudioRecord.html

this class capture de sound and put it in a buffer in memory, so you can use this buffer to send by network in livestream or whatever you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消