Server-Side Code Sandbox

Client-Side Configuration · Authorization Tokens · Webhooks Builder
<div class="wall-of-videos-container">
    <ziggeorecorder ziggeo-width=320 ziggeo-height=240>
    </ziggeorecorder>
    Record / Upload here
</div>

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

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

ziggeo.videos().index().each do |video|
    print('<div class="wall-of-videos-container">')
    print('<ziggeoplayer ziggeo-video="' + video['token'] + '"')
    print('ziggeo-width=320 ziggeo-height=240')
    print('ziggeo-popup>')
    print('</ziggeoplayer>')
    print(video['created'])
    print('&middot')
    print(video['duration'] + " seconds")
    print("</div>")
end
console.log('<div class="wall-of-videos-container">');
console.log('<ziggeorecorder ziggeo-width=320 ziggeo-height=240>');
console.log('</ziggeorecorder>');
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('<ziggeoplayer ziggeo-video="' + video.token + '"');
            console.log('ziggeo-width=320 ziggeo-height=240');
            console.log('ziggeo-popup>');
            console.log('</ziggeoplayer>');
            console.log((new Date(video.created)).toString());
            console.log('&middot');
            console.log(video.duration + " seconds");
            console.log("</div>");
        }
    }
});