简体   繁体   English

MP3不是在Chrome中播放,而是在野生动物园中播放

[英]Mp3 not playing in chrome but in safari

I have an mp3 File hosted on amazon s3. 我在Amazon S3上托管了一个mp3文件。 It plays when i open the URL in safari, but doesn't in chrome. 当我在野生动物园中打开URL时,它会播放,但在Chrome中则不会。

Here's an example: https://s3.eu-central-1.amazonaws.com/media.radio32.seerow.ch/songs/2017-08-03/04%3A10%3A24/2228490.mp3 这是一个示例: https : //s3.eu-central-1.amazonaws.com/media.radio32.seerow.ch/songs/2017-08-03/04%3A10%3A24/2228490.mp3

Looking at : 看着 :
https://s3.eu-central-1.amazonaws.com/media.radio32.seerow.ch/songs/2017-08-03/04%3A10%3A24/2228490.mp3 https://s3.eu-central-1.amazonaws.com/media.radio32.seerow.ch/songs/2017-08-03/04%3A10%3A24/2228490.mp3

You have %3A (for colon : ) used twice in your URL. 你有%3A (结肠癌: )在您的网址使用了两次。

Solution : Do not use colons in a filename. 解决方案 :请勿在文件名中使用冒号 They are considered as special characters in some systems. 在某些系统中,它们被视为特殊字符 See this link for more info/context. 有关更多信息/上下文,请参见此链接

Try renaming the file but replace colon with underscore _ (or use dash - )... 尝试重命名文件,但用下划线_代替冒号(或使用破折号- )...

Example: A file URL like below would work. 示例:如下所示的文件URL将起作用。
https://s3.eu-central-1.amazonaws.com/media.radio32.seerow.ch/songs/2017-08-03/04_10_24/2228490.mp3 https://s3.eu-central-1.amazonaws.com/media.radio32.seerow.ch/songs/2017-08-03/04_10_24/2228490.mp3

Found the solution. 找到了解决方案。 The File I got was encoded with an old MPEG standard (Layer 2 instead of Layer3). 我得到的文件是用旧的MPEG标准(第2层而不是第3层)编码的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM