title: Youtube videos not played in Electron app but in a website does
body: <p>I'm working on two related projects, a web page and an application in Electron, among other things, both have to play Youtube videos embedded in an iframe. Everything works perfectly on the website,</p>
  
  <pre><code>var newUrl = 'http://www.youtube.com/embed/' + $scope.youtube_parser(video.url);
          $scope.videoURL = $sce.trustAsResourceUrl(newUrl + '?enablejsapi=1&amp;showinfo=0&amp;rel=0');
  $scope.setYTPlayer();
  
  $scope.setYTPlayer = function(){
      $scope.player;
      $scope.player = new YT.Player('player', {
          height: '360',
          width: '640',
          videoId: $scope.videoSelected,
          events: {
              'onReady': onPlayerReady,
              'onStateChange': onPlayerStateChange
          }
      });
  }
  &lt;iframe id="player" frameborder="0" allowfullscreen ng-src="{{videoURL}}" style="width: 100%;height: 100%;"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>but in the Electron application many of the videos are not played, a message is read on the player: "video not available"</p>
  
  <pre><code>var youtubeId = $scope.getYoutubeId(video.url)
      $scope.currentVideo = $sce.trustAsResourceUrl(
        'https://www.youtube.com/embed/' + youtubeId + '?rel=0'
      )
  &lt;iframe width="100%" height="442" ng-src="{{ currentVideo }}" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/0TPuS.png" rel="nofollow noreferrer">Capture of the player</a></p>
  
  <p>The same link, with the same method, on the page reproduces without any problem. Try with the iframe only, with the api, changing the playback parameters and the problem continues.
  The question is, is there any Youtube policy that does not allow videos to be played in certain places? Or what can be the error?</p>
  
  <p>Electron versión: v3.0.3</p>
  
  <p>Thanks and apologies if I can not express myself well.</p>