Giter VIP home page Giter VIP logo

flarum-ext-embed-video's Introduction

Embed Video

license packagist changelog

Allow users to embed video using BBCode.

Preview

Look at the screenshots subfolder.

Install

composer require nearata/flarum-ext-embed-video:"*"

Update

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.

php flarum nearataEmbedVideo:purge
composer remove nearata/flarum-ext-embed-video
php flarum cache:clear

How to use

[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.

flarum-ext-embed-video's People

Contributors

nearata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

flarum-ext-embed-video's Issues

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted

I'm running a very vanilla Flarum and I enabled your plugin and get a 500 server error when trying to access the front-end. Checking the Nginx log files returns this:

2020/12/16 01:29:50 [error] 9266#9266: *6562 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in /var/www/help/vendor/axy/sourcemap/parsing/SegmentParser.php on line 52" while reading response header from upstream, client: 162.158.187.184, server: help, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "help"

It doesn't appear to be your plugin as you don't have axy/sourcemap linked to your project but it's most certainly conflicting with it.

Environment

e5u61FiRcJT7wYiqcgxOg4Wd4QxboiVmEhe9mqNi

  • nginx/1.14.2
  • PHP-FPM 7.4.13
  • Flarum 0.1.0-beta.14.1
  • MariaDB 10.3.27

Composer

{
    "name": "flarum/flarum",
    "description": "Delightfully simple forum software.",
    "type": "project",
    "homepage": "https://flarum.org/",
    "license": "MIT",
    "require": {
        "askvortsov/flarum-categories": "^1.1",
        "bokt/flarum-redis": "^0.1.0",
        "datitisev/flarum-ext-dashboard": "v0.1.0-beta.9.2",
        "flarum/approval": "^0.1.0",
        "flarum/bbcode": "^0.1.0",
        "flarum/core": "^0.1.0",
        "flarum/emoji": "^0.1.0",
        "flarum/flags": "^0.1.0",
        "flarum/lang-english": "^0.1.0",
        "flarum/likes": "^0.1.0",
        "flarum/lock": "^0.1.0",
        "flarum/markdown": "^0.1.0",
        "flarum/mentions": "^0.1.0",
        "flarum/pusher": "^0.1.0",
        "flarum/statistics": "^0.1.0",
        "flarum/sticky": "^0.1.0",
        "flarum/subscriptions": "^0.1.0",
        "flarum/suspend": "^0.1.0",
        "flarum/tags": "^0.1.0",
        "fof/pretty-mail": "^0.2.1",
        "fof/recaptcha": "^0.2.1",
        "fof/sitemap": "^0.5.4",
        "fof/split": "*",
        "fof/upload": "^0.11.3",
        "nearata/flarum-ext-embed-video": "^1.1",
        "v17development/flarum-seo": "^1.4"
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true
    },
    "minimum-stability": "beta",
    "prefer-stable": true
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.