This is a migrated thread and some comments may be shown as answers.

RadEditor-Media Manager Video

1 Answer 173 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Anil
Top achievements
Rank 1
Anil asked on 01 Mar 2018, 09:22 AM

As few browsers stop supporting Windows Media Player plugin, I m trying to convert Object/Embed Tags to Video Tags using "OnClientPasteHtml" method as mentioned here

https://www.telerik.com/support/kb/aspnet-ajax/editor/details/inserting-a-video-tag-via-the-media-manager-instead-of-the-default-object-embed-ones

but currently File extensions allowed by media manager are
*.wma, *.wmv, *.avi, *.wav, *.mpeg, *.mpg, *.mpe, *.mp3, *.m3u, *.mid, *.midi, *.snd, *.mkv

There is no *.mp4

How can i change this validation to accept other file types supported by HTML5 Video tag

 

Please suggest

 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Mar 2018, 01:33 PM
Hello,

There is a SearchPatterns property, which allows you to enlist the allowed extensions divided by a comma SearchPatterns="*.mp3,*.mp4". This is also shown in the mentioned KB article: 

<telerik:RadEditor OnClientPasteHtml="OnClientPasteHtml" runat="server" ID="RadEditor1">
    <MediaManager ViewPaths="~/Editor/images" UploadPaths="~/Editor/images" SearchPatterns="*.mp4" />
</telerik:RadEditor>

Best regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
Anil
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or