声音文件出错:不是有效的AMP页面

时间:2017-02-27 17:12:24

标签: wordpress amp-html

我网站的某些页面存在问题,当您测试此页面时:

https://search.google.com/search-console/amp?utm_source=wmx&utm_medium=link&utm_campaign=wmx-agg&id=QJ9owsgYpzMn_4iKKSbvuw

我们显示的不是有效的AMP页面 无效的AMP网页在Google搜索结果中不具备特定于AMP的功能。

在此代码中:

<source type="audio/mpeg" src="http://traffic.libsyn.com/saudigamer/saudigamer_e212_010913.mp3?_=1"/></amp-audio></div><p class="powerpress_links powerpress_links_mp3">Podcast: <a href="http://traffic.libsyn.com/saudigamer/saudigamer_e212_010913.mp3" class="powerpress_link_pinw" target="_blank" title="Play in new window" rel="nofollow">Play in new window</a> | <a href="http://traffic.libsyn.com/saudigamer/saudigamer_e212_010913.mp3" class="powerpress_link_d" title="Download" rel="nofollow" download="saudigamer_e212_010913.mp3">Download</a></p>

AMP支持声音文件吗?!

1 个答案:

答案 0 :(得分:0)

需要包含amp-audio javascript扩展

<script async custom-element="amp-audio" src="https://cdn.ampproject.org/v0/amp-audio-0.1.js"></script>

下面的行应该可以用“https”替换“http”,并在开头添加缺少的开放式amp-audio标签

<amp-audio><source type="audio/mpeg" src="https://traffic.libsyn.com/saudigamer/saudigamer_e212_010913.mp3?_=1"/></amp-audio></div><p class="powerpress_links powerpress_links_mp3">Podcast: <a href="https://traffic.libsyn.com/saudigamer/saudigamer_e212_010913.mp3" class="powerpress_link_pinw" target="_blank" title="Play in new window" rel="nofollow">Play in new window</a> | <a href="https://traffic.libsyn.com/saudigamer/saudigamer_e212_010913.mp3" class="powerpress_link_d" title="Download" rel="nofollow" download="saudigamer_e212_010913.mp3">Download</a></p>