videojs-watermark
videojs-watermark copied to clipboard
Integration of any Videojs Plugin in Angular2 ?
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();
Please , i have the same problem...have you a solution now?
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( );