title: Open a HTML5 video in fullscreen by default?
body: <p>I wish to host some HTML5 videos in a HTML app. On opening the video they currently just open up within a page and play by default with the controls available with the option to open fullscreen, is there any way to get playing full screen as soon as you open the page?</p>
  
  <pre><code>&lt;div class="video-container" data-tap-disable="true"&gt;
  &lt;div class="videotitle"&gt;{{product.title}}&lt;/div&gt;
  &lt;div class="videoduration"&gt;Duration: {{product.duration}}&lt;/div&gt;
  &lt;video id="myVideo" controls="controls" preload="metadata" autoplay="autoplay" webkit-playsinline="webkit-playsinline" class="videoPlayer"&gt;&lt;source src="{{product.video}}" type="video/mp4"/&gt;&lt;/video&gt;
  </code></pre>
  
  <p>Here is my Angular controller, I assume the JS code will fit in here somewhere as opposed to my product.html</p>
  
  <pre><code>.controller('ProductCtrl', function (Products, $rootScope, $scope,  $stateParams, $state, $timeout) {
  $scope.product = Products[$stateParams.productId];
  
  var video = document.getElementById("myVideo");
  
  // Stop video playing when we go to another page
  $rootScope.$on('$stateChangeStart', function () {
  stopVideo();
  });
  
   // Go to list of other videos when individual HTML5 video has finished  playing
  angular.element(video).bind('ended', function () {
  $state.go('app.products');
  });
  
  function stopVideo() {
  video.pause();
  video.currentTime = 0;
  }
  });
  </code></pre>