小编ceb*_*ebe的帖子

无法在 Android Pie 上使用颤动声音插件播放音乐

我正在使用Flutter Sound 插件从 Android 上的 URL 播放音乐。这在 Android 8 上没有任何问题,但更新到 Android 9 后,来自 URL 的音乐不再播放。我为插件打开了一个问题,但这似乎是 Android 9 本身的一些重大变化。

Android 9 中是否有任何更改会导致此问题?

我在android 9 changes上找不到任何明显的东西。

这是日志输出:

I/MediaPlayer(26707): Need to enable context aware info
V/MediaPlayer-JNI(26707): native_setup
I/flutter (26707): error: Exception: Player already stopped.
V/MediaPlayerNative(26707): constructor
V/MediaPlayerNative(26707): setListener
V/MediaHTTPService(26707): MediaHTTPService(android.media.MediaHTTPService@b2558b2): Cookies: null
V/MediaPlayerNative(26707): setVideoSurfaceTexture
V/MediaPlayerNative(26707): prepare
V/MediaHTTPService(26707): makeHTTPConnection: CookieManager created: java.net.CookieManager@b993003
V/MediaHTTPService(26707): makeHTTPConnection(android.media.MediaHTTPService@b2558b2): cookieHandler: java.net.CookieManager@b993003 Cookies: null
D/MediaHTTPConnection(26707): setReadTimeOut = 15000ms
D/NetworkSecurityConfig(26707): Using Network Security Config from …
Run Code Online (Sandbox Code Playgroud)

android android-mediaplayer dart flutter flutter-dependencies

1
推荐指数
1
解决办法
2138
查看次数