(function (Popcorn) {
/**
+ * Google News popcorn plug-in
+ * Displays Google News information on a topic in a targeted div.
+ * Options parameter will need a start, end and target.
+ * Optional parameters are topic. topic defaults to "top stories"
+ * Start is the time that you want this plug-in to execute
+ * End is the time that you want this plug-in to stop executing
+ * Target is the id of the document element that the content is
+ * appended to, this target element must exist on the DOM
+ * Topic is the topic of news articles you want to display.
+ *
+ * @param {Object} options
+ *
+ * Example:
+ var p = Popcorn('#video')
+ .footnote({
+ start: 5, // seconds, mandatory
+ end: 15, // seconds, mandatory
+ topic: 'oil spill', // optional
+ target: 'newsdiv' // mandatory
+ } )
+ *
*/
Popcorn.plugin( "googlenews" , {
(function (Popcorn) {
/**
- */
+ * Lower Third popcorn plug-in
+ * Displays information about a speaker over the video, or in the target div
+ * Options parameter will need a start, and end.
+ * Optional parameters are target, salutation, name and role.
+ * Start is the time that you want this plug-in to execute
+ * End is the time that you want this plug-in to stop executing
+ * Target is the id of the document element that the content is
+ * appended to, this target element must exist on the DOM
+ * salutation is the speaker's Mr. Ms. Dr. etc.
+ * name is the speaker's name.
+ * role is information about the speaker, example Engineer.
+ *
+ * @param {Object} options
+ *
+ * Example:
+ var p = Popcorn('#video')
+ .footnote({
+ start: 5, // seconds, mandatory
+ end: 15, // seconds, mandatory
+ salutation: 'Mr', // optional
+ name: 'Scott Downe', // optional
+ role: 'Programmer', // optional
+ target: 'subtitlediv' // optional
+ } )
+ *
+ */
// just a little tool function
// calculates the top and left position of an element
(function (Popcorn) {
/**
+ * Subtitle popcorn plug-in
+ * Displays a subtitle over the video, or in the target div
+ * Options parameter will need a start, and end.
+ * Optional parameters are target and text.
+ * Start is the time that you want this plug-in to execute
+ * End is the time that you want this plug-in to stop executing
+ * Target is the id of the document element that the content is
+ * appended to, this target element must exist on the DOM
+ * Text is the text of the subtitle you want to display.
+ *
+ * @param {Object} options
+ *
+ * Example:
+ var p = Popcorn('#video')
+ .footnote({
+ start: 5, // seconds, mandatory
+ end: 15, // seconds, mandatory
+ text: 'Hellow world', // optional
+ target: 'subtitlediv' // optional
+ } )
+ *
*/
// just a little tool function
} );
};
-
-/*
- // Find element offset
- if (element.offsetParent) {
- do {
- offsetX += element.offsetLeft;
- offsetY += element.offsetTop;
- } while ((element = element.offsetParent));
- }
-*/
-
Popcorn.plugin( "subtitle" , {
manifest: {