Open main menu

CDOT Wiki β

Changes

Popcorn slideshow player

1,597 bytes added, 00:42, 12 December 2011
Releases
The application runs in two parts (although at the time of writing there is still a number of components that need to be figured out)
== Loading the Slideshow == The first part handles the loading and embedding of the slideshow player. This is done by setting parameters and calling swfobject which is a tool that embeds flash objects into web pages. The swfobject is obtained by running Popcorn's getScript method and passing the url where the swfobject javascript file is located. - Popcorn.getScript( "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" ); 
'''*Important:''' In the slideshare webpage there is documentation on how to invoke the swfobject in order to embed the slideshow, popcorn works slightly differently from this however in that it requires a few more parameters to be set.
swfobject.embedSWF( "http://static.slidesharecdn.com/swf/ssplayer2.swf",
containerId, self.offsetWidth, self.offsetHeight, "9.0.0", "expressInstall.swf",
flashvars, params, attributes );
}
sdafsadfasfasfA breakdown and explanation of the various parameters of swfobject are as follows: "http://static.slidesharecdn.com/swf/ssplayer2.swf" - This is the url of the slideshow player for the flash oejbect that plays the slideshare slides  self.offsetWidth, self.offsetHeight - These set the size, in X/Y pixel values, of the slideshow player to be displayed. expressInstall.swf - this is the flash player that is embedded and runs the slideshow player.  flashvars - These are the parameters that are set for the flash player to run the slide. This includes the name of the slideshow to be played, settings to display a title and the popcorn method to be called for loading the slideshow.  params - parameters on how the slideshow player will behave. In this case, the slideshow player allows for full screen display of the slideshow player. == Loading the Popcorn Events == The popcorn events are handled by a function called ctor. This method both gets and sets player parameters both to manipulate the player (ie: pause, play, jump to a specific frame/slide, etc...) as well as get data, such as how much time has passed, in order for the player to know when to invoke a popcorn event.
== Project Plan & Description ==
=== Project Description Releases ===
{| border="1"
|-
| '''Release'''
| '''Download Release'''
| '''Features/Points Addressed'''
|-
| 0.1
||Version plays a slideshow however popcorn events as well as unit tests need to be added to it.
|-
== Project Leader(s) ==
*[[User:RueenDseifried|Rueen FiezDavid Seifried]] (rueendseif) [http://rueenfiezdseifried.wordpress.com Rueen/ David Seifried's blogBlog] - (Point of Contact)*[[User:Vlam6Cadecairos|Vincent LamChris DeCairos]] (vlam6decairos) [httphttps://vlam6.wordpresschrisdecairos.com Vince's blog]*[[User:Armenzg|Armen Zambrano]] (armenzg) [http:/ca/armenzg.blogspot.com/search/label/auto%20l10n Armen's blog about the projectChris DeCairos Blog]
== Releases Ticket ==
=== Lighthouse Ticket ===
 
[https://webmademovies.lighthouseapp.com/projects/63272/tickets/559-slideshow-player Ticket 559]
 
=== Github Link ===
 
[https://github.com/dennisvillasenor/popcorn-js/tree/0.7/players/slideshow Popcorn Repo]
=== Project Notes ===
1
edit