Use FFMpeg instead of Avconv
[meviz.git] / src / main / java / eu / svjatoslav / meviz / htmlindexer / Layout.java
index f9e0982..5083b39 100755 (executable)
@@ -1,20 +1,19 @@
 /*
  * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
  *
  * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 2 of the GNU General Public License
- * as published by the Free Software Foundation.
- */
+ * modify it under the terms of version 3 of the GNU Lesser General Public License
+ * or later as published by the Free Software Foundation.
+*/
 
 package eu.svjatoslav.meviz.htmlindexer;
 
 import eu.svjatoslav.meviz.htmlindexer.metadata.DirectoryMetadata;
 import eu.svjatoslav.meviz.htmlindexer.metadata.fileTypes.AbstractFile;
 import eu.svjatoslav.meviz.htmlindexer.metadata.fileTypes.Picture;
+import eu.svjatoslav.meviz.htmlindexer.metadata.fileTypes.Video;
 
-import java.io.IOException;
-import java.io.UnsupportedEncodingException;
 import java.util.List;
 
 /**
@@ -45,13 +44,9 @@ public interface Layout {
                      DirectoryMetadata parentDirectoryMetadata);
 
     /**
-     * Enlist video in OGV format.
-     *
-     * @throws UnsupportedEncodingException
+     * Enlist video file.
      */
-    void enlistOgv(AbstractFile file,
-                   DirectoryMetadata parentDirectoryMetadata)
-            throws UnsupportedEncodingException;
+    void enlistVideo(Video file);
 
     /**
      * Return layout specific suffix that will be appended between
@@ -63,12 +58,10 @@ public interface Layout {
     /**
      * After necessary files have been enlisted for particular directory, use
      * this method to retrieve generated HTML result.
-     *
-     * @throws IOException
      */
     String getHtml(final boolean showTitle,
                    final boolean doHtmlHeaderAndFooter, DirectoryMetadata metadata)
-            throws IOException;
+    ;
 
     /**
      * Initialize layout for particular directory.
@@ -76,5 +69,4 @@ public interface Layout {
     void init(String galleryTitle, List<String> path,
               final AbstractIndexer indexer, IndexingContext context);
 
-    void enlistWebm(AbstractFile file, DirectoryMetadata directory);
 }