Linux 软件免费装
Banner图

Media Playback Speed

开发者 LewisCowles
daronspence
更新时间 2022年7月5日 16:55
PHP版本: 7.2 及以上
WordPress版本: 6.0
版权: GPL-3.0
版权网址: 版权信息

标签

speed audio video media shortcode streaming html5 frontend playlist aria cd2 codesign2 lewiscowles mediaelementjs playback

下载

1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.6 1.0.7 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0

详情介绍:

This short, handy plugin will add playback buttons to your audio, video & playlist elements added via the built-in WordPress shortcodes for media using mediaelement.js. Each set of buttons is configured for it's corresponding element on the page, so you can adjust the speed of multiple files independently. There is currently no persistence implemented in this plugin. It just scratches an itch to be able to broadly adjust media playback speeds using the HTML api. NOTE: This uses the HTML5 media Element API. Any browser not supporting these or using the Flash Player fallback will miss out on this functionality. Developers Two hooks are provided within this plugin. Theme & Front-end The .playback-rate-button.mejs-active and/or .playback-rate-button.active-playback-rate CSS-selectors allow you to style the active speed (per-player). Initially mejs-active class was added in order to create media-playback-js compatible / familiar class names. Now that Gutenberg does not add these, it makes sense to for-now add two sets of classes. The .playback-rate-button.mejs-active selector will be deprecated in version 2. Troubleshooting This works with the traditional audio, video and playlist shortcodes so long as WordPress uses the JavaScript player. With the latest 1.1.1 release this also works for HTML5 audio and video too, however you will need to implement your own controls which have the playback-rate-button class and follow the patterns of this. HTML5 raw controls do not have a playlist the author is aware of, and they use global state, so playback rate is per-page. There is currently no history as part of this plugin, however a sister plugin could be authored and hooks added to it to store playback rate. Please ensure that you have no broken javascript, or wrap all functions in (function() { // do things })() blocks to ensure nothing interferes with this plugin. This plugin does this so that it should not interfere with your site, even in browsers and pages which do not support this plugin. Feedback Please feel free to suggest improvements, report conflicts, and/or make suggestions for integration hooks etc.

安装:

Download and extract the zip file or clone this repo to your WordPress plugins directory. Alternatively use the plugin directory to find and install this plugin.

更新日志:

1.2.2 1.2.1 1.2.0 Trying out different selector, which seems to resolve double-click for audio issues 1.1.9 More graphics iteration... This time to honestly reflect that 2x is the maximum currently provided 1.1.8 Spell Daron name correctly in the graphics :facepalm: 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0