python-markdown-video


Python markdown 2.0 extension for easy video embedding

Following code...

```

import markdown url = "http://www.youtube.com/watch?v=ZlpbprBeN5M&hd=1" markdown.markdown(url, ['video']) ```

...produces this HTML minus indenting and newlines.

```

```

You can also define the size of the object like so:

```

markdown.markdown(url, ['video(youtube_width=853,youtube_height=505)']) ```

This extension supports the following services:

  • Blip.tv
  • Dailymotion
  • Gametrailers
  • Metacafe
  • Veoh
  • Vimeo
  • Yahoo! video
  • Youtube

NOTE: Blip.tv works a little differently than the others because there is no way to construct a working object with the player URL. Instead of the URL to the Blip.tv page, you will use the URL to the flv file, like http://blip.tv/file/get/Pycon-DjangoOnJython531.flv for example. This is located in Files and Links section of Blip.tv.

Project Information

Labels:
python markdown