f70548fd by Matthew McClure

use the ready callback instead

1 parent fa5c74ef
...@@ -14,9 +14,7 @@ Download the [Media Source plugin](https://github.com/videojs/videojs-contrib-me ...@@ -14,9 +14,7 @@ Download the [Media Source plugin](https://github.com/videojs/videojs-contrib-me
14 <script> 14 <script>
15 var player = videojs('test-vid', { 15 var player = videojs('test-vid', {
16 techOrder: ['html5', 'hls', 'flash'] 16 techOrder: ['html5', 'hls', 'flash']
17 }); 17 }, function() {
18
19 player.ready(function() {
20 this.play(); 18 this.play();
21 }); 19 });
22 </script> 20 </script>
......