[WordPress] 外掛分享: glomex oEmbed

首頁外掛目錄 › glomex oEmbed
WordPress 外掛 glomex oEmbed 的封面圖片
100+
安裝啟用
尚無評分
剛更新
最後更新
0%
問題解決
WordPress 5.3.14+ PHP 7.4+ v0.9.7 上架:2023-03-12

內容簡介

glomex oEmbed 外掛讓您的 WordPress 網站能夠輕鬆嵌入 glomex 影片或播放清單,只需將 URL 貼上編輯器,系統會自動替換為 glomex 播放器,無需複製嵌入代碼或維護 HTML。

【主要功能】
• 支援 glomex 影片與播放清單的嵌入
• 自動替換為 glomex 播放器
• 提供短碼 [glomex_integration] 嵌入播放器
• 可自訂播放器的寬度與高度
• 設定全域整合 ID 以便於管理

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.9.7) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「glomex oEmbed」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

glomex oEmbed connects your WordPress site to glomex Exchange. Paste a video or playlist URL into any editor and WordPress replaces it with the glomex player – no embed code to copy, no HTML to maintain.
The plugin registers glomex as a native WordPress oEmbed provider, so embedding works in the block editor, the classic editor and any editor that supports oEmbed. All you need is a glomex Exchange integration ID.
Once the integration ID is configured, embedding takes three steps:

Forge a URL from template: https://exchange.glomex.com/[video|videos|playlist|playlists]/VIDEO_OR_PLAYLIST_ID (integrationId parameter is optional)
Go to your post and paste the url into any editor (editor must support oEmbed)
You get an embedded player inside content!

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)
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

Plugin settings are used by default in all cases. Query strings will override the setting.
Configuration options
The plugin adds a settings page with two options: the global integration ID and custom script attributes.
You can set up the default integration ID using the GLOMEX_INTEGRATION_ID environment variable.
Custom script attributes
On the settings page you can add custom HTML data-* attributes to the glomex player script tags. This is useful for telling performance/optimization plugins to leave the player script alone – for example, add data-cfasync = false to exclude the script from Cloudflare Rocket Loader, or data-no-optimize = 1 to exclude it from WP Rocket. Only data-* attribute names are accepted; other names are ignored. The attributes are added to the player script tag of each embed.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon