def generate_video(v, params=[]):
    sources = []
    if v.webm:
        sources.append({'src': _get_video_url(v.webm), 'type': 'webm'})
    if v.ogv:
        sources.append({'src': _get_video_url(v.ogv), 'type': 'ogg'})
    data_fallback = ''
    # Flash fallback
    if v.flv:
        data_fallback = _get_video_url(v.flv)
    return render_to_string('wikiparser/hook_video.html', {
        'fallback': data_fallback, 'sources': sources, 'params': params,
        'video': v,
        'height': settings.WIKI_VIDEO_HEIGHT,
        'width': settings.WIKI_VIDEO_WIDTH
    })
Takes a video object and returns HTML markup for embedding it.
dataset/ETHPy150Open mozilla/kitsune/kitsune/sumo/parser.py/generate_video