Skip to content

Instantly share code, notes, and snippets.

@ptvandi
Last active December 3, 2019 01:33
Show Gist options
  • Save ptvandi/f5c9ab579206908654ab677691122867 to your computer and use it in GitHub Desktop.
Save ptvandi/f5c9ab579206908654ab677691122867 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>VisualOn Player Test</title>
<style>
html,
body {
width: 100%;
height: 100%;
margin: 0;
background-color: black;
}
#container {
height: 100%;
width: 100%;
}
</style>
<script src="//www.visualon.com/html5/SamplePlayer/libs/voplayer.min.js"></script>
</head>
<body onload="onLoad()">
<div id="container"></div>
<script>
function onLoad() {
var container = document.getElementById('container');
var player = new voPlayer.Player(container);
var config = {
playback: {
autoPlay: true
}
};
var source = {
links: [{
uri: 'https://d1w9xdakxie2rx.cloudfront.net/html5/dash/voweb_dash.mpd'
}]
};
player.init(config);
player.open(source);
player.play();
window.player = player;
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment