use the ready callback instead
Showing
1 changed file
with
1 additions
and
3 deletions
... | @@ -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> | ... | ... |
-
Please register or sign in to post a comment