videojs-watermark icon indicating copy to clipboard operation
videojs-watermark copied to clipboard

Integration of any Videojs Plugin in Angular2 ?

Open Hashmi0 opened this issue 7 years ago • 2 comments

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

Hashmi0 avatar Feb 07 '18 14:02 Hashmi0

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

epiphaneSpecter avatar Jun 18 '19 01:06 epiphaneSpecter

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( );

epiphaneSpecter avatar Jun 18 '19 01:06 epiphaneSpecter