[flutter/audioplayers]播放资源时报错

/ 9,988评论 / 44027阅读 / 0点赞

前言

问题

无法读取assets文件

E/flutter (32073): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unable to load asset: assets/file/music.mp3
E/flutter (32073): #0      PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:258:7)
E/flutter (32073): <asynchronous suspension>
E/flutter (32073): #1      AudioCache.fetchToMemory (package:audioplayers/src/audio_cache.dart:75:22)
E/flutter (32073): <asynchronous suspension>
E/flutter (32073): #2      AudioCache.load (package:audioplayers/src/audio_cache.dart:101:31)
E/flutter (32073): <asynchronous suspension>
E/flutter (32073): #3      AudioPlayer.setSourceAsset (package:audioplayers/src/audioplayer.dart:237:17)

本地资源/网络资源都无法播放

......
D/MediaCodecList(32073): codecHandlesFormat: no format, so no extra checks
D/CCodec  (32073): allocate(c2.android.mp3.decoder)
I/CCodec  (32073): setting up 'default' as default (vendor) store
I/CCodec  (32073): Created component [c2.android.mp3.decoder]
D/CCodecConfig(32073): read media type: audio/mpeg
D/ReflectedParamUpdater(32073): extent() != 1 for single value type: algo.buffers.max-count.values
D/ReflectedParamUpdater(32073): extent() != 1 for single value type: output.subscribed-indices.values
D/ReflectedParamUpdater(32073): extent() != 1 for single value type: input.buffers.allocator-ids.values
D/ReflectedParamUpdater(32073): extent() != 1 for single value type: output.buffers.allocator-ids.values
D/ReflectedParamUpdater(32073): extent() != 1 for single value type: algo.buffers.allocator-ids.values
D/ReflectedParamUpdater(32073): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater(32073): extent() != 1 for single value type: algo.buffers.pool-ids.values
......
D/CCodecBufferChannel(32073): [c2.android.mp3.decoder#231] MediaCodec discarded an unknown buffer
I/hw-BpHwBinder(32073): onLastStrongRef automatically unlinking death recipients
......

网络资源加载失败

......
Unexpected error!
D/AudioPlayers(31616): java.io.IOException: Cleartext HTTP traffic to {xxx.域名} not permitted
......
  1. Brandenven说道:

    where buy clomid pills: clomid rex pharm – how to get generic clomid without insurance

  2. StevenWearo说道:

    buy prednisone online usa: Prednisone Without Prescription – prednisone 15 mg tablet

  3. StevenWearo说道:

    15 mg prednisone daily: buy prednisone – where can you buy prednisone

  4. Brandenven说道:

    where to get clomid pills: cheap clomid – where can i buy cheap clomid no prescription

  5. StevenWearo说道:

    priligy maxpharm: buy priligy – dapoxetine online

  6. Derekjup说道:

    prednisone in canada: prednisone 30 mg daily – cost of prednisone tablets

  7. StevenWearo说道:

    max pharm: dapoxetine online – buy priligy

  8. Brandenven说道:

    cost of amoxicillin 30 capsules: Com Pharm – amoxicillin 1000 mg capsule

  9. Brandenven说道:

    prednisone 10mg tabs: generic Prednisone – fast shipping prednisone

  10. StevenWearo说道:

    can you get clomid: generic clomid – generic clomid online

  11. StevenWearo说道:

    prednisone cream rx: ray pharm – cost of prednisone in canada

  12. Derekjup说道:

    max pharm: priligy maxpharm – priligy max pharm

  13. Brandenven说道:

    amoxicillin 500mg no prescription: cheap amoxil – amoxicillin generic brand

  14. StevenWearo说道:

    buy prednisone with paypal canada: ray pharm – pharmacy cost of prednisone

  15. Brandenven说道:

    buying prednisone on line: generic Prednisone – where can i buy prednisone

  16. Bradleyarrip说道:

    buy prednisone tablets uk prednisone ray pharm 1250 mg prednisone

  17. Bradleyarrip说道:

    can you buy cheap clomid no prescription rex pharm can you get cheap clomid

  18. Предлагаем услуги профессиональных инженеров офицальной мастерской.
    Еслли вы искали сервисный центр xiaomi, можете посмотреть на сайте: официальный сервисный центр xiaomi
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  19. Brandenven说道:

    where to buy prednisone without prescription: Prednisone Without Prescription – buy prednisone 10mg online

  20. StevenWearo说道:

    how to buy generic clomid for sale: clomid purchase online rex pharm – how to buy cheap clomid now

  21. Derekjup说道:

    buy prednisone nz: buy prednisone – prednisone 2.5 tablet

  22. Bradleyarrip说道:

    how to buy cheap clomid tablets clomid buying generic clomid tablets

  23. Bradleyarrip说道:

    priligy max pharm Priligy tablets dapoxetine price

  24. StevenWearo说道:

    where to buy amoxicillin 500mg: buy amoxil online – amoxacillian without a percription

  25. DanielArill说道:

    rexall pharmacy amoxicillin 500mg http://priligymaxpharm.com/# max pharm

  26. The attention to detail is as attractive as it is thorough. I appreciate a person who notices the little things.

  27. Узнай все о варикоцеле причины варикоцеле 3 степени

  28. Brandenven说道:

    can you get clomid without a prescription: clomid rex pharm – buy generic clomid without prescription

  29. DanielArill说道:

    amoxacillian without a percription https://clomidrexpharm.com/# can you get generic clomid without rx

  30. StevenWearo说道:

    Priligy tablets: priligy maxpharm – dapoxetine price

  31. Brandenven说道:

    buy prednisone tablets uk: buy prednisone – prednisone prescription online

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注