YanaDH 7 năm trước cách đây
mục cha
commit
640119cece

+ 1 - 1
miaomiao/www/js/controllers/account.js

xqd
@@ -2,7 +2,7 @@
     app.controller('wechatLoginCtrl', ["$scope","userService","$ionicNavBarDelegate", "storage", "$state", "msg", "$http", "util","common",
     function ($scope,userService,$ionicNavBarDelegate, storage, $state, msg, $http, util,common) {
             //$ionicNavBarDelegate.showBackButton(false);
-        $scope.addvideo = function () {
+            $scope.addvideo = function () {
                 common.chooseVideo().then(function (file) {
                     msg.loading();
                     common.uploadFiles(file, 2).then(function (result) {

+ 3 - 2
miaomiao/www/js/services/commonservice.js

xqd
@@ -157,8 +157,9 @@
                                       optimizeForNetworkUse: VideoEditorOptions.OptimizeForNetworkUse.YES,
                                       saveToLibrary: true,
                                       maintainAspectRatio: true,
-                                      width: 640,
-                                      height: 640,
+                                      width: 1280,
+                                      height: 720,
+                                      fps: 30,
                                       videoBitrate: 1000000, // 1 megabit
                                       audioChannels: 2,
                                       audioSampleRate: 44100,

+ 1 - 1
miaomiao/www/templates/account/login.html

xqd
@@ -7,6 +7,6 @@
                 <img ng-click="wechat_login()" ng-src="img/icon_wechat.svg"/>
             </div>
         </div>
-        <button ng-click="addvideo()">视频测试</button>
+        <!--<button ng-click="addvideo()">视频测试</button>-->
     </ion-content>
 </ion-view>