aodihis/video-utils 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aodihis/video-utils

最新稳定版本:3.0.2

Composer 安装命令:

composer require aodihis/video-utils

包简介

Twig filter to get the video id of youtube or Vimeo URL.

README 文档

README

Twig filter to get the video id of youtube or Vimeo URL.

Requirements

This plugin requires Craft CMS 3.0.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require aodihis/video-utils
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Get Video Id.

Using Vide Utils

To check url is vimeo or youtube.

{{ "url"|isYoutube}}
{{ "url"|isVimeo}}

To get the video id from the url.

{{ "your youtube video url"|getYoutubeId }}
{{ "your Vimeo video url"|getVimeoId }}

Also you can do this:

{{ "url"|getVideoId }}

To generate the embed video url from your video id :

{{ "your youtube video url"|generateYoutubeEmbedUrl }}
{{ "your Vimeo video url"|generateVimeoEmbedUrl }}

Also you can do this :

{{ "url"|generateVideoEmbedUrl }}

if you wanted to get the embedded video with the no cookie :

{{ "url"|generateVideoEmbedUrl('no-cookie') }}
{{ "your youtube video url"|generateYoutubeEmbedUrl('no-cookie') }}
{{ "your Vimeo video url"|generateVimeoEmbedUrl('no-cookie') }}

To generate youtube live chat url:

{{ "url"|generateYoutubeLiveChatUrl }}

统计信息

  • 总下载量: 5.33k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 3
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固