Is there a way to view ogg audio files from a remote repo, eg. commons? I use MW 1.26.2, Extension:TimedMediaHandler 0.5.0 and $wgUseInstantCommons=true;
. I can see Ogg video from commons but not ogg audio from commons repo. Extension:MultimediaViewer is disabled. Any hints to resolve this?
Topic on Extension talk:TimedMediaHandler
Hmm, it should work as-is...
It works now, but the setup got a little complicated because I uses several foreign repos including commons. Another issue was that extension:TimedMediaHandler does not work presently with ForeignDBRepo (see Topic «Fatal error: Call to undefined method ForeignDBRepo::fetchImageQuery») so a setup with $wgLBFactoryConf
and $wgForeignFileRepos[]
was needed:
- set up a correct
$wgLBFactoryConf
- set
$wgUseInstantCommons=false;
set it instead with$wgForeignFileRepos[]
at the position you want it to be, e.g. as the last or as the first foreign repo. You may check the resulting order via api checkmeta=filerepoinfo
, e.g. http://your-server.org/w/api.php?action=query&format=json&meta=filerepoinfo&uselang=content - set up a correct
$wgForeignFileRepos[]
with 'wiki' => 'db-in-wgLBFactoryConf' corresponding to$wgLBFactoryConf
- if you use additionally extension:MultimediaViewer make also sure that your other foreign repo media issue a header appropriate for cross-origin resource sharing or it will complain not be able load the media
I guess, finally the mistake was the wrong repo order and its configuration