Difference between revisions of "User:Cgomes7/Subtitle Documentation"

From CDOT Wiki
Jump to: navigation, search
Line 1: Line 1:
== Subtitle Plugin ==
+
== Subtitle Plug-in ==
 +
Description
  
== Example ==
+
<script src="popcorn.subtitle.js"></script>
 +
== Examples ==
 
       .subtitle({
 
       .subtitle({
 
         start: 5, // seconds
 
         start: 5, // seconds
Line 10: Line 12:
 
         accessibilitysrc: "accessibility"
 
         accessibilitysrc: "accessibility"
 
       } )
 
       } )
 +
 
       .subtitle({
 
       .subtitle({
 
         start: 20, // seconds
 
         start: 20, // seconds
Line 20: Line 23:
  
 
     }, false);
 
     }, false);
 +
 +
== Google Translate ==
 +
 +
<h2>Choose your language</h2>
 +
    <select id="language">
 +
      <option value="zh" selected="selected">Chinese</option>
 +
      <option value="en">English</option>
 +
      <option value="fr">French</option>
 +
      <option value="de">German</option>
 +
      <option value="it">Italian</option>
 +
      <option value="ja">Japanese</option>
 +
      <option value="ko">Korean</option>
 +
      <option value="fa">Persian</option>
 +
      <option value="pl">Polish</option>
 +
      <option value="pt">Portuguese</option>
 +
      <option value="es">Spanish</option>
 +
    </select>
 +
    <div>
 +
      with help from <a href="http://google.com/translate">Google Translate</a><br />
 +
      <input type="checkbox" id="accessibility" checked="checked" />All subtitles (accessibility)
 +
    </div>
  
 
== Links ==
 
== Links ==
 
*[https://github.com/annasob/popcorn-js/blob/0.4/plugins/subtitle/popcorn.subtitle.js Subtitle Source Code]
 
*[https://github.com/annasob/popcorn-js/blob/0.4/plugins/subtitle/popcorn.subtitle.js Subtitle Source Code]
 
*[https://github.com/annasob/popcorn-js/blob/0.4/plugins/subtitle/popcorn.subtitle.html Example Source Code]
 
*[https://github.com/annasob/popcorn-js/blob/0.4/plugins/subtitle/popcorn.subtitle.html Example Source Code]

Revision as of 09:54, 24 February 2011

Subtitle Plug-in

Description

<script src="popcorn.subtitle.js"></script>

Examples

     .subtitle({
       start: 5, // seconds
       end: 15, // seconds
       text: 'this is the a subtitle',
       language: "en",
       languagesrc: "language",
       accessibilitysrc: "accessibility"
     } )
     .subtitle({
       start: 20, // seconds
       end: 45, // seconds
       text: 'this is another subtitle',
       language: "en",
       languagesrc: "language",
       accessibilitysrc: "accessibility"
     } )
   }, false);

Google Translate

Choose your language

   <select id="language">
     <option value="zh" selected="selected">Chinese</option>
     <option value="en">English</option>
     <option value="fr">French</option>
     <option value="de">German</option>
     <option value="it">Italian</option>
     <option value="ja">Japanese</option>
     <option value="ko">Korean</option>
     <option value="fa">Persian</option>
     <option value="pl">Polish</option>
     <option value="pt">Portuguese</option>
     <option value="es">Spanish</option>
   </select>
     with help from <a href="http://google.com/translate">Google Translate</a>
<input type="checkbox" id="accessibility" checked="checked" />All subtitles (accessibility)

Links