This example shows how to change and retrieve the chapter list for a given video.
1) Retrieve chapters :
Chapter retrieval is fairly simple. Just pass in a video identifier, and the chapters will be retrieved as an array
var_dump( $oSoap->getChapters($iFileCode) );
array (size=8)
0 =>
array (size=3)
'iTime' => string '20.3' (length=4)
'sTitle' => string 'Chapitre 1' (length=10)
'sDescription' => string 'Premier chapitre a 20,30 sec.' (length=30)
1 => ...
2) Modify chapters :
To modify chapters, simply pass in a list of chapters as an array and these will replace the previous chapters.
$aChapters = array(
array("iTime" => "12", "sTitle"=>"Chapitre 1","sDescription"=>"La description du chapitre 1"),
array("iTime" => "30.5", "sTitle"=>"Chapitre 2","sDescription"=>"La description du chapitre 2"),
array("iTime" => "50.25", "sTitle"=>"Chapitre 3","sDescription"=>"La description du chapitre 3")
);
$oSoap->getChapters($iFileCode, $aChapters);
Modifying/re-generating thumbnails may take a few seconds before appearing in the flash player.