/doc/modules/mod_video_embed/mod_video_embed.html
http://github.com/zotonic/zotonic · HTML · 54 lines · 45 code · 9 blank · 0 comment · 0 complexity · ce5ec1a57e7cfa31b1fddc723c25fbf3 MD5 · raw file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <title>Module mod_video_embed</title>
- <link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
- </head>
- <body bgcolor="white">
- <div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
- <hr>
- <h1>Module mod_video_embed</h1>
- <ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>Enables embedding video's as media pages.
- <p>Copyright 2009 Marc Worrell
- Date: 2009-07-15</p>
- <p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
- <h2><a name="description">Description</a></h2>Enables embedding video's as media pages. Handles the embed information for showing video's.
- The embed information is stored in the medium table associated with the page. You can not have embed
- information and a medium file. Either one or the other.
- <h2><a name="index">Function Index</a></h2>
- <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#event-2">event/2</a></td><td>Handle the form submit from the "new media" dialog.</td></tr>
- <tr><td valign="top"><a href="#observe_media_stillimage-2">observe_media_stillimage/2</a></td><td>Return the filename of a still image to be used for image tags.</td></tr>
- <tr><td valign="top"><a href="#observe_media_viewer-2">observe_media_viewer/2</a></td><td>Return the media viewer for the embedded video (that is, when it is an embedded media).</td></tr>
- <tr><td valign="top"><a href="#observe_rsc_update-3">observe_rsc_update/3</a></td><td>Check if the update contains video embed information.</td></tr>
- </table>
- <h2><a name="functions">Function Details</a></h2>
- <h3 class="function"><a name="event-2">event/2</a></h3>
- <div class="spec">
- <p><tt>event(X1::Event, Context::Context1) -> Context2</tt></p>
- </div><p>Handle the form submit from the "new media" dialog. The form is defined in templates/_media_upload_panel.tpl.</p>
- <h3 class="function"><a name="observe_media_stillimage-2">observe_media_stillimage/2</a></h3>
- <div class="spec">
- <p><tt>observe_media_stillimage(Media_stillimage::Notification, Context::_Context) -> undefined | {ok, Filename}</tt></p>
- </div><p>Return the filename of a still image to be used for image tags.</p>
- <h3 class="function"><a name="observe_media_viewer-2">observe_media_viewer/2</a></h3>
- <div class="spec">
- <p><tt>observe_media_viewer(Media_viewer::Notification, Context) -> undefined | {ok, Html}</tt></p>
- </div><p>Return the media viewer for the embedded video (that is, when it is an embedded media).</p>
- <h3 class="function"><a name="observe_rsc_update-3">observe_rsc_update/3</a></h3>
- <div class="spec">
- <p><tt>observe_rsc_update(Rsc_update::{rsc_update, ResourceId, OldResourceProps}, X2::{Changed, UpdateProps}, Context) -> {NewChanged, NewUpdateProps}</tt></p>
- </div><p>Check if the update contains video embed information. If so then update the attached medium item.</p>
- <hr>
- <div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
- <p><i>Generated by EDoc, Oct 13 2011, 14:45:58.</i></p>
- </body>
- </html>