Contenu connexe
Similaire à My cool new Slideshow!
Similaire à My cool new Slideshow! (20)
Plus de Sanjulika Rastogi
Plus de Sanjulika Rastogi (20)
My cool new Slideshow!
- 4. echo $movies>PPTLocation; 1
Second Method :
if you have url of slide share, you can call oembed api thru curl
eg: http://www.slideshare.net/api/oembed/2?url={url}&format=json
Third Method :
Javascript:
After getting PPTLocation from first method [1] XML ,we can also use its javascript api
From first method point 1
<?php $doc=$movies>PPTLocation;?>
<html>
<head>
<title>SlideShare Player API Example</title>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashMovie;
//Load the flash player. Properties for the player can be changed here.
function loadPlayer() {
//allowScriptAccess from other domains
var params = { allowScriptAccess: "always" };
var atts = { id: "player" };
//doc: The path of the file to be used
//startSlide: The number of the slide to start from
//rel: Whether to show a screen with related slideshows at the end or not. 0 means false and 1 is
true..
var flashvars = {
doc : "thirstupload800x60012155343205187078",//<?php echo $doc?>
startSlide : 1, rel : 0 };
//Generate the embed SWF file
swfobject.embedSWF("http://static.slidesharecdn.com/swf/ssplayer2.swf", "player", "598", "480",
"8", null, flashvars, params, atts);
//Get a reference to the player
flashMovie = document.getElementById("player");
}
//Jump to the appropriate slide
function jumpTo(){
flashMovie.jumpTo(parseInt(document.getElementById("slidenumber").value));
}