Lean Video and Audio Player

外掛說明

Lean Video and Audio Player is a lightweight WordPress plugin that allows you to embed beautiful, responsive video and audio players anywhere on your website using simple shortcodes. Built on top of the powerful Plyr library, it provides a consistent, modern player interface across all platforms and devices.

Key Features:

  • Multiple Video Sources: Support for YouTube, Vimeo, and HTML5 videos
  • Audio Support: Play MP3 and other audio formats with a clean interface
  • Shortcode Based: Easy to use anywhere – posts, pages, widgets, or custom fields
  • Responsive Design: Works perfectly on desktop, tablet, and mobile devices
  • Modern Interface: Clean, accessible player controls with keyboard support
  • Lightweight: Minimal impact on page load speed
  • Cross-Browser: Works on all modern browsers
  • Accessibility: Full keyboard navigation and screen reader support

Video Player Features:
* YouTube video embedding
* Vimeo video embedding
* HTML5 video support (MP4, WebM, etc.)
* Autoplay and muted options
* Fullscreen support
* Volume controls
* Seek functionality

Audio Player Features:
* MP3 and other audio format support
* Clean, minimal interface
* Volume and seek controls
* Autoplay and muted options

Perfect For:
* Content creators and bloggers
* Educational websites
* Business websites
* Portfolio sites
* Music and podcast sites
* Any site needing simple media players

Usage

Video Player Shortcode:
[lean_video_player type=”youtube” id=”VIDEO_ID”]

Audio Player Shortcode:
[lean_audio_player src=”AUDIO_URL”]

Shortcode Attributes:

Video Player:
* type – Video type: “youtube”, “vimeo”, or “html5” (default: “youtube”)
* id – Video ID for YouTube/Vimeo, or full URL for HTML5 (required)
* autoplay – Enable autoplay: “true” or “false” (default: “false”)
* muted – Start muted: “true” or “false” (default: “false”)

Audio Player:
* src – Audio file URL (required)
* autoplay – Enable autoplay: “true” or “false” (default: “false”)
* muted – Start muted: “true” or “false” (default: “false”)

Examples

YouTube Video:
[lean_video_player type=”youtube” id=”dQw4w9WgXcQ”]

Vimeo Video:
[lean_video_player type=”vimeo” id=”76979871″]

HTML5 Video with Autoplay:
[lean_video_player type=”html5″ id=”https://www.sample-videos.com/video321/mp4/720/big_buck_bunny_720p_20mb.mp4″ autoplay=”true” muted=”true”]

Audio Player:
[lean_audio_player src=”https://www.sample-videos.com/audio/mp3/wave.mp3″]

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/lean-video-and-audio-player directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Use the shortcodes in your content to embed players.
  4. Visit the “Lean Player” admin page for documentation and examples.

常見問題集

Does this plugin work with page builders?

Yes! The shortcodes work with any page builder that supports WordPress shortcodes, including Elementor, Gutenberg, Divi, and others.

Why isn’t autoplay working?

Modern browsers have strict autoplay policies. For best results with autoplay, use the muted="true" attribute along with autoplay="true".

What video formats are supported?

For HTML5 videos: MP4, WebM, OGV, and other formats supported by HTML5. For audio: MP3, OGG, WAV, and other HTML5 audio formats.

Can I use multiple players on the same page?

Absolutely! You can use as many shortcodes as needed on a single page.

Is the plugin mobile-friendly?

Yes, all players are fully responsive and work perfectly on mobile devices.

Does this plugin affect page loading speed?

The plugin is designed to be lightweight and only loads assets when shortcodes are actually used on a page.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Lean Video and Audio Player〉的開發相關工作。

參與者

將〈Lean Video and Audio Player〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.1

  • Updated: Plyr library to latest version
  • Fixed: Minor bug fixes and improvements

1.0.0

  • Initial release
  • Support for YouTube, Vimeo, and HTML5 videos
  • Support for HTML5 audio files
  • Shortcode-based implementation
  • Responsive design
  • Modern player interface
  • Admin documentation page