Title: glomex oEmbed
Author: Glomex
Published: <strong>2023 年 3 月 13 日</strong>
Last modified: 2025 年 1 月 15 日

---

搜索插件

![](https://ps.w.org/glomex-oembed/assets/banner-772x250.png?rev=3040273)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/glomex-oembed/assets/icon-256x256.png?rev=3047324)

# glomex oEmbed

 作者：[Glomex](https://profiles.wordpress.org/glomex/)

[下载](https://downloads.wordpress.org/plugin/glomex-oembed.0.9.4.zip)

 * [详情](https://cn.wordpress.org/plugins/glomex-oembed/#description)
 * [评价](https://cn.wordpress.org/plugins/glomex-oembed/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/glomex-oembed/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/glomex-oembed/#developers)

 [支持](https://wordpress.org/support/plugin/glomex-oembed/)

## 描述

This is a WordPress plugin that acts as a bridge between our oEmbed endpoint and
internal WP oEmbed service. It allows simple oEmbed operation – just paste a link
into (basically) any WordPress editor and it will automagically convert this link
into glomex player/playlist/integration.

### Installation and operation

Operation simple as follows:

 1. Install plugin into WordPress
 2. Activate plugin
 3. Follow instructions and configure the plugin
 4. Forge a URL from template: `https://exchange.glomex.com/[video|videos|playlist|
    playlists]/VIDEO_OR_PLAYLIST_ID` (integrationId parameter is optional)
 5. Go to your post and paste the url into any editor (editor must support oEmbed)
 6. You get an embedded player inside content!

This plugin is intended for internal and external usage. There is no dependency 
on our infrastructure.

### Shortcodes

    ```
    [glomex_integration]
    ```

You can use the shortcode `[glomex_integration]` to embed a player in your post.

Additional shortcode parameters (not required): * `playlist_id` – ID of the playlist
to embed * `integration_id` – override default integration ID * `variant` – player
variant (default: ‘player-listicle’) * `width` – player width in pixels (default:
responsive width) * `height` – player height in pixels (default: 16:9 aspect ratio)

Note: All shortcode attributes are properly sanitized for security.
 If both width
and height are not specified, the player will use responsive sizing with 16:9 aspect
ratio.

### URL

The supported url scheme is `https://exchange.glomex.com/[video|videos|playlist|
playlists]/VIDEO_OR_PLAYLIST_ID`

The placeholder variables are:
 * `VIDEO_OR_PLAYLIST_ID` (mandatory) – the element
id to embed * `[video|videos|playlist|playlists]` (mandatory) – select one item 
to embed – it should exist in your account and be accessible with the given integration
ID

Allowed parameters:

 * `integrationId` (optional) – allows overriding integration ID for this single
   embed
 * `includeStructuredData` (optional) – allows overriding structured data inclusion
   for this single embed

Plugin settings are used by default in all cases. Query strings will override the
setting.

### Configuration options

You can set up the default integration ID using the `GLOMEX_INTEGRATION_ID` environment
variable.

## 安装

#### Uploading in WordPress Dashboard

 1. Navigate to the ‘Add New’ in the plugins dashboard
 2. Navigate to the ‘Upload’ area
 3. Select the plugin archive from your computer
 4. Click ‘Install Now’
 5. Activate the plugin in the Plugin dashboard

#### Using FTP

 1. Download plugin archive
 2. Extract the archive to your computer
 3. Upload the plugin directory to the plugins directory (it is usually `/wp-content/
    plugins/` but sometimes it may vary)
 4. Activate the plugin in the Plugin dashboard

## 常见问题

### Which features do I need on my server?

You need at least WP 5.3.14, PHP 7.4 and `curl` extension enabled.

### What do I need to operate the plugin?

You need to configure the plugin. There are only 2 options at the moment – integration
ID and structured data configuration.
 You need an account at [glomex Exchange](https://exchange.glomex.com).

### Where do I get my integration ID?

 1. You need to navigate to your account at [glomex Exchange](https://exchange.glomex.com).
 2. Go to `Manage => Players`
 3. Select one and copy `Configuration ID`
 4. Paste the ID into the field on site or use to forge a link

### Can I use more than one integration ID on the site?

Yes you can. You can have one “basic” integration ID in your plugin configuration
and any amount of integration IDs
 for embedded player.

### What is a Structured data?

Structured data allows you to have more search-engine friendly site. In case of 
our plugin this means that results from
 your site may appear as “Video” in Google
search results. We provide a JSON-LD structured data for you. Read more on [JSON-LD](https://json-ld.org/).

## 评价

此插件暂无评价。

## 贡献者及开发者

「glomex oEmbed」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Glomex ](https://profiles.wordpress.org/glomex/)

[帮助将「glomex oEmbed」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/glomex-oembed)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/glomex-oembed/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/glomex-oembed/)，或通过[RSS](https://plugins.trac.wordpress.org/log/glomex-oembed/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/glomex-oembed/)。

## 更新日志

#### 0.9.4

 * improved security by adding proper escaping for shortcode attributes

#### 0.9.3

 * improved code quality to align with WordPress Coding Standards.
 * improved security by adding proper sanitize for shortcode attributes

#### 0.9.2

 * improved security by adding proper escaping for shortcode attributes
 * updated/tested with WP 6.7.1

#### 0.9.1

 * created `glomex_integration` shortcode to embed a player in your post

#### 0.9.0

 * created functionality for the prefixing video ID in the URL
 * updated/tested with WP 6.4.3

#### 0.8.5

 * updated vendor requirements

#### 0.8.4

 * removed internal update checker
 * renamed functions/namespaces/constants names with new prefix

#### 0.8.3

 * updated vendor requirements

#### 0.8.2

 * fixed the problem with embedding URL decoding in popular page builders

#### 0.8.1

 * fixed the problem with embedding URL decoding in older WP versions

#### 0.8

 * fix files headers
 * fix grumphp config
 * refactor main oEmbed code to be better quality
 * implement custom codestyle based on CodeatCS

#### 0.7

 * Use 2 different vendor directories and composer files

#### 0.6

 * Load only single `glomex-player.js` on frontend

#### 0.5.5

 * Bugfix in oEmbed URL generation function

#### 0.5.4

 * Update documentation

#### 0.5.3

 * Implemented update checker with support for Github repo

#### 0.5.0

 * Initial release with basic functions

## 额外信息

 *  版本 **0.9.4**
 *  最后更新：**1 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 5.3 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/glomex-oembed/)
 * 标签
 * [oembed](https://cn.wordpress.org/plugins/tags/oembed/)[video](https://cn.wordpress.org/plugins/tags/video/)
 *  [高级视图](https://cn.wordpress.org/plugins/glomex-oembed/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/glomex-oembed/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/glomex-oembed/reviews/)

## 贡献者

 *   [ Glomex ](https://profiles.wordpress.org/glomex/)

## 支持

最近两个月解决的问题：

     总计 1，已解决 0

 [查看支持论坛](https://wordpress.org/support/plugin/glomex-oembed/)