gpt4 book ai didi

wordpress - [音频] WordPress短代码中的网址错误

转载 作者:行者123 更新时间:2023-12-03 02:04:46 26 4
gpt4 key购买 nike

我对 WordPress Audio Shortcode有问题。我这样使用它:

<?php 
echo do_shortcode('[audio mp3="http://whowillbethenextonline.com/audio/html5-audio-1.mp3" ogg="http://whowillbethenextonline.com/audio/html5-audio-1.ogg"]');
?>

但是在前面,在HTML代码中我得到了:
<!--[if lt IE 9]><script>document.createElement('audio');</script><![endif]-->
<audio class="wp-audio-shortcode" id="audio-362-1" preload="none" style="width: 100%; visibility: hidden;" controls="controls">
<source type="audio/mpeg" src="http://whowillbethenextonline.com/audio/html5-audio-1.mp3?_=1" />
<source type="audio/ogg" src="http://whowillbethenextonline.com/audio/html5-audio-1.ogg?_=1" />
<a href="http://whowillbethenextonline.com/audio/html5-audio-1.mp3">
http://whowillbethenextonline.com/audio/html5-audio-1.mp3
</a>
</audio>

如您所见,在 <source/>标记中,音频文件的URL不正确(在 <a/>标记中,URL正常)。 URL末尾有一些奇怪的“ ?_ = 1 ”,当然,播放器不起作用。浏览器无法识别多媒体文件。

你能帮助我吗?你知道我该怎么解决吗?

问候

最佳答案

问题不在于URL,它与多余的参数一起正常工作。我认为问题在于元素的可见性处于隐藏状态:

style="width: 100%; visibility: hidden;"

另一个问题可能是它说的是音频/ mpeg,而不是音频/ mp3。

关于wordpress - [音频] WordPress短代码中的网址错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28500756/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com