Linux 软件免费装

Inline Video Shortcodes

开发者 Brighterlouder
更新时间 2017年11月12日 16:13
PHP版本: 4.4.0 及以上
WordPress版本: 4.8.3
版权: GPLv2 or later
版权网址: 版权信息

标签

media shortcode iphone inline autoplay embed video muted playsinline

下载

详情介绍:

This plugin extends the Wordpress video tag to include the muted and playsinline attributes, which are both required for an autoplay video to correctly function on iPhone.

安装:

  1. Upload the plugin files to the /wp-content/plugins/inline-video-shortcodes directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress

屏幕截图:

  • Editor page showing the correct attributes added to the video shortcode.

常见问题:

How do I make use of the extended attributes?

Add a self-hosted video to your Wordpress post or page using the Wordpress editor, either manually or using the "Add Media" button. Switch to Text mode and edit the shortcode to include the playsinline="1" attribute. For autoplay videos, add muted="1" (iPhone will only auto play videos if they are muted). The plugin will then add the correct attributes to your post or page.