Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration of any Videojs Plugin in Angular2 ? #11

Open
Hashmi0 opened this issue Feb 7, 2018 · 2 comments
Open

Integration of any Videojs Plugin in Angular2 ? #11

Hashmi0 opened this issue Feb 7, 2018 · 2 comments

Comments

@Hashmi0
Copy link

Hashmi0 commented Feb 7, 2018

Hello there !
i am unable to integrate this videojs-watermark plugin in my angular2 project.
Is there any way to integrate this in angular2 ?
here is the code
var player= videojs('id1', {}, function() {
console.log("Working inside function ")

});
player.watermark();

1
capture

@epiphaneSpecter
Copy link

Please , i have the same problem...have you a solution now?

@epiphaneSpecter
Copy link

There is the solution in my case

  • -first add video js in angular.jon and in your ts files write : declare var videojs:any;

  • import watermark from 'videojs-watermark';

  • and on your ngOnit add this : videojs.registerPlugin('watermark', watermark);

  • and to finish call player.watermark( );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants