Updated media conversions interface
authorThierry Florac <thierry.florac@onf.fr>
Tue, 08 Sep 2015 16:21:00 +0200
changeset 1 1ade73c9f2c0
parent 0 fd39db613f8b
child 2 5410acbcfb77
Updated media conversions interface
src/pyams_media/interfaces/__init__.py
--- a/src/pyams_media/interfaces/__init__.py	Wed Sep 02 15:31:55 2015 +0200
+++ b/src/pyams_media/interfaces/__init__.py	Tue Sep 08 16:21:00 2015 +0200
@@ -66,6 +66,12 @@
     """Media audio converter"""
 
 
+class IVideoType(Interface):
+    """Video content-type interface"""
+
+    video_type = Attribute("Video content type")
+
+
 #
 # Media conversions adapter interfaces
 #
@@ -76,15 +82,15 @@
     def add_conversion(self, conversion, format, extension=None, width=None):
         """Add given conversion to media"""
 
+    def get_conversions(self, with_source=False, order=None):
+        """Get current list of media conversions"""
+
+    def get_conversion_width(self, name):
+        """Get conversion width for given frame size"""
+
     def has_conversion(self, formats):
         """Check if one of given formats is available in conversions"""
 
-    def get_conversion(self, format):
-        """Get converted media for given format and width"""
-
-    def get_conversions(self):
-        """Get current list of media conversions"""
-
 
 class IMediaConversion(Interface):
     """Marker interface for already converted media files"""