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

/ 10,193评论 / 45051阅读 / 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. AlbertVed说道:

    ivermectin cream 5%: buy Stromectol – minocycline price

  2. DarrenDug说道:

    https://lisinopril1st.com/# lisinopril generic price in india

  3. Brandenven说道:

    cheap priligy: buy priligy max pharm – cheap priligy

  4. Brandenven说道:

    amoxicillin 500 mg purchase without prescription: cheap amoxil – amoxicillin 500mg price in canada

  5. AlbertVed说道:

    buy minocycline 100 mg online: inverfast.com – minocycline 50mg otc

  6. BernardGab说道:

    cheapest Lisinopril lisinopril1st lisinopril1st

  7. DarrenDug说道:

    http://plavixclo.com/# generic plavix

  8. Brandenven说道:

    prednisone 30 mg daily: prednisone ray pharm – order prednisone

  9. AlbertVed说道:

    Clopidogrel 75 MG price: buy Plavix Clo – Plavix generic price

  10. Davidhax说道:

    mexican drugstore online https://mexicanpharmgate.com/ medication from mexico pharmacy

  11. Brandenven说道:

    amoxicillin 500mg buy online canada: buy amoxil online – cost of amoxicillin

  12. Davidhax说道:

    buying prescription drugs in mexico online http://mexicanpharmgate.com/ mexico drug stores pharmacies

  13. DarrenDug说道:

    http://iverfast.com/# stromectol 3mg

  14. AlbertVed说道:

    minocycline 100 mg online: minocycline online – ivermectin 3mg tablets price

  15. Davidhax说道:

    best online pharmacies in mexico https://mexicanpharmgate.com/ buying prescription drugs in mexico

  16. Brandenven说道:

    how can i get cheap clomid without insurance: clomid online – order cheap clomid now

  17. Derekjup说道:

    prednisone 10 mg tablet cost: buy prednisone – 5 mg prednisone tablets

  18. Brandenven说道:

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

  19. StevenWearo说道:

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

  20. StevenWearo说道:

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

  21. Brandenven说道:

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

  22. StevenWearo说道:

    priligy maxpharm: buy priligy – dapoxetine online

  23. Derekjup说道:

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

  24. StevenWearo说道:

    max pharm: dapoxetine online – buy priligy

  25. Brandenven说道:

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

  26. Brandenven说道:

    prednisone 10mg tabs: generic Prednisone – fast shipping prednisone

  27. StevenWearo说道:

    can you get clomid: generic clomid – generic clomid online

  28. StevenWearo说道:

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

  29. Derekjup说道:

    max pharm: priligy maxpharm – priligy max pharm

  30. Brandenven说道:

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

  31. StevenWearo说道:

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

  32. Brandenven说道:

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

  33. Bradleyarrip说道:

    buy prednisone tablets uk prednisone ray pharm 1250 mg prednisone

  34. Bradleyarrip说道:

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

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

  36. Brandenven说道:

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

  37. StevenWearo说道:

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

  38. Derekjup说道:

    buy prednisone nz: buy prednisone – prednisone 2.5 tablet

  39. Bradleyarrip说道:

    how to buy cheap clomid tablets clomid buying generic clomid tablets

  40. Bradleyarrip说道:

    priligy max pharm Priligy tablets dapoxetine price

  41. StevenWearo说道:

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

  42. DanielArill说道:

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

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

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

  45. Brandenven说道:

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

  46. DanielArill说道:

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

  47. StevenWearo说道:

    Priligy tablets: priligy maxpharm – dapoxetine price

  48. Brandenven说道:

    buy prednisone tablets uk: buy prednisone – prednisone prescription online

发表回复

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