Comments (8)
Is it something specific for every forum?
from nodebb-plugin-ns-embed.
Yes. It works with every mp4 video uploaded to nodebb from markdown editor. It's easy to write one pattern to support more video formats.
from nodebb-plugin-ns-embed.
Replacement rule does not use responsive layout provided with the plugin. It could be made in a more reusable fashion and added to Community Rules. Thanks.
from nodebb-plugin-ns-embed.
I used the following rule and it works for me:
Regex:
<a href="/assets/uploads/files/(.*).mp4">[^<]*</a>
Replacement:
<div class='embed-wrapper'><div class='embed-container'>
<video src="/assets/uploads/files/$1.mp4" controls>
Your browser doesn't support HTML5 video.
Please <a href="/assets/uploads/files/$1.mp4">download</a> instead.
</video>
</div></div>
@NicolasSiver Please let me know if you want me to create a pull request to add it to community rules.
from nodebb-plugin-ns-embed.
I used the following rule and it works for me:
Regex:
<a href="/assets/uploads/files/(.*).mp4">[^<]*</a>
Replacement:
<div class='embed-wrapper'><div class='embed-container'> <video src="/assets/uploads/files/$1.mp4" controls> Your browser doesn't support HTML5 video. Please <a href="/assets/uploads/files/$1.mp4">download</a> instead. </video> </div></div>
@NicolasSiver Please let me know if you want me to create a pull request to add it to community rules.
what does $1 means, I don't get it
from nodebb-plugin-ns-embed.
I used the following rule and it works for me:
Regex:
<a href="/assets/uploads/files/(.*).mp4">[^<]*</a>
Replacement:
<div class='embed-wrapper'><div class='embed-container'> <video src="/assets/uploads/files/$1.mp4" controls> Your browser doesn't support HTML5 video. Please <a href="/assets/uploads/files/$1.mp4">download</a> instead. </video> </div></div>
@NicolasSiver Please let me know if you want me to create a pull request to add it to community rules.
what does $1 means, I don't get it
from nodebb-plugin-ns-embed.
I used the following rule and it works for me:
Regex:
<a href="/assets/uploads/files/(.*).mp4">[^<]*</a>
Replacement:
<div class='embed-wrapper'><div class='embed-container'> <video src="/assets/uploads/files/$1.mp4" controls> Your browser doesn't support HTML5 video. Please <a href="/assets/uploads/files/$1.mp4">download</a> instead. </video> </div></div>
@NicolasSiver Please let me know if you want me to create a pull request to add it to community rules.
what does $1 means, I don't get it
from nodebb-plugin-ns-embed.
I used the following rule and it works for me:
Regex:
<a href="/assets/uploads/files/(.*).mp4">[^<]*</a>
Replacement:
<div class='embed-wrapper'><div class='embed-container'> <video src="/assets/uploads/files/$1.mp4" controls> Your browser doesn't support HTML5 video. Please <a href="/assets/uploads/files/$1.mp4">download</a> instead. </video> </div></div>
@NicolasSiver Please let me know if you want me to create a pull request to add it to community rules.
what does $1 means, I don't get it
from nodebb-plugin-ns-embed.
Related Issues (20)
- Add hook parser.raw
- Incompatibility with NodeBB 1.10.2 HOT 5
- plugin disappeared in Admin Plugin list HOT 1
- Not load js in embeded code HOT 3
- How to get current user id to change something in Replace code HOT 1
- Compatibility with 1.12.x? HOT 16
- what does $1, $2, etc means ? HOT 6
- twitter/facebook embed does not work HOT 2
- How to use this plugin to embedded youtube and .mp4 files? HOT 3
- Compatibility issue with NodeBB 1.14.x HOT 6
- Cannot Access Plugin Settings HOT 6
- The following plugins may not be compatible with your version of NodeBB HOT 1
- Can't use controlslist in video tag HOT 2
- Please, make it nodebb 2.0 compatible HOT 2
- ACP blank Page
- Can not install plugin V3.0.19 properly with nodeBB V2.6.1
- links to youtube channels are being embedded
- embed is blank in last post preview
- Youtube embeds are tiny HOT 1
- YouTube channel links are inserted as broken videos
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodebb-plugin-ns-embed.