Wysiwyg-editor: videoAllowedTypes not working

Created on 8 Nov 2017  路  2Comments  路  Source: froala/wysiwyg-editor

Expected behavior.

To not return an error when uploading video with an extension that is present in videoAllowedTypes.

Actual behavior.

Only default video types ['mp4', 'webm', 'ogg'] are allowed.

Steps to reproduce the problem.

Fiddle: https://jsfiddle.net/ef2ngqa3/

Example mov file: http://techslides.com/demos/samples/sample.mov

Try to upload the video, you will see an error in the console (and in the interface). Btw, froalaEditor.video.error is not present in the documentation Just the codeError event. You want me to make a separate issue?

OS.

OSX El Capitan

Browser.

Version 62.0.3202.89 (Official Build) (64-bit)

Most helpful comment

I found solution to upload video form iphone. Just add videoAllowedTypes: ['quicktime']. And you can upload .mov video form your iphone as html5 video.

All 2 comments

The error is coming from the fact that the editor is using the HTML5 video tag. At this moment, mov is not a supported video type by the browsers: https://www.w3schools.com/html/html5_video.asp.

I found solution to upload video form iphone. Just add videoAllowedTypes: ['quicktime']. And you can upload .mov video form your iphone as html5 video.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adilsonb picture adilsonb  路  3Comments

cristianst picture cristianst  路  4Comments

george-norris-salesforce picture george-norris-salesforce  路  4Comments

studiotemple picture studiotemple  路  3Comments

rogersteblerbsi picture rogersteblerbsi  路  3Comments