# Used by the media_entry.get_display_media method
"media_fetch_order": [u'webm_640', u'original'],
+ "default_webm_type": 'video/webm; codecs="vp8, vorbis"',
}
Column, Integer, SmallInteger, ForeignKey)
from sqlalchemy.orm import relationship, backref
from mediagoblin.db.extratypes import JSONEncoded
+from mediagoblin.media_types import video
BACKREF_NAME = "video__media_data"
-DEFAULT_WEBM_TYPE = 'video/webm; codecs="vp8, vorbis"'
-
class VideoData(Base):
"""
Attributes:
orig_metadata["tags"]["video-codec"].lower(),
orig_metadata["tags"]["audio-codec"].lower())
else:
- return DEFAULT_WEBM_TYPE
+ return video.MEDIA_MANAGER["default_webm_type"]
DATA_MODEL = VideoData
{% if media.media_data %}
type="{{ media.media_data.source_type() }}"
{% else %}
- type="video/webm; codecs="vp8, vorbis""
+ type="{{ media.media_manager['default_webm_type'] }}"
{% endif %} />
<div class="no_html5">
{%- trans -%}Sorry, this video will not work because