{% extends "wagtailadmin/base.html" %} {% load static wagtailadmin_tags i18n wagtailvideos_tags %} {% block titletag %}{% blocktrans with title=video.title %}Editing video {{ title }}{% endblocktrans %}{% endblock %} {% block extra_css %} {{ block.super }} {% endblock %} {% block extra_js %} {{ block.super }} {% url 'wagtailadmin_tag_autocomplete' as autocomplete_url %} {% endblock %} {% block content %} {% trans "Editing" as editing_str %} {% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=video.title icon="media" %}
{% csrf_token %}
    {% for field in form %} {% if field.name == 'file' %} {% include "wagtailvideos/videos/_file_field_as_li.html" with li_classes="label-above label-uppercase" %} {% elif field.is_hidden %} {{ field }} {% else %} {% include "wagtailadmin/shared/field_as_li.html" with li_classes="label-above label-uppercase" %} {% endif %} {% endfor %}

Tracks

Add/edit subtitles or accessibility captions for you video. For information about the filetype that should be used see the mozilla docs on WebVTT

  • {% if user_can_delete %} {% trans "Delete video" %} {% endif %}
  • {% video video controls style=max-width:100%;width:100%;height:auto; %}
    {% if video.thumbnail %}
    {% trans "Thumbnail" %}
    {% endif %}
    {% trans "Filesize" %}
    {% if filesize %}{{ filesize|filesizeformat }}{% else %}{% trans "File not found" %}{% endif %}
    {% if video.duration %}
    {% trans "Duration" %}
    {{ video.formatted_duration }}
    {% endif %} {% if usage_count_enabled %}
    {% trans "Usage" %}
    {% blocktrans count usage_count=video.get_usage.count %}Used {{ usage_count }} time{% plural %}Used {{ usage_count }} times{% endblocktrans %}
    {% endif %}
    {% if can_transcode %}

    Transcodes

    If you wish to generate HTML5 compliant transcodes use the form below. This may take a while depending on the length of the video.

    {% if transcodes %}

    Available Transcodes

      {% for transcode in transcodes %}
    • {{ transcode.media_format }} ({{ transcode.quality }} quality) {% if transcode.processing %} (Processing... hold tight) {% endif %} {% if transcode.error_message %} ERROR:
       {{ transcode.error_message }}
      {% endif %}
    • {% endfor %}
    {% endif %}

    Create transcode

      {% csrf_token %} {% include "wagtailadmin/shared/field_as_li.html" with field=transcode_form.media_format li_classes="label-above label-uppercase" %} {% include "wagtailadmin/shared/field_as_li.html" with field=transcode_form.quality li_classes="label-above label-uppercase" %}
    {% else %}

    Ffmpeg is not found on your server. Please install if you wish to transcode videos into an HTML5 video compliant format. {% endif %}
    {% endblock %}