You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
3.2 KiB

  1. ---
  2. layout : 'default'
  3. css : ''
  4. element : 'video'
  5. elementType : 'module'
  6. title : 'Video'
  7. description : 'A video is used to display moving visual images and related playback options'
  8. type : 'UI Module'
  9. status : 'Undocumented'
  10. ---
  11. <script src="/javascript/video.js"></script>
  12. <%- @partial('header', { tabs: { overview: 'Overview' } }) %>
  13. <div class="main container">
  14. <div class="ui active tab" data-tab="overview">
  15. <h2 class="ui dividing header">Current Progress</h2>
  16. <div class="ui indicating progress">
  17. <div class="bar" style="width: 90%;">
  18. <div class="progress">90%</div>
  19. </div>
  20. <div class="label">Needs Documentation</div>
  21. </div>
  22. <h2 class="ui dividing header">Usage</h2>
  23. <div class="no example">
  24. <h4 class="ui header">Many Networks One API</h4>
  25. <p>Semantic's video component provides a wrapper around APIs for two popular sites for hosting multimedia content, Youtube and Vimeo, allowing you to use a single embed and unified set of javascript parameters, to control javascript callbacks, HD and UI display settings, autoplay etc.</p>
  26. <p>Semantics video allows you to display videos based on a network's content ID, and can grab a content ID from an existing url, so you dont have to use full URLs to youtube content if you're storing external resources in your database.</p>
  27. </div>
  28. <div class="no example">
  29. <h4 class="ui header">Responsive Embeds</h4>
  30. <p>In additional Semantic's embeds use css based around <a href="http://embedresponsively.com/" target="_blank">Embed Responsively</a> to make your YouTube and Vimeo embed's maintain the correct aspect ratio as content resizes.</p>
  31. </div>
  32. <div class="no example">
  33. <h4 class="ui header">Unified API</h4>
  34. <p>Ever try to learn Vimeo's froogaloop video API? How about Youtube's Javascript APIs? Semantic provides unified callbacks for <code>onPlay</code>, <code>onPause</code>, and other common API endpoints for tying an external video embed into your sites UI</p>
  35. </div>
  36. <div class="no example">
  37. <h4 class="ui header">Custom Image Placeholders</h4>
  38. <p>Semantic's video component allows you the option to include a custom placeholder instead of loading the default placeholder from your media host.</p>
  39. </div>
  40. <h2 class="ui dividing header">Example</h2>
  41. <div class="no example">
  42. <div class="code" data-type="javascript" data-demo="true">
  43. $('.ui.video').video();
  44. </div>
  45. <div class="code" data-type="html" data-preview="true">
  46. <div class="ui video"
  47. data-source="youtube"
  48. data-id="i_mKY2CQ9Kk"
  49. data-image="/images/cat.jpg"
  50. ></div>
  51. </div>
  52. </div>
  53. <h2 class="ui dividing header">Development Progress</h2>
  54. <div class="no example">
  55. <p>This is an undocumented component, but is <b>mostly complete</b>.</p>
  56. <p>You can help support the future development of the Semantic UI project, and help boost the priority of this component by donating to Semantic UI development.</p>
  57. <p>Please be sure to leave a note in the comments to indicate that you are interested in the development of this particular component.</p>
  58. </div>
  59. </div>
  60. </div>