I want to prevent user to copy link of embed youtube video in my web page in angular. I used this code below in my angular component.
new window['YT'].Player('player', {
videoId: id,
playerVars: {
autoplay: 0,
modestbranding: 1,
controls:0,
disablekb: 1,
rel: 0,
fs: 1,
//playsinline: 1,
//enablejsapi: 1,
},
events: {
'onStateChange': this.onPlayerStateChange.bind(this),
//'onError': this.onPlayerError.bind(this),
//'onReady': this.onPlayerReady.bind(this),
},
});