Skip to content

Commit 7d46f44

Browse files
docs: update note about accessing tech (#7141)
1 parent b2336aa commit 7d46f44

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

docs/guides/player-workflows.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This document outlines many considerations for using Video.js for advanced playe
2727
After an instance has been created it can be accessed globally in two ways:
2828

2929
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;`
3131

3232
## Removing Players
3333

@@ -353,23 +353,20 @@ console.log(myPlayer.poster());
353353

354354
## Accessing the Tech on the player
355355

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.
358357

359358
```js
360359
var myPlayer = videojs('some-player-id');
361360

362361
myPlayer.src({type: 'video/mp4', src: 'http://www.example.com/path/to/video.mp4'});
363362
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);
366365
});
367366
```
368367

369368
## Using Video.js with...
370369

371-
Coming soon...
372-
373370
### jQuery
374371

375372
### React

0 commit comments

Comments
 (0)