befovy / fijkplayer

ijkplayer for flutter. ijkplayer 的 flutter 封装。 Flutter video/audio player. Flutter media player plugin for android/iOS based on ijkplayer. fijkplayer 是基于 ijkplayer 封装的 flutter 媒体播放器,开箱即用,无需编译 ijkplayer
https://fijkplayer.befovy.com
MIT License
1.65k stars 354 forks source link

[BUG]/User/xxxx/.pub-cache/hosted/pub.flutter-io.cn/fijkplayer-0.11.0/android/src/main/java/com/befovy/fijkplayer/FijkPlugin.java:57: 警告: [deprecation] PluginRegistry中的Registrar已过时 import io.flutter.plugin.common.PluginRegistry.Registrar; #638

Open jeckni opened 1 month ago

jeckni commented 1 month ago

/Users/nizhangfu/.pub-cache/hosted/pub.flutter-io.cn/fijkplayer-0.11.0/android/src/main/java/com/befovy/fijkplayer/FijkPlugin.java:57: 警告: [deprecation] PluginRegistry中的Registrar已过时 import io.flutter.plugin.common.PluginRegistry.Registrar; ^ /Users/xxxx/.pub-cache/hosted/pub.flutter-io.cn/fijkplayer-0.11.0/android/src/main/java/com/befovy/fijkplayer/FijkPlugin.java:84: 警告: [deprecation] PluginRegistry中的Registrar已过时 private Registrar mRegistrar; ^ /Users/xxxx/.pub-cache/hosted/pub.flutter-io.cn/fijkplayer-0.11.0/android/src/main/java/com/befovy/fijkplayer/FijkPlugin.java:104: 警告: [deprecation] PluginRegistry中的Registrar已过时 public static void registerWith(Registrar registrar) { ^ /Users/xxxx/.pub-cache/hosted/pub.flutter-io.cn/fijkplayer-0.11.0/android/src/main/java/com/befovy/fijkplayer/FijkPlugin.java:229: 警告: [deprecation] PluginRegistry中的Registrar已过时 private void initWithRegistrar(@NonNull Registrar registrar) { ^ /Users/xxxx/.pub-cache/hosted/pub.flutter-io.cn/fijkplayer-0.11.0/android/src/main/java/com/befovy/fijkplayer/FijkPlugin.java:570: 警告: [deprecation] AudioManager中的abandonAudioFocus(OnAudioFocusChangeListener)已过时 audioManager.abandonAudioFocus(this); ^ 5 个警告

提示有5个警告,我该如何才能避免运行爆出这五个警告呀。