Skip to main content

Video extension for Django filer.

Project description

djangocms-filer-video
==================

Video extension for Django filer.

.. image:: https://travis-ci.org/Air-Mark/djangocms-filer-video.svg?branch=master
:target: https://travis-ci.org/Air-Mark/djangocms-filer-video
.. image:: https://coveralls.io/repos/Air-Mark/djangocms-filer-video/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/Air-Mark/djangocms-filer-video?branch=master


Quick start
************

#. Install ``djangocms-filer-video``:

::

pip install djangocms-filer-video


or from sources

::

pip install git+https://github.com/Air-Mark/djangocms-filer-video.git


#. Add ``djangocms_filer_video`` to ``INSTALLED_APPS`` in your Django settings.

#. Add video field to filer settings into settings file. Note: the order is important.

::

FILER_FILE_MODELS = (
'filer.Image',
'djangocms_filer_video.VideoFile',
'filer.File',
)


#. Usage of template tags:

::

{% load filer_video_tags %}
{% video_thumbnail video '1280x0' 'mp4' as video_large_mp4 %}
{% video_thumbnail video '640x0' 'mp4' as video_small_mp4 %}
<div class="product__video-in">
<video style="width: 50%" loop="loop" data-width="{{ video_small_mp4.meta_width }}" data-height="{{ video_small_mp4.meta_height }}" muted="muted" poster="{{ poster }}">
<source src="{{ video_small_mp4.file.url }}" data-large="{{ video_large_mp4.file.url }}" type="video/{{ video_small_mp4.video_format }}">
</video>
</div>

#. Usage of model fields

::

from django.db import models
from djangocms_filer_video.fields.video import FilerVideoFileField


class ExampleModel(models.Model):
main_video = FilerVideoFileField(verbose_name=_('Main video'), blank=True, null=True,
on_delete=models.SET_NULL,
related_name='post_properties_video')


Release 0.1 (Januar 17, 2019)
--------------------------

- Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djangocms_filer_video-0.1.1-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file djangocms_filer_video-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: djangocms_filer_video-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.1 setuptools/36.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.1

File hashes

Hashes for djangocms_filer_video-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93ee134d169dbac3bd1acddd0431b24bf8311ed1a15a87d0ca9e9e8bf9718715
MD5 5fb4ca234bae889a763895ddd253d8a2
BLAKE2b-256 6d9f9116472e2dc718c5019557242ff521c294f49d7f1a9dd9f9e81a5b4026ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page