MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / registerWithVideoIO

Method registerWithVideoIO

unused/JSMovieIO.java:42–61  ·  view source on GitHub ↗

Registers HTML5 video types with VideoIO class for file reading see https://en.wikipedia.org/wiki/HTML5_video#Browser_support

()

Source from the content-addressed store, hash-verified

40 * see https://en.wikipedia.org/wiki/HTML5_video#Browser_support
41 */
42 static public void registerWithVideoIO() { // add Xuggle video types, if available
43 try {
44 VideoIO.addVideoEngine(new MovieVideoType());
45
46 // add common video types
47 for (String ext : VideoIO.JS_VIDEO_EXTENSIONS) { // {"mov", "ogg", "mp4"}
48 VideoFileFilter filter = new VideoFileFilter(ext, new String[] { ext });
49 MovieVideoType movieType = new MovieVideoType(filter);
50 // avi not recordable with xuggle
51// if (ext.equals("avi")) { //$NON-NLS-1$
52 movieType.setRecordable(false);
53// }
54 VideoIO.addVideoType(movieType);
55 ResourceLoader.addExtractExtension(ext);
56 }
57
58 } catch (Throwable ex) {
59 OSPLog.config("JSMovieIO exception: " + ex.toString()); //$NON-NLS-1$
60 }
61 }
62
63}

Callers

nothing calls this directly

Calls 5

setRecordableMethod · 0.95
addVideoTypeMethod · 0.95
addExtractExtensionMethod · 0.95
configMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected