i want to play(mp4 file and mp4 url) in my web site how can i do it???
-
i want to play(mp4 file and mp4 url) in my web site how can i do it???
-
I believe this plugin will work for you:
nodebb-plugin-ns-embed
You will have to create a rule for the MP4 files. From an issue on it's github page there is a solution:
Internally uploaded video embeddind as HTML5 player · Issue #7 · NicolasSiver/nodebb-plugin-ns-embed
Would be nice to have default rules to embed videos uploaded to the posts. Here is example working with MP4: Regex: [^<]* Replacement:
GitHub (github.com)
-
@rod thanks a lot..
if upload mp4 files.. works~~~but mp4 url link not work~
ex).http://www.ithinknext.com/mydata/board/files/F201308021823010.mp4
-
@rod said in i want to play(mp4 file and mp4 url) in my web site how can i do it???:
<a href="(.).mp4">[^<]</a>
solved it~!!!!!
^,.^
write as like this (mp4 play and / mp4 url play on my own web)
in nodebb-plugin-ns-embed
it works..
----if embed mp4 url----
Watch
."(http://[^"].?.mp4)".*Replace
<video id="$1" src="$1" controls style="width:800px"></video>
<div><small><a href="$1" target="_blank">Download video</a></small></div>------------------------- if mp4 file upload..---------- follow this
Watch
<a href="/uploads/files/(.).mp4">[^<]</a>Replace
<video id="$1" src="/uploads/files/$1.mp4" controls style="width:800px"></video>
<div><small><a href="/uploads/files/$1.mp4" target="_blank">Download video</a></small></div> -