wikifab/simple-embed-video
Composer 安装命令:
composer require wikifab/simple-embed-video
包简介
Mediawiki extension to integrate Video url from Youtube, vimeo, dailymotion, or others to come...
README 文档
README
Description :
This extension allow you to display a video with just its link and service (as Youtube, Vimeo and Dailymotion). The user has to choose with some buttons a service and then the link's field appears.
Installation
Firstly this extension requires PageForm and EmbedVideo, two Mediawiki's extensions.
Download and extract the extension in the "extension" repository of your project. Your extension repository name has to be : SimpleEmbedVideo.
Once it's done,find the file LocalSettings.php and write at the end :
wfLoadExtension( 'SimpleEmbedVideo' );
Use
Create the Semantic Properties
First, you need to create the following Semantic Properties:
- TutoVideoService (Text)
- TutoVideoURL (Text)
Create the Semantic Template
Then, you need to create a Semantic template (called "TutoVideo") with the following code:
<h3 class="VideoTitle">Vidéo d'introduction</h3>
<div class="allSizeScreenButton">
<span class="resizeButton smallButton"> </span>
<span class="resizeButton mediumButton"></span>
<span class="resizeButton largeButton"></span>
</div>
<div class="videoMainContainer">
<div class="videoContainer">
{{#ev:{{{TutoVideoService|}}} | {{{TutoVideoURL|}}} }}
</div>
</div>
This code will display the video and create 3 buttons which rezise screen video.
For more information, refer to the MediaWiki PageForm extension.
Create the Semantic Form
On your MediaWiki page, where you want display a video from its link, enter this code :
<div class="multipleTemplateHideButton">
{{{for template|TutoVideo|multiple|minimum=0|maximum instances=1|add button text=+ Ajouter une vidéo}}}
{{#formLinkVideo:{{{field|TutoVideoService|dropdown|class=embedVideoDropdown}}} | {{{field|TutoVideoURL|class=embedVideoUrlInput}}}}}
{{{end template}}}
</div>
wikifab/simple-embed-video 适用场景与选型建议
wikifab/simple-embed-video 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 2.97k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 08 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 wikifab/simple-embed-video 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wikifab/simple-embed-video 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.97k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-08-10