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

/ 5,318评论 / 22308阅读 / 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. PhilipBup说道:

    where can i buy erectile dysfunction pills best ed meds online buy erectile dysfunction pills online

  2. HarveyBeemi说道:

    http://onlinepharmacyworld.shop/# canadian pharmacy without prescription

  3. Armandosed说道:

    https://edpill.top/# buy ed medication

  4. MatthewDoolo说道:

    ed pills for sale: order ed pills – buy ed pills

  5. AustinWhoto说道:

    non prescription online pharmacy india: online pharmacy no prescription – canadian pharmacy no prescription needed

  6. PhilipBup说道:

    canadian pharmacy no prescription canadian pharmacy coupon code cheap pharmacy no prescription

  7. Armandosed说道:

    http://onlinepharmacyworld.shop/# online pharmacy discount code

  8. MatthewDoolo说道:

    ed medicines: online erectile dysfunction – ed prescription online

  9. Armandosed说道:

    http://medicationnoprescription.pro/# canadian pharmacy non prescription

  10. HarveyBeemi说道:

    https://edpill.top/# buy ed medication

  11. PhilipBup说道:

    canadian pharmacies not requiring prescription cheapest pharmacy to fill prescriptions without insurance pharmacy coupons

  12. HarveyBox说道:

    https://medicationnoprescription.pro/# best website to buy prescription drugs

  13. MatthewDoolo说道:

    canadian pharmacy no prescription: canadian pharmacy without prescription – cheapest pharmacy prescription drugs

  14. Armandosed说道:

    http://medicationnoprescription.pro/# no prescription canadian pharmacy

  15. PhilipBup说道:

    buy drugs without prescription canadian prescription how to buy prescriptions from canada safely

  16. Armandosed说道:

    https://onlinepharmacyworld.shop/# canadian pharmacy without prescription

  17. AustinWhoto说道:

    best online pharmacy no prescription: mail order prescription drugs from canada – no prescription pharmacy paypal

  18. MatthewDoolo说道:

    cheapest ed treatment: ed rx online – ed medications cost

  19. Armandosed说道:

    http://medicationnoprescription.pro/# order prescription drugs online without doctor

  20. JamesLot说道:

    zithromax 250 mg pill zithromax cost canada zithromax prescription in canada

  21. BrainSaw说道:

    http://amoxicillina.top/# can i buy amoxicillin over the counter in australia

  22. MichaelPycle说道:

    zithromax 250mg: where can i buy zithromax medicine – zithromax capsules

  23. BryanSturf说道:

    buy prednisone 10mg online: buy prednisone nz – buy prednisone 20mg

  24. BrainSaw说道:

    http://prednisonea.store/# how can i order prednisone

  25. MichaelPycle说道:

    prednisone 5 mg: 1 mg prednisone daily – prednisone 20mg tablets where to buy

  26. JamesLot说道:

    amoxil pharmacy can i purchase amoxicillin online generic amoxicillin

  27. DomenicDobby说道:

    stromectol tablet 3 mg: minocycline 50mg tablets online – ivermectin 9 mg

  28. MichaelPycle说道:

    order cheap clomid without dr prescription: how to buy cheap clomid – generic clomid without dr prescription

  29. BrainSaw说道:

    http://stromectola.top/# stromectol 3 mg tablet

  30. JamesLot说道:

    where can i buy zithromax capsules where to get zithromax over the counter zithromax z-pak

  31. MichaelPycle说道:

    10 mg prednisone: prednisone brand name india – prednisone online for sale

  32. BrainSaw说道:

    https://amoxicillina.top/# price of amoxicillin without insurance

  33. BryanSturf说道:

    where to get zithromax over the counter: generic zithromax 500mg – zithromax prescription

  34. MichaelPycle说道:

    prednisone 4 mg daily: prednisone 20mg tablets where to buy – buy prednisone mexico

  35. JamesLot说道:

    purchase prednisone from india prednisone 50 mg buy prednisone 12 tablets price

  36. Josephtrink说道:

    https://stromectola.top/# stromectol order online

  37. MichaelPycle说道:

    zithromax generic cost: zithromax pill – buy azithromycin zithromax

  38. JamesLot说道:

    where to get cheap clomid price where can i get generic clomid now how to get cheap clomid prices

  39. BryanSturf说道:

    how can i get generic clomid online: where to buy cheap clomid no prescription – get cheap clomid online

  40. DomenicDobby说道:

    minocycline 50mg without doctor: buy minocycline 100 mg – minocycline 50mg tablets for humans for sale

  41. MichaelPycle说道:

    get cheap clomid no prescription: where to buy cheap clomid tablets – where to get clomid prices

  42. JeromedUb说道:

    buy cipro online buy cipro online without prescription ciprofloxacin over the counter

  43. JamesSew说道:

    order cytotec online: buy cytotec online – Cytotec 200mcg price

  44. RussellVeila说道:

    doxycycline online: generic doxycycline – where can i get doxycycline

  45. JeromedUb说道:

    tamoxifen endometrium what happens when you stop taking tamoxifen tamoxifen for men

  46. Archierut说道:

    https://ciprofloxacin.guru/# buy cipro online without prescription

  47. Williamzew说道:

    tamoxifen cyp2d6: effexor and tamoxifen – tamoxifen and osteoporosis

  48. RussellVeila说道:

    diflucan generic price: diflucan rx price – buy diflucan

发表回复

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