Closed boeremak closed 8 years ago
Ok I've found the Media part, I had to add the following:
protected override void OnActivated(IActivatedEventArgs args)
{
Media.Plugin.MediaImplementation.OnFilesPicked(args);
}
To my app.xaml.cs file in my phone project. It still gives the error though.
I haven't seen this at all, you can test out: https://www.nuget.org/packages/Xam.Plugin.Media/2.0.0-alpha2 latest version.
Fixed in 2.0.1
I get these XAML parse errors both with 2.0.1 and 2.1.2:
Exception thrown: 'Windows.UI.Xaml.Markup.XamlParseException' in mscorlib.ni.dll
Exception thrown: 'Windows.UI.Xaml.Markup.XamlParseException' in mscorlib.ni.dll
Exception thrown: 'Windows.UI.Xaml.Markup.XamlParseException' in mscorlib.ni.dll
Exception thrown: 'Windows.UI.Xaml.Markup.XamlParseException' in mscorlib.ni.dll
Any hints on how to solve them?
Look like I am not the only one. I have the same problem with TakePhotoAsync, but PickPhotoAsync works fine.
Appears on: Windows Phone 8.1 RT Xamarin.Forms Emulator
Hi guys. Parsing error is showing up even within latest version (2.3.0) and applies to all Windows platforms. There is probably a typo within XAMLs in nuget version. So if you want to make it work, just download the source from Git and manually add references to Windows projects. It will work fine after then (execpt this issue: https://github.com/jamesmontemagno/Xamarin.Plugins/issues/217)
throws with 2.2 and following code the exception var file = await CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions { Directory = "Sample", Name = "test.jpg" });
Hello,
I am using Xam.Plugin.Media 2.3.0 but still getting XamlParseException when trying to start camera in Windows Phone project. Any solution for it? I am desperated.
Thank you very much
On Windows, make sure your Directory is set to a valid/legal directory or comment out the Directory setting to use the default.
Fixed officially in 2.5.1-beta33! Tested and shipped!
Hi, I've added the media plugin to my PCL and also the Phone version to my Windows Phone 8.1 project. One thing that is not clear is where do I put this: Media.Plugin.MediaImplementation.OnFilesPicked(args)? In the onlaunched events? An example would be nice.
After I try to await the following code:
I get the following exception:
Stacktrace:
It looks like the DMX helper you use on the WinRT platform seems to be the cause, I went over the sourcecode but I am afraid I can't figure out what it might be. I've pasted the XAML from codeplex into the designer and there is nothing that intellisense picks up as being wrong.
I've updated Xamarin forms to the latest versions and I am running VS2015 Community edition.
Or does this error come from me not registering the first line?
the Photopicker does work, just the photo stuff gives an exception.