Skip to content

Commit

Permalink
Remove Canvas2D loading notice in example; otherwise webgl cannot be …
Browse files Browse the repository at this point in the history
…used
  • Loading branch information
phoboslab committed Jun 2, 2015
1 parent 5ac302b commit a8f3d0b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions stream-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,10 @@
</canvas>
<script type="text/javascript" src="jsmpg.js"></script>
<script type="text/javascript">
// Show loading notice
var canvas = document.getElementById('videoCanvas');
var ctx = canvas.getContext('2d');
ctx.fillStyle = '#444';
ctx.fillText('Loading...', canvas.width/2-30, canvas.height/3);

// Setup the WebSocket connection and start the player
var client = new WebSocket( 'ws://example.com:8084/' );

var canvas = document.getElementById('videoCanvas');
var player = new jsmpeg(client, {canvas:canvas});
</script>
</body>
Expand Down

0 comments on commit a8f3d0b

Please sign in to comment.