Skip to content

Instantly share code, notes, and snippets.

@jcleveley-zz
Created May 4, 2012 10:15
Show Gist options
  • Save jcleveley-zz/2593813 to your computer and use it in GitHub Desktop.
Save jcleveley-zz/2593813 to your computer and use it in GitHub Desktop.
<!-- XML from candy-->
<video media-id="57519164">
<caption>Different caption for the same video</caption>
</video>
<!-- HTML via XSLT-->
<video id="video-57519164"></video>
<!-- JS added into page by php from candy meta -->
<script>
require(['VideoHandler'], function(VideoHandler){
VideoHandler.add({
id: 'video-57519164',
width: 999,
height: 888,
href: '',
// etc
});
VideoHandler.add({
id: 'video-2',
width: 999,
height: 888,
href: '',
// etc
});
});
</script>
@jcleveley-zz
Copy link
Author

Or we could have a global object (durn dur duuurn) which describes the meta of the page (inbcluding the video)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment