Changes

Jump to: navigation, search

User:Cgomes7/Subtitle Documentation

402 bytes added, 19:52, 7 March 2011
Subtitle Plug-in
== Subtitle Plug-in ==
DescriptionAdds a text subtitle to the video that appears at the start time and disappears at the end time. Subtitles can be translated into different languages using Google translate. The accessibility option allows for a user to disable the subtitles. To use subtitle plug-in, import:
<script src="popcorn.subtitle.js"></script>
 
To use Google translate, import:
 
<script src="http://google.com/jsapi"></script>
== Examples ==
== Parameters ==
'''Start:''' is the time the subtitle to appear(INT)
'''End:''' is the time the subtitle to disappear(INT)
'''Text:''' is the text that will appear(STRING)
'''Language:''' [optional] the language of the subtitle(STRING)
'''Languagesrc:''' [optional] the source of the language option(Combo Box)
'''Accessibilitysrc:''' [optional] the source of the accessibility option(Check Box)
== Returns ==
1
edit

Navigation menu