Last modified: 2011-05-17 08:32:17 UTC
FF3.6/Safari 4 <video> Mac OSX Snow Leopard. I tried watch TT language tracks on my local host and I get http://localhost/wiki/api.php?action=parse&page=Wikimediacommons%3ATimedText%3AFolgers.ogv.de.srt&format=json
hmm it "should work" .. the prototype box for example loads remote subtitles for the "shared" repository video files: http://prototype.wikimedia.org/timedmedia/Main_Page And its working for me locally. Are you running TimedMediaHandler locally? or using the mwEmbed script in some way?
i was using instantcommons + timedmediahandler + MwEmbedSupport There are rather big differences between ForeignDb and ForeignAPI. Might be that that is where the issue lies.
(In reply to comment #2) > i was using instantcommons + timedmediahandler + MwEmbedSupport > > There are rather big differences between ForeignDb and ForeignAPI. Might be > that that is where the issue lies. It should load the files from the remote host ( not local host ). On my box it outputs the following track tags: <track kind="subtitles" data-mwtitle="TimedText:Folgers.ogv.de.srt" data-mwprovider="commons" type="text/x-srt" src="http://commons.wikimedia.org/wiki/TimedText:Folgers.ogv.de.srt?action=raw&ctype=text%2Fx-srt" srclang="de" label="Deutsch (de) subtitles"> </track> And then the player issues an api request to load the subtitles cross domain, so it grabs: http://commons.wikimedia.org/w/api.php?callback=jsonp1305500357102&action=parse&page=TimedText%3AFolgers.ogv.de.srt&format=json What is your video tag output look like?
<video id="mwe_player_0" style="width:352px;height:264px" poster="/wiki/images/thumb/9/94/Folgers.ogv/mid-Folgers.ogv.jpg" alt="Folgers.ogv" controls="true" class="kskin" data-durationhint="60" data-startoffset="0" data-mwtitle="Folgers.ogv" data-mwprovider="wikimediacommons"><source src="http://upload.wikimedia.org/wikipedia/commons/9/94/Folgers.ogv" title="Original ogg, 352 × 264 (637kbps)" data-shorttitle="Ogg source" data-width="352" data-height="264" data-bandwidth="636645" data-framerate="29.97002997003" /><track kind="subtitles" data-mwtitle="Wikimediacommons:TimedText:Folgers.ogv.de.srt" data-mwprovider="wikimediacommons" type="text/x-srt" src="http://localhost/wiki/index.php/Wikimediacommons:TimedText:Folgers.ogv.de.srt?action=raw&ctype=text%2Fx-srt" srclang="de" label="Deutsch (de) subtitles" /><track kind="subtitles" data-mwtitle="Wikimediacommons:TimedText:Folgers.ogv.en.srt" data-mwprovider="wikimediacommons" type="text/x-srt" src="http://localhost/wiki/index.php/Wikimediacommons:TimedText:Folgers.ogv.en.srt?action=raw&ctype=text%2Fx-srt" srclang="en" label="English (en) subtitles" /><track kind="subtitles" data-mwtitle="Wikimediacommons:TimedText:Folgers.ogv.fr.srt" data-mwprovider="wikimediacommons" type="text/x-srt" src="http://localhost/wiki/index.php/Wikimediacommons:TimedText:Folgers.ogv.fr.srt?action=raw&ctype=text%2Fx-srt" srclang="fr" label="Français (fr) subtitles" /><track kind="subtitles" data-mwtitle="Wikimediacommons:TimedText:Folgers.ogv.sv.srt" data-mwprovider="wikimediacommons" type="text/x-srt" src="http://localhost/wiki/index.php/Wikimediacommons:TimedText:Folgers.ogv.sv.srt?action=raw&ctype=text%2Fx-srt" srclang="sv" label="Svenska (sv) subtitles" />Sorry, your browser either has JavaScript disabled or does not have any supported player.<br /> You can <a href="h">download the clip</a> or <a href="http://www.mediawiki.org/wiki/Extension:OggHandler/Client_download">download a player</a> to play the clip in your browser.</video>
Got it. The reponame of InstantCommons is wikimediacommons, and not 'shared' as the code assumes. 'shared' is the name of the ForeignDb repository.
Fixed in r88265
Looks like its working. Its now also tested with $wgUseInstantCommons = true;
This might also be something to wrap in a central spot btw, because now it's distributed over 2 code points, so anytime something changes, you have to go on a wild goose chase.