2017-02-27 36 views
0

有在我的网站某些网页的问题,当你测试这个页面:错误的声音文件:不是有效的AMP页面

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支持的声音文件?!

回答

0

需要包括放大器,音频JavaScript扩展

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

以下行应当工作以“https”,并通过在开始

<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> 
添加缺少开放功放音频标签替换“HTTP”