--- 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"""