Video format not supported — localhost
Submitted by Bruce McKenzie on Tue, 04/16/2019 - 17:04
I recently ditched MAMP for Mac-localhost, where I had H5P working well, for new localhost setup (installed with HomeBrew). Now everything works well except H5P video uploads, which invariably produce the error "Video format not supported" after upload appears to be successful.
Console shows 404 error for http://wp.localhost/wp-content/uploads/h5p/editor/videos/files-5cb5e2950...
Some other setting I've missed?
Wed, 04/17/2019 - 04:33
Hi Bruce,Would you mind
Would you mind attaching a screenshot of the browser console error?
Wed, 04/17/2019 - 16:02
Browser console error + missing directory
I noticed when I set out to reproduce the error that there is an update to the interactive video package available. When I tried to install the update, I got this error:
Failed to download the requested H5P.
Destination directory for file streaming does not exist or is not writable.
Seems like it might be a relative of the 404 error I got when I tried to add interactions to the video I uploaded.
Would a new install of H5P be a good next move?
Thu, 04/18/2019 - 05:21
Hi Bruce,You are right it
You are right it looks like they are related to each other. There are 2 usually suspects with these types of error one is permission settings and the other .htaccess file may be configured incorrectly or is corrupted. Please check these 2 as uninstalling H5P may not really solve the problem.
Thu, 04/18/2019 - 18:18
Still not working
This is a local (Mac) install.
permissions on uploads/h5p are drwxrwxrwx
htaccess contains only one code block, the standard WordPress stuff.
I still see the link to an updated version of inteactive video content type. But nothing happens now when I click on it.
Mon, 04/22/2019 - 17:46
In case someone runs into the same issue.
This turned out to be an Apache permissions problem — which I only discovered by reinstalling H5P :-(
The directory wp-content/uploads/h5p was not writable because, after moving the localhost website to a new location, read-write permissions on that directory were applied to myself and staff, not _www. However, in a the fresh h5p install, permissions were correctly granted to the _www group. Working now.
Wed, 04/24/2019 - 03:34
Hi Bruce,I'm glad this is
I'm glad this is working for you now and thank you for getting back to us with your solution.