Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

播放视频有没有API能把音频流单独拿出来做其他混音用啊 #5522

Open
DonyLi opened this issue Apr 7, 2023 · 3 comments
Open

Comments

@DonyLi
Copy link

DonyLi commented Apr 7, 2023

各位有没有遇到这样的需求需要这样的操作啊

@DonyLi
Copy link
Author

DonyLi commented Apr 13, 2023

这个问题我已经解决了
ijkmedia/ijkj4a/j4a/class/android/media/AudioTrack.c:361 此位置修改引用的原生安卓的 audiotrack 在这里替换成你自己audiotrack
就在你的项目里面找个地方写一个 myaudiotrack继承安卓的audiotrack 然后把这个路径设置到ijkmedia/ijkj4a/j4a/class/android/media/AudioTrack.c:361这个位置的sign=你的路径就好了 “.”要用“/” 然后重新编译打包 放进去 就会回调你的audiotrack 就可以拿到写的byte数据处理了

@xuwenxindeai
Copy link

ios怎么处理呢

@DonyLi
Copy link
Author

DonyLi commented Nov 24, 2023

一样得 改了源码那个编译一遍 拿出来用就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants