Statistics
| Branch: | Tag: | Revision:

root / okeanos_site / templates / okeanos / video_partial.html @ 4beadc2f

History | View | Annotate | Download (1.3 kB)

1
<video id="okeanos_video" class="video-js" width="640" height="360" controls="controls" preload="auto" poster="{{ OKEANOS_VIDEO_POSTER_IMAGE_URL }}">
2

    
3
    {% for key, value in OKEANOS_VIDEO_URL.items %}
4
    <source type='video/{{ key }}' {% for , val  value.items %}{{ attr }}="{{ val }}" {% endfor %}/>{% endfor %}
5
    
6
    {% if OKEANOS_MP4_VIDEO_URL %}
7
    <!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
8
    <object id="video_flash_fallback" 
9
        class="vjs-flash-fallback" 
10
        width="{{ VIDEO_WIDTH }}" height="{{ VIDEO_HEIGHT }}" 
11
        type="application/x-shockwave-flash" 
12
        data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
13

    
14
        <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
15
        <param name="allowfullscreen" value="true" />
16
        <param name="flashvars" value='config={"playlist":["{{ OKEANOS_VIDEO_POSTER_IMAGE_URL }}", {"url": "{{ OKEANOS_MP4_VIDEO_URL }}","autoPlay":false,"autoBuffering":true}]}' />
17

    
18
        <!-- Image Fallback. Typically the same as the poster image. -->
19
        <img src="{{ OKEANOS_VIDEO_POSTER_IMAGE_URL }}" width="{{ VIDEO_WIDTH }}" height="{{ VIDEO_HEIGHT }}" alt="~okeanos" title="No video playback capabilities." />
20
    </object>
21
    {% endif %}
22
</video>
23