Skip to content

Commit

Permalink
docs: use tech() and not tech_ (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
forbesjo committed Aug 14, 2018
1 parent e2dc4f5 commit 3b724b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,12 @@ without making a request, we can support that, since you can control the methods
### Special Events

There are some events that are specific to this plugin. Once such event is `licenserequestattempted`.
This event is triggered on the `tech_` on the callback of every license request.
This event is triggered on the tech on the callback of every license request.

In order to listen to this event:

```
player.tech_.on('licenserequestattempted', function(event) {
player.tech().on('licenserequestattempted', function(event) {
// Act on event
});
```
Expand All @@ -335,7 +335,7 @@ like trying to play DRM-protected media on restricted devices.
Just like the above, you can listen to the event like so:

```
player.tech_.on('keystatuschange', function(event) {
player.tech().on('keystatuschange', function(event) {
// Event data:
// keyId
// status: usable, output-restricted, etc
Expand Down

0 comments on commit 3b724b6

Please sign in to comment.