跳到内容

Device-Specific Media Element

v1.0.1

Rownok Bosunia · 2025年5月30日 上架

A WordPress plugin that adds a custom Elementor widget to load different media types based on the visitor's device.

正在使用
10 以下
评分
暂无
累计下载
649
最近更新
2025年6月3日
需要 WordPress 5.0+已测试到 6.8.13PHP 7.4+

贡献者

截图

The Device-Specific Media widget in the Elementor editor, showing media upload fields.
The Device-Specific Media widget in the Elementor editor, showing media upload fields.
Example of different media types displayed on iOS, Mac, and Windows devices.
Example of different media types displayed on iOS, Mac, and Windows devices.
Device-Specific Media Element
Device-Specific Media Element

Device-Specific Media Element is an Elementor extension that allows you to serve different media formats to different devices:

  • For iOS devices (iPhone/iPad) Load and play .gif files
  • For Mac devices Load and play .mp4 files
  • For other devices (Windows, Android, Linux, etc.) Load and play .webm files

This approach optimizes performance by serving the most appropriate media format for each device type, improving load times and user experience.

Features

  • Custom Elementor widget for device-specific media
  • Automatic device detection using JavaScript
  • Support for .gif, .mp4, and .webm formats
  • Options for autoplay, loop, mute, and controls
  • Fallback media for unsupported browsers
  • Fully responsive design
  • Multiple widget instances on the same page
  • Clean, modular code following WordPress standards

Usage

After installing and activating the plugin:

  1. Edit a page with Elementor.
  2. Find the “Device-Specific Media” widget in the Elementor editor.
  3. Add the widget to your page.
  4. Upload or specify URLs for each media type:
    • GIF for iOS devices
    • MP4 for Mac devices
    • WebM for other devices
  5. Configure playback settings (autoplay, loop, muted, controls).
  6. Add a fallback image/message for unsupported browsers.
  7. Save and publish your page.

The plugin will automatically detect the visitor’s device and load the appropriate media type.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums