Page MenuHomeMiraheze

Allowing external html5 video (mp4) on my wiki
Closed, ResolvedPublic

Description

I want to embed an external html5 video. In this extension review T1640 it says that the way to do it is by using the widget Html5media.
The frame is there, pointing to the correct video but it says "No video with supported format and mime type found".
Would allowing .mp4 in the LocalSettings make it work? Or is it something else?
Thank you!

Here's my Widget:Html5media (but i doubt that the problem is in there).

<noinclude>
{{#widget:Html5media
|url=https://pornel.net/Performance.ogg
|width=640
|height=360
}}
</noinclude>
<includeonly><script src="//api.html5media.info/1.2.2/html5media.min.js"></script><video src="<!--{$url|validate:url}-->" width="<!--{$width|default:425|validate:int|escape:'html'}-->" height="<!--{$height|default:355|validate:int|escape:'html'}-->"
controls preload></video></includeonly>

Event Timeline

Poire renamed this task from Allowing external html5 video (mp4) to my wiki to Allowing external html5 video (mp4) on my wiki.May 20 2019, 17:40
AmandaCath subscribed.

@Poire you need to enable .mp4 files in Special:ManageWikiSettings, under the "restricted" tab (check the box next to mp4) and after that, it should work.

@AmandaCath everything under “restricted” can’t by done by a local user.

@AmandaCath I did that and uploaded an mp4 and it works with local videos! But external ones still give the same message :/

2019-05-20_201942_866230988.png (352×1 px, 114 KB)

We limit external links through our "content security policy". You need to request that it'll be whitelisted by us.

@Paladox Oh okay i see thanks. Is the whitelist for the whole farm or specific to a wiki? I would like to embed videos from cdn.discordapp.com but in another wiki in the future so i'm asking :)

In T4387#83527, @Poire wrote:

@Paladox Oh okay i see thanks. Is the whitelist for the whole farm or specific to a wiki? I would like to embed videos from cdn.discordapp.com but in another wiki in the future so i'm asking :)

For all wikis according to memory

Poire claimed this task.

Since my request to allow my wiki to embed external media doesn't make much sense i'm closing it.
I requested to add cdn.discord.com here T4389.
Thank you all for your help!

In T4387#83522, @John wrote:

@AmandaCath everything under “restricted” can’t by done by a local user.

Despite being listed under restricted, I was able to change the file extensions without a problem earlier.. and frankly they have no reason to be restricted.