Last modified: 2012-12-17 12:59:00 UTC
would be nice if cortado could provide as much as possible of the html5 <video> api. attached patch provides some of the functions and properties: functions: play() pause() properties: currentTime paused readonly duration readonly src currently readonly
Created attachment 5547 [details] here the patch
taking. Actually was already working on this and am close to committing a solution for this.
Landed a subset of the HTML5 media API with revision 44270. Can you confirm things are working for you?
currentTime = now = pipeline.getPosition() / Clock.SECOND; that way currentTime is an int, my patch makes it a float, more cosmetic right now since its only updated once a second, would be nice thought to update currentTime on every frame paint, did not find the right place for that though. also my patch allows setting currentTime, resulting in a doSeek, would be nice to have that too. do you know of a way to make src writable? i got some sandbox error trying to write a string to src.
Thanks for the catches. I now copied essential parts of your patch to trunk (rev. 44279). I would think writing to public attributes of Java applets should always work. Perhaps this is an issue of "MAYSCRIPT" and "scriptable" http://forums.sun.com/thread.jspa?threadID=5265787 ?
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
TimedMediaHandler was deployed at the beginning of November 2012, see https://www.mediawiki.org/wiki/TimedMediaHandler and http://blog.wikimedia.org/2012/11/08/introducing-wikipedias-new-html5-video-player/ for more information. It is based on HTML5 and supports closed captions, timed text, WebM, etc. This bug report was reported about "Cortado". With TimedMediaHandler being in place, Cortado is now ONLY used as a fallback for web browsers that do not support any of the video codecs we offer but have Java installed. This currently is Apple Safari without XiphQt installed, or Microsoft Internet Explorer with Java applet installed. Please add a comment here in case that you still face the problem described (now with Cortado inside of TimedMediaHandler) if using one of the browsers mentioned above. In that case, this report should be moved to product="MediaWiki extensions" and component="TimedMediaHandler" in this bug tracker. Issues that also happen with Cortado without TimedMediaHandler should be reported to https://trac.xiph.org/ instead.