我正在尝试将 MP4 视频添加到我的媒体库中。它没有给出任何错误,但是当我尝试播放视频时,它会在视频播放器中显示以下消息:
Media error: Format(s) not supported or source(s) not found
视频大小为 2MB。
最佳答案
WordPress Core 中似乎有一个关于此的错误:
https://core.trac.wordpress.org/ticket/42874#comment:8
在 mediaelement GH repo 中也打开了一个问题:
https://github.com/mediaelement/mediaelement/issues/2390
实际问题来自Safari:IMPORTANT NOTE for Safari users (Jun 8, 2017)
Since Sierra version, autoplay policies have changed. You may experience an error if you try to execute play programatically or via autoplay attribute with MediaElement, unless muted attribute is specified.
我也遇到过这个问题,但只能在 Safari 中重现它,它适用于 Chrome 和 Firefox。
希望这可以帮助!
关于WordPress:媒体错误:不支持格式或未找到来源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49173535/