Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function setupVideo(url) {
var context = new Custom.di.CustomContext();
var player = new MediaPlayer(context);
player.startup();
player.attachView(document.querySelector('#videoplayer'));
player.setAutoPlay(true);
player.attachSource(url);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment