Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-5054

cordova-plugin-media-capture crash on wp8

    XMLWordPrintableJSON

Details

    Description

      1.use Cordova CLI create WP8 template project, add plugin cordova-plugin-media-capture.
      2.then add the captureAudio Example.html(http://cordova.apache.org/docs/en/3.0.0/cordova_media_capture_capture.md.html#Capture)
      when i run this project, click "CaptureAudio" there is a carsh.
      i debug in vs2012,there is the exception log!

      stackTrace:
      at System.Windows.Navigation.NavigationService.Navigate(Uri source)
      uri:

      {./CordovaLib/UI/AudioRecorder.xaml?dummy=bc51b4bf-8798-46ee-a2a6-cad51bd23401}

      exception msg:
      Navigation is only supported to relative URIs that are fragments, or begin with '/', or which contain ';component/'.
      Parameter name: uri

      it's also crash, when excute "CaptureVideo" !

      there is the crash reason caused crash, bad navigate uri.

      AudioCaptureTask.cs line 79
      root.Navigate(new System.Uri(baseUrl + "CordovaLib/UI/AudioRecorder.xaml?dummy=" + Guid.NewGuid().ToString(), UriKind.Relative));

      VideoCaptureTask.cs line 79.
      root.Navigate(new System.Uri(baseUrl + "CordovaLib/UI/VideoRecorder.xaml?dummy=" + Guid.NewGuid().ToString(), UriKind.Relative));

      Attachments

        Issue Links

          Activity

            People

              purplecabbage Jesse MacFadyen
              zero TianBo Yang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: