Server-Side Code Sandbox

Styling Sandbox · Configuration Sandbox
<div class="wall-of-videos-container">
    <ziggeo ziggeo-width=320 ziggeo-height=240>
    </ziggeo>
    Record / Upload here
</div>

<?php foreach ($ziggeo->videos()->index() as $video) { ?>
    <div class="wall-of-videos-container">
        <ziggeo ziggeo-video="<?= $video->token ?>" 
                ziggeo-width=320 ziggeo-height=240
                ziggeo-popup>
        </ziggeo>
        <?= date("Y-m-d h:i a", $video->created) ?>
        &middot;
        <?= $video->duration ?> seconds
    </div>
<? } ?>
print('<div class="wall-of-videos-container">')
print('<ziggeo ziggeo-width=320 ziggeo-height=240>')
print('</ziggeo>')
print('Record / Upload here')
print('</div>')

for video in ziggeo.videos().index():
    print('<div class="wall-of-videos-container">')
    print('<ziggeo ziggeo-video="' + video[u'token'] + '"') 
    print('ziggeo-width=320 ziggeo-height=240')
    print('ziggeo-popup>')
    print('</ziggeo>')
    print(video[u'created'])
    print('&middot')
    print(str(video[u'duration']) + " seconds")
    print("</div>")
print('<div class="wall-of-videos-container">')
print('<ziggeo ziggeo-width=320 ziggeo-height=240>')
print('</ziggeo>')
print('Record / Upload here')
print('</div>')

ziggeo.videos().index().each do |video|
    print('<div class="wall-of-videos-container">')
    print('<ziggeo ziggeo-video="' + video['token'] + '"') 
    print('ziggeo-width=320 ziggeo-height=240')
    print('ziggeo-popup>')
    print('</ziggeo>')
    print(video['created'])
    print('&middot')
    print(video['duration'] + " seconds")
    print("</div>")
end
console.log('<div class="wall-of-videos-container">');
console.log('<ziggeo ziggeo-width=320 ziggeo-height=240>');
console.log('</ziggeo>');
console.log('Record / Upload here');
console.log('</div>');

ZiggeoSdk.Videos.index({}, {
    success: function (index) {
        for (var i = 0; i < index.length; ++i) {
            var video = index[i];
            console.log('<div class="wall-of-videos-container">');
            console.log('<ziggeo ziggeo-video="' + video.token + '"'); 
            console.log('ziggeo-width=320 ziggeo-height=240');
            console.log('ziggeo-popup>');
            console.log('</ziggeo>');
            console.log((new Date(video.created)).toString());
            console.log('&middot');
            console.log(video.duration + " seconds");
            console.log("</div>");
        }
    }
});