I have a PHP file where I want to get the URL of an mp4 file I have placed in my themes' pix directory (theme/name/pix/home/video.mp4), then I'll pass that URL into the context array for use in my mustache template. So much like you'd use $OUTPUT->pix_url('imagename', 'theme_name') and it returns the URL of an image.
I've also tried the following, but I don't know if it has the correct parameters, it creates the URL:
moodle_url::make_pluginfile_url($context->id, 'theme_name', 'pix', null, '/home/', 'video.mp4')
Neither method works for the mp4 file, it just returns a 'image not found' error message and then inserts the filename.mp4.error file within site data, albeit within the correct directory, so it is looking in the right place for it, I'm guessing it just has an issue handling anything other than images.
I've been struggling for a few hours and I'm sure it must be something simple haha.