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

/ 6,837评论 / 30230阅读 / 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. RobertLAr说道:

    where can you buy doxycycline: doxycycline 50 mg tablets price – doxycycline 600 mg

  2. Jamesjer说道:

    cipro for sale: cipro pharmacy – ciprofloxacin generic

  3. Jamesjer说道:

    amoxicillin 500 mg tablets: generic amoxil 500 mg – how much is amoxicillin

  4. Jamesjer说道:

    buy cipro online canada: п»їcipro generic – buy cipro online canada

  5. Jamesjer说道:

    clomid cost: clomid generic – how can i get generic clomid

  6. Jamesjer说道:

    where to buy cipro online: ciprofloxacin 500 mg tablet price – ciprofloxacin generic

  7. Jamesjer说道:

    order doxycycline online: doxycycline for sale online uk – doxycycline compare prices

  8. Jamesjer说道:

    buy generic ciprofloxacin: where to buy cipro online – buy cipro online canada

  9. Jamesjer说道:

    how can i get clomid prices: where to buy generic clomid tablets – can i order generic clomid for sale

  10. Jamesjer说道:

    cipro online no prescription in the usa: antibiotics cipro – antibiotics cipro

  11. Jamesjer说道:

    can i order generic clomid without rx: how can i get generic clomid without insurance – can you buy clomid no prescription

  12. Jamesjer说道:

    buy cipro without rx: buy generic ciprofloxacin – buy cipro cheap

  13. Jamesjer说道:

    buy doxycycline 200 mg: doxycycline online australia – doxycycline 100mg otc

  14. ThomasInace说道:

    http://clomiddelivery.pro/# can you buy clomid without prescription

  15. ThomasInace说道:

    https://clomiddelivery.pro/# can i get clomid pills

  16. Jamesjer说道:

    buy cipro online canada: cipro 500mg best prices – ciprofloxacin generic

  17. ThomasInace说道:

    https://ciprodelivery.pro/# cipro ciprofloxacin

  18. ThomasInace说道:

    http://doxycyclinedelivery.pro/# doxycycline prescription australia

  19. Jamesjer说道:

    buy cipro online: buy cipro online canada – buy cipro online

  20. Jamesjer说道:

    amoxicillin canada price: amoxicillin 500 mg without prescription – amoxicillin 775 mg

  21. ThomasInace说道:

    http://amoxildelivery.pro/# amoxicillin price without insurance

  22. Jamesjer说道:

    Paxlovid buy online: paxlovid buy – paxlovid pill

  23. ThomasInace说道:

    https://clomiddelivery.pro/# generic clomid online

  24. Jamesjer说道:

    clomid buy: can i purchase generic clomid – how to buy clomid for sale

  25. ThomasInace说道:

    http://clomiddelivery.pro/# cost cheap clomid without prescription

  26. Jamesjer说道:

    cost of clomid without insurance: cost cheap clomid price – can i buy cheap clomid price

  27. ThomasInace说道:

    http://doxycyclinedelivery.pro/# how to get doxycycline 100mg

  28. Jamesjer说道:

    paxlovid cost without insurance: paxlovid for sale – paxlovid buy

  29. Jamesjer说道:

    paxlovid pill: paxlovid pharmacy – Paxlovid over the counter

  30. ThomasInace说道:

    https://amoxildelivery.pro/# amoxicillin 500mg prescription

  31. Jamesjer说道:

    can i buy generic clomid: where buy cheap clomid pill – how can i get generic clomid without insurance

  32. ThomasInace说道:

    http://ciprodelivery.pro/# where can i buy cipro online

  33. ThomasInace说道:

    https://amoxildelivery.pro/# buy amoxicillin online no prescription

  34. ThomasInace说道:

    https://amoxildelivery.pro/# amoxicillin 875 mg tablet

  35. Jamesjer说道:

    how to buy clomid online: cost clomid without insurance – where to buy clomid online

  36. Jamesjer说道:

    buy cipro online canada: where to buy cipro online – buy cipro without rx

  37. ThomasInace说道:

    https://clomiddelivery.pro/# where can i buy cheap clomid without rx

发表回复

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