You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#104450 JCE Media Browser and MP4s un-supported

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Cavespider on Thursday, 24 April 2025 16:53 BST

hayesjames
Hi there,

Just got back into Joomla and am still loving your editor. I've purchased the Pro to get the ability to add video to an article easily. However, I (well the client!) want to create video as the thumbnail for the articles so I've created a custom field and set it to the JCE Media Browser, but it cannot find MP4 and says they are unsupported? I can however add to articles no problem.

I have solved the problem by creating a text field and adding the URL of the video from media manager to that field, but you know clients are stupid and using the media browser to locate the file would be easier for their simple minds!!

Cheers
James

Ryan
By default the Media JCE field, or the Joomla Media field, when using the JCE File Browser, only supports image insert.

It can be configured to allow all file types - this can be set when creating the JCE File Browser media field - but this will only insert the file as a link, it will not embed the file if it is a video for example.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

buro26
Hi Ryan,

Im having the same issue as James. I have manually added a custom field to our plugin.
The fieldtype is 'mediajce'. Our goal is to upload and select an .mp4 file. Im able to upload and see .mp4 files via the JCE File Browser.

Adding the .mp4 file via the custom field gives me an warning 'filetype not allowed'.

It can be configured to allow all file types - this can be set when creating the JCE File Browser media field


I have searched for the settings mentioned above, but i am not able to find it.
Are you able to send a screenshot.

Best regards,

Jamie

Attachments

Ryan
Add a mediatype attribute to your field tag with a value of mp4, eg: mediatype="mp4"

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

buro26
Works thanks!

Cavespider

I have a custom field in a Module. type="media" which generates the file browser. I have gone through every setting I can find to add MP4 and still the file browser can't see the video files.

I have noted that many commercially available modules get around this by giving only a text field for the video path.

I should add that file browsers in articles seem to work ok.

 

Ryan

I have a custom field in a Module. type="media" which generates the file browser. I have gone through every setting I can find to add MP4 and still the file browser can't see the video files.

When you set up the field, what have you selected for the Types option?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Cavespider

This is the code that is set up in the xml file

<field
                    name="local_video_file"
                    type="media"
                    label="MOD_VIDEOPLAYER_LOCAL_FILE_LABEL"
                    description="MOD_VIDEOPLAYER_LOCAL_FILE_DESC"
                    directory="videos"
                    showon="video_source_type:local" />

Ryan

Try setting a "types" attribute with a value of "videos", eg:

<field
name="local_video_file"
type="media"
label="MOD_VIDEOPLAYER_LOCAL_FILE_LABEL"
description="MOD_VIDEOPLAYER_LOCAL_FILE_DESC"
directory="videos"
showon="video_source_type:local" 
types="videos" />

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Cavespider

Blimey, that worked. Thankyou