mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-02-10 18:05:06 +08:00
2.1 KiB
2.1 KiB
Video Embedder Plugin
This plugin allows users to embed videos from various platforms directly into their documents using validated URLs. It supports popular video platforms like Bilibili, Youku, QQ, Ixigua, and Iqiyi.
Features
- Automatic ID Extraction: Extracts video IDs based on platform-specific rules.
- Live Preview: Provides an iframe-based preview of the video before embedding it in the document.
Supported Platforms
Bilibili
- Supported Links:
https://www.bilibili.com/video/{videoId}
Example:https://www.bilibili.com/video/BV1zv411q7y8
QQ (Tencent Video Player)
- Supported Links:
- Cover videos:
https://v.qq.com/x/cover/{coverId}/{videoId}.html
Example:https://v.qq.com/x/cover/mzc00200txzcq9a/c0042j0sf2b.html - Cover videos Type 2 (Works, but not recommended to use.):
https://v.qq.com/x/cover/{videoId}.htmlExample:https://v.qq.com/x/cover/c0042j0sf2b - Page videos:
https://v.qq.com/x/page/{videoId}.html
Example:https://v.qq.com/x/page/c0042j0sf2b.html
- Cover videos:
Ixigua
- Supported Links:
https://www.ixigua.com/{videoId}
Example:https://www.ixigua.com/6823310010429010440
Youku
- Supported Links:
https://v.youku.com/v_show/id_{videoId}.html
Example:https://v.youku.com/v_show/id_XNDAwMjExMzM2OA==.html
IQIYI
- Supported Links:
https://www.iq.com/play/{videoTitle}-{videoId}?{optionalParams}
Example:https://www.iq.com/play/fangs-of-fortune-episode-1-rz7c6zo49o?lang=en_us
How It Works
-
Paste a Video URL:
Enter a valid URL into the input field. -
Validate the URL:
The plugin will check if the URL is from one of the supported platforms. -
Generate the Embed:
If valid, the plugin extracts the video ID and displays a live preview using an iframe. -
Add to Document:
The video embed is inserted into your document for viewing.