File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ This document outlines many considerations for using Video.js for advanced playe
27
27
After an instance has been created it can be accessed globally in two ways:
28
28
29
29
1 . By calling ` videojs('example_video_id'); `
30
- 1 . By using it directly via ` videojs.players.example_video_id; `
30
+ 1 . By using it directly via ` videojs.players.example_video_id; `
31
31
32
32
## Removing Players
33
33
@@ -353,23 +353,20 @@ console.log(myPlayer.poster());
353
353
354
354
## Accessing the Tech on the player
355
355
356
- The tech on the player can only be accesed by pasing ` {IWillNotUseThisInPlugins: true} ` into the ` tech() `
357
- function on the player.
356
+ The tech on the player can be accessed via ` tech() ` . Passing any argument will silence the warning that is logged.
358
357
359
358
``` js
360
359
var myPlayer = videojs (' some-player-id' );
361
360
362
361
myPlayer .src ({type: ' video/mp4' , src: ' http://www.example.com/path/to/video.mp4' });
363
362
myPlayer .ready (function () {
364
- // tech() will error with no argument
365
- var tech = myPlayer .tech ({IWillNotUseThisInPlugins : true } );
363
+ // tech() will log warning without any argument
364
+ var tech = myPlayer .tech (false );
366
365
});
367
366
```
368
367
369
368
## Using Video.js with...
370
369
371
- Coming soon...
372
-
373
370
### jQuery
374
371
375
372
### React
You can’t perform that action at this time.
0 commit comments