Last modified: 2012-12-17 12:59:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18519, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16519 - cortado should provide API close to html5 <video> element
cortado should provide API close to html5 <video> element
Status: RESOLVED FIXED
Product: Cortado
Classification: Unclassified
User interface (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-01 15:47 UTC by Jan Gerber
Modified: 2012-12-17 12:59 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
here the patch (1.86 KB, patch)
2008-12-01 15:48 UTC, Jan Gerber
Details

Description Jan Gerber 2008-12-01 15:47:58 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
Comment 1 Jan Gerber 2008-12-01 15:48:43 UTC
Created attachment 5547 [details]
here the patch
Comment 2 Maik Merten 2008-12-06 12:48:26 UTC
taking. Actually was already working on this and am close to committing a solution for this.
Comment 3 Maik Merten 2008-12-06 16:06:11 UTC
Landed a subset of the HTML5 media API with revision 44270. Can you confirm things are working for you?
Comment 4 Jan Gerber 2008-12-06 17:13:41 UTC
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.
Comment 5 Maik Merten 2008-12-07 10:09:26 UTC
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 ?
Comment 6 p858snake 2011-04-30 00:09:31 UTC
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
Comment 7 Andre Klapper 2012-12-17 12:14:13 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links