Page MenuHomePhabricator

NullPointerException when switching tabs with Safari
Closed, DeclinedPublic

Description

Author: Damien.Guillaume

Description:
Safari (the default web browser on MacOS X) calls Applet.stop() when users switch to a different tab, and Applet.start() when they switch back to the tab with the applet. The result is that Cortado.start() is called when pipeline is null. This crashes the applet with a NullPointerException.
A simple workaround is to call init() at the beginning of start() when pipeline is null.

[INFO] Application stopping...
...
[INFO] Application stopped
[INFO] Application starting
java.lang.NullPointerException
at com.fluendo.player.Cortado.start(Cortado.java:768)
at sun.applet.AppletPanel.run(AppletPanel.java:420)
at java.lang.Thread.run(Thread.java:613)


Version: unspecified
Severity: major
Platform: Macintosh
Whiteboard: wikimedia[unmaintained]

Details

Reference
bz18705

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:33 PM
bzimport set Reference to bz18705.
bzimport added a subscriber: Unknown Object (MLST).

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.

Wikimedia itself is currently not actively working on Cortado.
If you are still interested in seeing this / if this problem still happens, please check the existing upstream tickets at https://trac.xiph.org/query?component=Cortado&group=component&col=id&col=summary&col=status&col=owner&col=type&col=priority&col=milestone&order=priority and if no ticket exists yet for this request, please create one in upstream.

Also see comment 1 in this report for more explanation which way Wikimedia Multimedia currently takes. Closing as WONTFIX for Wikimedia itself.