Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    rstyoutube 0.1.1

    Download button

    No screenshots available
    Downloads: 102  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    J. Cliff Dyer | More programs
    MIT/X Consortium Lic... / FREE
    December 17th, 2011, 07:50 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    rstyoutube description

    A directive to embed YouTube videos in reStructuredText documents

    rstyoutube is a Python package for embedding YouTube videos in reStructuredText documents.

    The code lives at http://bitbucket.org/cliff/rstyoutube. Bug reports, feature requests, and contributions are all welcome. If you find the code useful, hop on bitbucket and send me a quick message letting me know.

    Usage

    To use with pelican or another docutils-based system, add the following to your pelican configuration file:

    import rstyoutube
    rstyoutube.setup_docutils()


    To use rstyoutube in standalone rst files, you can use the included rst2html+youtube.py script, which should get installed onto your PATH.

    In your reST document, include a youtube directive with the video's id as the sole argument as follows:

    This is my document

    .. youtube:: 5blbv4WFriM

    Hope you enjoyed the video.


    That's all it takes.

    Options

    If you want more fine-grained control, you can add various options:

    .. youtube:: 5blbv4WFriM
     :start: 67
     :width: 640
     :height: 480
     :ssl:
     :hd:

    start

    The number of seconds into the video where you want to start playback.

    width

    height

    The size of the embedded viewer. Defaults to 640x480, or if the hd option is set, defaults to 1080x720.

    ssl

    This option takes no arguments. If it is present, the player is embedded over https, rather than http.

    hd

    This option takes no arguments. If it is present, the embedded video is shown in HD. The player's default size becomes 1080x720, but can still be overridden using the width and height options.


    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Added options

      


    TAGS:

    embed video | YouTube video | reStructuredText documents | YouTube | video | embed

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM