【发布时间】:2019-11-23 04:30:39
【问题描述】:
这是 macOS / Safari。
我可以通过在 Safari 中打开来播放这个文件:https://learnwithecho.com/assets/test.m4a
但如果我将该文件保存在本地:
wget https://learnwithecho.com/assets/test.m4a
然后启动一个网络服务器:
php -S 0.0.0.0:8888
并在本地加载相同的文件:
open http://localhost:8888/test.m4a
然后我得到这个错误:
加载资源失败:插件处理加载
如何在本地提供此文件以便它在 Safari 中正常播放?
这是文件的mediainfo:
General
Complete name : assets/test.m4a
Format : MPEG-4
Format profile : Apple audio with iTunes info
Codec ID : M4A (isom/iso2)
File size : 26.3 KiB
Duration : 2 s 24 ms
Overall bit rate mode : Constant
Overall bit rate : 106 kb/s
Writing application : Lavf55.33.100
Audio
ID : 1
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 2 s 24 ms
Duration_LastFrame : -20 ms
Bit rate mode : Constant
Bit rate : 102 kb/s
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 25.2 KiB (96%)
Default : Yes
Alternate group : 1
【问题讨论】:
-
你有没有运气with this answer?
-
这似乎只是 iOS 的问题。我正在使用 macOS/Safari。而且,声音只有 10kb。