如何在离子

时间:2016-03-04 11:31:27

标签: cordova ionic-framework

如何在App First启动时添加视频。 我尝试过使用HTML视频标签。但是一旦视频完成,视频完成后应用程序就不会重定向到主页。

更新

    <!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    <title></title>

    <link href="lib/ionic/css/ionic.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

    <!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
    <link href="css/ionic.app.css" rel="stylesheet">
    -->

    <!-- ionic/angularjs js -->
    <script src="lib/ionic/js/ionic.bundle.js"></script>

    <!-- cordova script (this will be a 404 during development) -->
    <script src="cordova.js"></script>

    <!-- your app's js -->
    <script src="js/app.js"></script>
  </head>
  <body ng-app="starter">
    <ion-pane>
      <ion-content scroll="false">
        <div class="over-lay">
          <video autoplay loop class="video" webkit-playsinline requestFullScreen>
            <source src="video/polina.mp4" type='video/mp4; codecs="h.264"' >
            <source src="video/polina.webm" type="video/webm">
          </video>
          <div class="logo">
            <img ng-src="img/three.svg" alt="three">
            <h1>Forest</h1>
          </div>
          <div class="row button-group">
            <div class="col-50"><button class="button">Log in</button></div>
            <div class="col-50"><button class="button">Sign up</button></div>
          </div>
        </div>
      </ion-content>
    </ion-pane>
  </body>
</html>

这里的代码在浏览器上工作正常但不是移动

0 个答案:

没有答案