定制 robinscholz/kirby-mux 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

robinscholz/kirby-mux

Composer 安装命令:

composer require robinscholz/kirby-mux

包简介

Upload videos directly to mux

README 文档

README

A Kirby plugin to upload video files to Mux.

Installation

Download

Download and copy this repository to /site/plugins/kirby-mux.

Git submodule

git submodule add https://github.com/robinscholz/kirby-mux.git site/plugins/kirby-mux

Composer

composer require robinscholz/kirby-mux

Configuration

Add a .env file to the root of your Kirby plugin with the following properties:

Key Type
MUX_TOKEN_ID String
MUX_TOKEN_SECRET String
MUX_DEV Boolean

MUX_TOKEN_ID

In order for the plugin to work, you need to create an API Access Token on the MUX dashboard. Save the Token ID here.

MUX_TOKEN_SECRET

Save the associated Token Secret here.

MUX_DEV

Set this to true for local development. Instead of the actual video, the plugin will upload a test video to Mux. This is neccessary, since videos need to be publicly hosted for Mux to be able to import them.

NOTE: This plugin includes a .env.example file as well.

Caveats

The plugin does not include any frontend facing code or snippets. In order to stream the videos from Mux you need to implement your own custom video player. HLS.js is a good option for example.

Plugin Development

Kirbyup is used for the development and build setup.

Kirbyup will be fetched remotely with your first npm run command, which may take a short amount of time.

Development

Start the dev process with:

npm run dev

This will automatically update the index.js and index.css of the plugin as soon as changes are made. Reload the Panel to see the code changes reflected.

Production

Build final files with:

npm run build

This will automatically create a minified and optimized version of the index.js and index.css.

License

MIT

统计信息

  • 总下载量: 60
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 15
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 15
  • Watchers: 2
  • Forks: 3
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固