You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/01/08 00:11:02 UTC
[2/3] git commit: fixed cordova cli add capture plugin not work wp
fixed cordova cli add capture plugin not work wp
1. updated feature name in plugin.xml;
2. updated navigate VideoRecorder.xaml & AudioRecorder.xaml Uri;
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/0186fe89
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/0186fe89
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/0186fe89
Branch: refs/heads/dev
Commit: 0186fe890e61de365be7d748c2891977279485b9
Parents: 66cfd63
Author: Yangtb <ya...@polyvi.com>
Authored: Wed Sep 11 17:32:49 2013 +0800
Committer: Yangtb <ya...@polyvi.com>
Committed: Wed Sep 11 17:33:01 2013 +0800
----------------------------------------------------------------------
src/wp/UI/AudioCaptureTask.cs | 2 +-
src/wp/UI/VideoCaptureTask.cs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/0186fe89/src/wp/UI/AudioCaptureTask.cs
----------------------------------------------------------------------
diff --git a/src/wp/UI/AudioCaptureTask.cs b/src/wp/UI/AudioCaptureTask.cs
index ec31a1a..c7ed2d9 100644
--- a/src/wp/UI/AudioCaptureTask.cs
+++ b/src/wp/UI/AudioCaptureTask.cs
@@ -74,7 +74,7 @@ namespace WPCordovaClassLib.Cordova.UI
root.Navigated += new System.Windows.Navigation.NavigatedEventHandler(NavigationService_Navigated);
- string baseUrl = WPCordovaClassLib.Cordova.Commands.BaseCommand.GetBaseURL();
+ string baseUrl = "/";
// dummy parameter is used to always open a fresh version
root.Navigate(new System.Uri(baseUrl + "Plugins/org.apache.cordova.core.media-capture/AudioRecorder.xaml?dummy=" + Guid.NewGuid().ToString(), UriKind.Relative));
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/0186fe89/src/wp/UI/VideoCaptureTask.cs
----------------------------------------------------------------------
diff --git a/src/wp/UI/VideoCaptureTask.cs b/src/wp/UI/VideoCaptureTask.cs
index 0cac04d..8770189 100644
--- a/src/wp/UI/VideoCaptureTask.cs
+++ b/src/wp/UI/VideoCaptureTask.cs
@@ -74,7 +74,7 @@ namespace WPCordovaClassLib.Cordova.UI
root.Navigated += new System.Windows.Navigation.NavigatedEventHandler(NavigationService_Navigated);
- string baseUrl = WPCordovaClassLib.Cordova.Commands.BaseCommand.GetBaseURL();
+ string baseUrl = "/";
// dummy parameter is used to always open a fresh version
root.Navigate(new System.Uri(baseUrl + "Plugins/org.apache.cordova.core.media-capture/VideoRecorder.xaml?dummy=" + Guid.NewGuid().ToString(), UriKind.Relative));
});