Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.aac 后缀文件无法在线播放 #85

Open
magichear opened this issue Sep 24, 2024 · 1 comment
Open

.aac 后缀文件无法在线播放 #85

magichear opened this issue Sep 24, 2024 · 1 comment

Comments

@magichear
Copy link

我在基于此仓库进行测试与二次开发时发现您在
@component
public class ContentTypeMap

中设置了对.acc音频文件的识别,但是实际编译运行时并没有显示出对应的“播放”按钮。

这一点可以通过修改
“.\src\main\java\kohgylw\kiftd\server\util\AudioInfoUtil.java”
中的

if (suffix.equalsIgnoreCase("mp3") || suffix.equalsIgnoreCase("ogg") || suffix.equalsIgnoreCase("wav") || suffix.equalsIgnoreCase("aac") )
// 加上最后一个分支


“.\webContext\js\home.js”
中的

case "mp3":
case "wav":
case "ogg":
case "aac": // 加入这行



.\webContext\js\home.min.js

中的

case "mp3":
case "wav":
case "ogg":
case "aac": // 加入这行

三处修改实现

目前这么改之后在我的环境里可以正常使用,其它类型文件应该也是类似的

@KOHGYLW
Copy link
Owner

KOHGYLW commented Oct 9, 2024

反馈已收到。之前确实考虑了增加对aac格式的音频文件进行播放的支持,但是由于在实际测试中发现该格式的浏览器兼容性较低,因此最后并未实现。后续将会继续研究兼容此格式的可行性。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants