Registers HTML5 video types with VideoIO class for file reading see https://en.wikipedia.org/wiki/HTML5_video#Browser_support
()
| 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 | } |
nothing calls this directly
no test coverage detected