https://github.com/Nearata/flarum-ext-embed-video
A Flarum extension that allow users to embed video using BBCode
https://github.com/Nearata/flarum-ext-embed-video
bbcode dash dplayer flarum flarum-extension flv hls player shaka-player video webtorrent
Last synced: about 2 months ago
JSON representation
A Flarum extension that allow users to embed video using BBCode
- Host: GitHub
- URL: https://github.com/Nearata/flarum-ext-embed-video
- Owner: Nearata
- License: unlicense
- Created: 2020-07-22T21:00:53.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-30T15:05:56.000Z (9 months ago)
- Last Synced: 2025-03-17T09:34:26.443Z (2 months ago)
- Topics: bbcode, dash, dplayer, flarum, flarum-extension, flv, hls, player, shaka-player, video, webtorrent
- Language: TypeScript
- Homepage: https://discuss.flarum.org/d/24527
- Size: 4.84 MB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-flarum - Embed Video - Allow users to embed video using DPlayer and BBCode. (Extensions / Discussion ([:top:](#table-of-contents)))
README
# Embed Video
[](https://github.com/Nearata/flarum-ext-embed-video/blob/main/UNLICENSE)
[](https://packagist.org/packages/nearata/flarum-ext-embed-video)
[](https://github.com/Nearata/flarum-ext-embed-video/blob/main/CHANGELOG.md)> Allow users to embed video using BBCode.
## Preview
Look at the [screenshots](screenshots) subfolder.
## Install
```sh
composer require nearata/flarum-ext-embed-video:"*"
```## Update
```sh
composer require nearata/flarum-ext-embed-video:"*"
php flarum cache:clear
```## Remove
Remember to call the `Purge` button in Admin area.
If you are about to unistall this extension for good,
run this command before.This command will remove __ALL__ the video player found in user posts.
```sh
php flarum nearataEmbedVideo:purge
``````sh
composer remove nearata/flarum-ext-embed-video
php flarum cache:clear
```## How to use
```js
[embed-video id="insertRandomId" url="" type="normal" live="false" qualities=""]
```- id: can be any string, prefer random.
- url: must start with http or https.
- type: normal, flv, hls, shaka, webtorrent.
- live: true or false.
- qualities: check below.## Quality Switching
See [QUALITY_SWITCHING.md](QUALITY_SWITCHING.md).