在 just_audiio 中加载资产

Loading assets in just_audiio

尝试加载 just_audio 中资产名称为空 space 的资产时出现错误: 发生错误无法加载资产:audio/book/John%20William.mp3, 资产名称中不允许使用白色 space 还是这是一个错误?

它看起来像一个错误。

当您点击按钮提交 GitHub 上的错误时,第一个问题是合格问题 - 如果您能回答它,那么它就有资格作为错误:

Which API doesn't behave as documented, and how does it misbehave?

填写您的错误报告时,您可以按如下方式回答这个合格问题:

This documentation suggests that I can load an asset from any valid asset path, but it gives an error if the asset path contains a space. The documentation does not say say anything about spaces not being allowed. It seems the space is converted to %20 which may be causing the issue.

这看起来像是一个简单的错误,因此如果您能够按照 GitHub 说明提交错误报告,它可能会很快得到修复。

(更新:此错误已在 GitHub 上报告并在版本 0.6.15 中修复)