[FFmpeg万能音频播放器]解码音频数据(三)
注意本文代码是在 https://blog.csdn.net/we1less/article/details/109096144 的基础上写的。 mainxml <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android" > <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:onClick="run"/> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:text="开始" android:onClick="begin"/> </LinearLayout> mainactivity package com.example.godvmusic; import