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

/ 5,883评论 / 23452阅读 / 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. Elmersoalf说道:

    Tadalafil Tablet Generic Tadalafil 20mg price Buy Tadalafil 10mg

  2. Charlesvox说道:

    http://kamagra.win/# buy kamagra online usa

  3. Georgefrege说道:

    cenforce.pro: Buy Cenforce 100mg Online – buy cenforce

  4. Georgefrege说道:

    Generic Cialis without a doctor prescription: buy cialis overseas – Cheap Cialis

  5. Charlesvox说道:

    http://levitrav.store/# Levitra 20 mg for sale

  6. Elmersoalf说道:

    Cheapest Sildenafil online Buy Viagra online best price for viagra 100mg

  7. Tylerreunk说道:

    https://cialist.pro/# cheapest cialis

  8. Elmersoalf说道:

    Buy Vardenafil 20mg online Buy generic Levitra online Levitra online USA fast

  9. Jamesexite说道:

    Kamagra tablets: cheap kamagra – buy Kamagra

  10. Jamesexite说道:

    cenforce for sale: order cenforce – Purchase Cenforce Online

  11. DavidBiolo说道:

    https://kamagra.win/# Kamagra 100mg price

  12. Charlesvox说道:

    https://cialist.pro/# Generic Cialis without a doctor prescription

  13. Elmersoalf说道:

    Buy Cenforce 100mg Online Cenforce 100mg tablets for sale Buy Cenforce 100mg Online

  14. Georgefrege说道:

    Levitra 10 mg buy online: Levitra 20mg price – Levitra tablet price

  15. Jamesexite说道:

    Generic Levitra 20mg: Buy generic Levitra online – Vardenafil price

  16. DavidBiolo说道:

    https://cialist.pro/# Cialis over the counter

  17. Elmersoalf说道:

    buy cenforce cenforce.pro cenforce.pro

  18. Charlesvox说道:

    http://cialist.pro/# cialis for sale

  19. Elmersoalf说道:

    п»їLevitra price Buy generic Levitra online Buy Vardenafil 20mg

  20. Davidfrify说道:

    ciprofloxacin order online where can i buy cipro online ciprofloxacin mail online

  21. WilliamRen说道:

    http://cytotec.club/# cytotec buy online usa

  22. Davidfrify说道:

    price of lisinopril generic lisinopril 20 mg india prinzide zestoretic

  23. WilliamRen说道:

    https://lisinopril.network/# prinzide zestoretic

  24. RandallGuesE说道:

    lisinopril sale: on line order lisinopril 20mg – lisinopril 80 mg daily

  25. Davidfrify说道:

    purchase cytotec order cytotec online buy misoprostol over the counter

  26. RandallGuesE说道:

    generic propecia without prescription: buy propecia for sale – order cheap propecia

  27. RonaldSwobe说道:

    https://ciprofloxacin.tech/# buy ciprofloxacin

  28. WilliamRen说道:

    http://cytotec.club/# buy cytotec in usa

  29. WilliamRen说道:

    http://nolvadex.life/# tamoxifen citrate pct

  30. Davidfrify说道:

    best lisinopril brand lisinopril 10mg price in india lisinopril 20

  31. RonaldSwobe说道:

    https://lisinopril.network/# lisinopril 10 best price

  32. WilliamRen说道:

    https://cytotec.club/# buy cytotec pills

  33. Davidfrify说道:

    order generic propecia without insurance buying generic propecia without rx order cheap propecia without prescription

  34. RandallGuesE说道:

    get cheap propecia without a prescription: buy cheap propecia pills – cost generic propecia without insurance

  35. RandallGuesE说道:

    ciprofloxacin mail online: cipro ciprofloxacin – ciprofloxacin

  36. RandallGuesE说道:

    tamoxifen vs clomid: natural alternatives to tamoxifen – nolvadex price

  37. WilliamRen说道:

    https://finasteride.store/# cost of cheap propecia online

  38. Davidfrify说道:

    buy zestril 20 mg online lisinopril buy in canada can i order lisinopril online

  39. WilliamRen说道:

    https://cytotec.club/# buy cytotec over the counter

  40. Davidfrify说道:

    tamoxifen and osteoporosis tamoxifen postmenopausal tamoxifen citrate

  41. Davidfrify说道:

    Abortion pills online Cytotec 200mcg price Cytotec 200mcg price

  42. WilliamRen说道:

    https://finasteride.store/# buy generic propecia without a prescription

  43. RandallGuesE说道:

    buy cipro online canada: cipro ciprofloxacin – buy generic ciprofloxacin

  44. RandallGuesE说道:

    cost of lisinopril 40 mg: 2 lisinopril – lisinopril prescription coupon

  45. RandallGuesE说道:

    benefits of tamoxifen: lexapro and tamoxifen – tamoxifen for breast cancer prevention

  46. WilliamRen说道:

    https://finasteride.store/# cost generic propecia pills

  47. Davidfrify说道:

    buy ciprofloxacin cipro for sale buy generic ciprofloxacin

  48. WilliamRen说道:

    https://lisinopril.network/# lisinopril 20 mg discount

  49. Davidfrify说道:

    п»їcytotec pills online buy misoprostol over the counter cytotec abortion pill

发表回复

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