开发者

Play music from memory in Android

开发者 https://www.devze.com 2023-03-14 04:54 出处:网络
Is there a 开发者_如何转开发way to play a song that exists as an array of bytes in memory and not as a file on disk?

Is there a 开发者_如何转开发way to play a song that exists as an array of bytes in memory and not as a file on disk?

I know I could save it in a file temporarily and play it form there but I'd like to avoid this as I'm trying to implement a DRM system that will not expose unencrypted media files.


You can use AudioTrack. But it supports raw LPCM data only.

0

精彩评论

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