• Private MP4 files load fine in Chrome and Firefox. However, on iOS Safari (3 different computers in different locations), it shows:
    “media error: Format(s) not supported or source(s) not found”

    When I remove the rewrite rule from the htaccess file, it works fine on Safari:
    RewriteRule ^wp-content/uploads/(private)/(.*)$ /?pucd-folder=$1&pucd-file=$2 [L]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sitehatchery

    (@sitehatchery)

    Not sure if it will cause other issues, but I added this to line 126 on /plugins/private-uploads/private-uploads.php:

    if($mime[‘ext’] == ‘mp4’) {
    $mimetype = ‘video/webm’;
    }

    This seems to work, at least on my iPad.

    Looks like on Safari, the mimetype was not being captured and so it gave it a mimetype of application/octet-stream. video/webm for mp4 seems to work in all major browsers.

    Plugin Author Chris Dennis

    (@chrisdennis)

    That seems like a reasonable fix, but I don’t use WordPress any more, so I’m not able to do any maintenance on this plugin.

    Feel free to take ownership of the plugin if you want to.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘MP4 files’ is closed to new replies.