mandatoryprogrammer opened a new issue #160: [iPhone 11 Pro Max][iOS 13.3] App 
Crashes Immediately When Calling navigator.device.capture.captureVideo
URL: https://github.com/apache/cordova-plugin-media-capture/issues/160
 
 
   # Bug Report
   
   ## Problem
   
   On iOS 13.3 (iPhone 11 Pro Max) the app immediately crashes upon calling 
`navigator.device.capture.captureVideo`. 
   
   ### What is expected to happen?
   
   The video capturing should start.
   
   ### What does actually happen?
   
   App crashes.
   
   ## Information
   
   ### Command or Code
   
   Here is my full code for Cordova:
   
   ```javascript
   /*
    * Licensed to the Apache Software Foundation (ASF) under one
    * or more contributor license agreements.  See the NOTICE file
    * distributed with this work for additional information
    * regarding copyright ownership.  The ASF licenses this file
    * to you under the Apache License, Version 2.0 (the
    * "License"); you may not use this file except in compliance
    * with the License.  You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing,
    * software distributed under the License is distributed on an
    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    * KIND, either express or implied.  See the License for the
    * specific language governing permissions and limitations
    * under the License.
    */
   var app = {
       // Application Constructor
       initialize: function() {
           document.addEventListener('deviceready', 
this.onDeviceReady.bind(this), false);
       },
   
       // deviceready Event Handler
       //
       // Bind any cordova events here. Common events are:
       // 'pause', 'resume', etc.
       onDeviceReady: function() {
           this.receivedEvent('deviceready');
           start();
       },
   
       // Update DOM on a Received Event
       receivedEvent: function(id) {
           var parentElement = document.getElementById(id);
           var listeningElement = parentElement.querySelector('.listening');
           var receivedElement = parentElement.querySelector('.received');
   
           listeningElement.setAttribute('style', 'display:none;');
           receivedElement.setAttribute('style', 'display:block;');
   
           console.log('Received Event: ' + id);
       }
   };
   
   app.initialize();
   
   async function start() {
       /*
       cordova.plugins.notification.local.schedule({
           title: 'ayy lmao',
           text: 'ayy lmao',
           foreground: true
       });
       */
   
       // capture callback
       var captureSuccess = function(mediaFiles) {
           /*
           var i, path, len;
           for (i = 0, len = mediaFiles.length; i < len; i += 1) {
               path = mediaFiles[i].fullPath;
               // do something interesting with the file
           }
           */
       };
   
       // capture error callback
       var captureError = function(error) {
   
           //navigator.notification.alert('Error code: ' + error.code, null, 
'Capture Error');
       };
   
       // start video capture
       navigator.device.capture.captureVideo(captureSuccess, captureError, 
{limit:1});
   }
   ```
   
   
   
   ### Environment, Platform, Device
   Mojave 10.14.6 (18G103)
   iOS 13.3 (iPhone 11 Pro Max)
   
   
   ### Version information
   iOS 13.3 (iPhone 11 Pro Max)
   Cordova CLI
   Xcode
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to