如何从WP mediaelement.js中删除下载按钮

时间:2017-01-18 15:55:27

标签: wordpress mediaelement.js

Need Help Removing Download Button_Image

我在WP页面上附上了媒体播放器的图像。它只是出现在我的播放器上,之前(上个月)它没有出现。我还没有为mediaelement.js做任何插件升级,所以我不知道它来自哪里。我想删除下载按钮,但我不确定WordPress中的位置以及如何隐藏它。

<td class="files">  <audio id="wp_mep_2" controls="controls" preload="none">

        <source src="http://xxxxxxx.org/?page_id=1743&amp;show&amp;file_name=JesusistheDifferenceMaker.mp3" type="audio/mp3">
        <object width="250" height="30" type="application/x-shockwave-flash" data="http://xxxxxxx.org/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement/flashmediaelement.swf">
            <param name="movie" value="http://xxxxxxx.org/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement/flashmediaelement.swf">
            <param name="flashvars" value="controls=true&amp;file=http://xxxxxxx.org/?page_id=1743&amp;show&amp;file_name=JesusistheDifferenceMaker.mp3">           
        </object>       
    </audio>
<script type="text/javascript">
jQuery(document).ready(function($) {
    $('#wp_mep_2').mediaelementplayer({
        m:1

        ,features: ['playpause','current','progress','duration','volume','tracks','fullscreen']
        ,audioWidth:250,audioHeight:30
    });
});
</script>
</td>

1 个答案:

答案 0 :(得分:0)

看起来mediaelement.js没有初始化,浏览器使用默认的html5播放器。 (在chrome中)您可以从默认的mediaelement.js skin // Sort multiple sections function onOpen(e) { var menu = [{name: "Sections", functionName: "SortSections"}] SpreadsheetApp.getActiveSpreadsheet().addMenu("Sort", menu); } function Sort() { var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(), rangeToSort = sheet.getRange("Section1"); rangeToSort.sort([{column: 3, ascending: false}, {column: 2, ascending: true}]); var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(), rangeToSort = sheet.getRange("Section2"); rangeToSort.sort([{column: 2, ascending: true}]); var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(), rangeToSort = sheet.getRange("Section3"); rangeToSort.sort([{column: 3, ascending: false}, {column: 2, ascending: true}]); }

中识别

请参阅w3schools example使用默认播放器的位置

见视频示例:

Without mediaelement.js

With mediaelement.js

我建议您检查或记录init函数或运行一些debug enablePluginDebug:true,如mediaelement选项。