更新一套LGPL版核心库,进入底层变更适配期
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -13,10 +13,8 @@ class MainActivity : AudioServiceActivity() {
|
||||
|
||||
private val CHANNEL = "com.lxh.qingting_player/file_provider"
|
||||
|
||||
// ⭐ 关键:注册 MethodChannel
|
||||
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
|
||||
super.configureFlutterEngine(flutterEngine)
|
||||
|
||||
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, CHANNEL)
|
||||
.setMethodCallHandler { call, result ->
|
||||
if (call.method == "getContentUri") {
|
||||
@@ -50,6 +48,15 @@ class MainActivity : AudioServiceActivity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
// 🔥 测试 libmpv.so 能否被系统加载
|
||||
try {
|
||||
System.loadLibrary("mpv")
|
||||
Log.e("MPV_TEST", "🔥 libmpv LOAD SUCCESS")
|
||||
} catch (e: Throwable) {
|
||||
Log.e("MPV_TEST", "🔥 libmpv LOAD FAILED", e)
|
||||
}
|
||||
|
||||
setHighRefreshRate()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user