title: Use video as a background in ionic/cordova for ios
body: <p>I'm needing to play like 6 videos as background in differents divs at the same time, but in IOS and ANDROID platforms. I'm developing an ionic app.</p>
  
  <p>I've found a <a href="https://stackoverflow.com/a/31060664/1678851">solution</a> that works perfectly with web, but when I builded it up, it worked as I supposed: every video that I used as background just play as full screen.</p>
  
  <p>Here goes some code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.bg-vid {
   position: absolute;
   top: 50%;
   left: 50%;
   min-width: 100%;
   min-height: 100%;
   width: auto;
   height: 100%;;
   z-index: -100;
   -webkit-transform: translateX(-50%) translateY(-50%);
   -moz-transform: translateX(-50%) translateY(-50%);
   -ms-transform: translateX(-50%) translateY(-50%);
   -o-transform: translateX(-50%) translateY(-50%);
   transform: translateX(-50%) translateY(-50%);
   background: url(http://www.w3schools.com/tags/movie.mp4) no-repeat;
   background-size: cover;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>   &lt;div&gt;
      &lt;video autoplay muted loop class="bg-vid"&gt;
        &lt;source src="http://www.w3schools.com/tags/movie.mp4" type="video/webm"&gt;
        &lt;source src="http://www.w3schools.com/tags/movie.mp4" type="video/mp4"&gt;
       &lt;/video&gt;
     &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Hope someone can help me.</p>