How to use libraries from webpage in my addon?
There's this site that i want to create script for. It uses VideoJS library, a simple tool to embed a customizable player on website. To communicate with this library, i need to define the player in my script: ``` var player = videojs('player_id'); ``` The problem is that the code in my addon doesn't recognize the `videojs` constructor. Do i have to manually add VideoJS library to my addon, or can i „hijack" library from the website somehow?
There's this site that i want to create script for. It uses VideoJS library, a simple tool to embed a customizable player on website. To communicate with this library, i need to define the player in my script:
```
var player = videojs('player_id');
```
The problem is that the code in my addon doesn't recognize the `videojs` constructor. Do i have to manually add VideoJS library to my addon, or can i „hijack" library from the website somehow?