application.ptMultiMedia.scripts.loadJQuery(); request.element.isStatic = 0; criteria = attributes.elementInfo.elementData.propertyValues; if ( ArrayLen(criteria) AND structkeyexists(criteria[1].values,"media_select") and (len(criteria[1].values.media_select)) ) { items = application.ptmultimedia.cedata.getCEData("Multimedia", "id", criteria[1].values.media_select, "selected"); }
#application.ptmultimedia.mediaService.mediaPlayer(criteria[1].values.media_select)#

#items[1].values.caption#

// Parse the video embed code into a struct videoStruct = application.ptmultiMedia.mediaRenderService.parseEmbed("#items[1].values.embedcode#","#items[1].values.id#"); // call getCEData to retrieve the record by the ID field which contains a UUID embedCodeArray = application.ptmultimedia.cedata.getCEData("multiMedia", "ID", "#items[1].values.id#", "selected"); if (not embedCodeArray[1].values.embedcode contains "http://www.youtube.com/watch") { // fix the html cleanEmbedCode = replace(embedCodeArray[1].values.embedcode,""","""","ALL"); WriteOutput("
"); //Render the video WriteOutput(cleanEmbedCode); } else { /* This is an external youtube video and we can play these directly */ player = application.ptmultimedia.mediaService.renderJSPlayer(#items[1].values.id#); WriteOutput(player); } WriteOutput("
"); WriteOutput(embedCodeArray[1].values.description); WriteOutput("
");

Please select a multimedia item to display.