I get the error "This video contains content from UMG. It is restricted from playback on certain sites." when trying to play certain embedded YouTube videos in Chrome extension.
I'm using YouTube IFrame API.
All the code is inside the popup.
I've tested my code on Localhost, and didn't got the error.
Example for YouTube Video with the restriction issue: YouTube Video.
I found a similar question Here, but didn't understand how to bypass the restriction issues.
@Workman suggested that YouTube IFrame implementation blocks certain referring urls from displaying licensed content and proposed a solution, but I need a dynamic solution.
I would really appreciate any help I can get.
PS. I wouldn't like to avoid videos that contains license content.