Video.js: Angular 4 support

Created on 7 Feb 2018  路  4Comments  路  Source: videojs/video.js

How do I use it with angular 4. Need to use some related plugins as well.

Most helpful comment

Any updates on Angular 4/5 support?

All 4 comments

I'm really not familiar with angular 4 but I would assume that you'd want to use the data-vjs-player or video-js element similar to how our react guide recommends react use video.js in a component: https://docs.videojs.com/tutorial-react.html

On slack, someone solved a similar issue the following way:

For me the solution was just to add the js files of both video.js and my plugin to the angular-cli.json scripts
and then
```declare const videojs: any;```
to the typings.d.ts files (edited)

hope that helps.

Closing due to lack of activity.

Any updates on Angular 4/5 support?

Was this page helpful?
0 / 5 - 0 ratings