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

From CDOT Wiki
Jump to: navigation, search
(Examples)
(Examples)
Line 12: Line 12:
  
  
      .subtitle({
+
  .subtitle({
        start: 20, // seconds
+
    start: 20, // seconds
        end: 45, // seconds
+
    end: 45, // seconds
        text: 'this is another subtitle',
+
    text: 'this is another subtitle',
        language: "en",
+
    language: "en",
        languagesrc: "language",
+
    languagesrc: "language",
        accessibilitysrc: "accessibility"
+
    accessibilitysrc: "accessibility"
      } )
+
  } )
 
+
  <div>
<div>
+
  Choose your language
Choose your language
 
 
   <select id="language">
 
   <select id="language">
 
       <option value="zh" selected="selected">Chinese</option>
 
       <option value="zh" selected="selected">Chinese</option>

Revision as of 16:46, 7 March 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',
     } )


  .subtitle({
    start: 20, // seconds
    end: 45, // seconds
    text: 'this is another subtitle',
    language: "en",
    languagesrc: "language",
    accessibilitysrc: "accessibility"
  } )
  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>
     <input type="checkbox" id="accessibility" checked="checked" />All subtitles (accessibility)

Syntax

.subtitle({
       start: 
       end: 
       text: 
       language: 
       languagesrc: 
       accessibilitysrc: 
     } )

Parameters

Start: is the time that you want the subtitle to appear

End: is the time that you want the subtitle to disappear

Text: is the text will appear

Language:

Languagesrc:

Accessibilitysrc:

Returns

Nothing

Links