Xam.Plugin.Media 4.0.1.5

Media Plugin for Xamarin & Windows

Find the latest at: https://github.com/jamesmontemagno/MediaPlugin

Additional Required Setup (Please Read!)

Android

In your BaseActivity or MainActivity (for Xamarin.Forms) add this code:

Add to Activity:

public override void OnRequestPermissionsResult(int requestCode, string[] permissions, Android.Content.PM.Permission[] grantResults) { Plugin.Permissions.PermissionsImplementation.Current.OnRequestPermissionsResult(requestCode, permissions, grantResults); }

The WRITE_EXTERNAL_STORAGE, READ_EXTERNAL_STORAGE permissions are required, but the library will automatically add this for you. Additionally, if your users are running Marshmallow the Plugin will automatically prompt them for runtime permissions.

Additionally, the following has been added for you: [assembly: UsesFeature("android.hardware.camera", Required = false)] [assembly: UsesFeature("android.hardware.camera.autofocus", Required = false)]

You must also add a few additional configuration files to adhere to the new strict mode:

1.) Add the following to your AndroidManifest.xml inside the tags:

2.) Add a new folder called xml into your Resources folder and add a new XML file called file_paths.xml

Add the following code:

You can read more at: https://developer.android.com/training/camera/photobasics.html

Android Current Activity Setup

This plugin uses the Current Activity Plugin to get access to the current Android Activity. Be sure to complete the full setup if a MainApplication.cs file was not automatically added to your application. Please fully read through the Current Activity Plugin Documentation. At an absolute minimum you must set the following in your Activity's OnCreate method:

CrossCurrentActivity.Current.Init(this, bundle);

It is highly recommended that you use a custom Application that are outlined in the Current Activity Plugin Documentation](https://github.com/jamesmontemagno/CurrentActivityPlugin/blob/master/README.md)

iOS

Your app is required to have keys in your Info.plist for NSCameraUsageDescription and NSPhotoLibraryUsageDescription in order to access the device's camera and photo/video library. If you are using the Video capabilities of the library then you must also add NSMicrophoneUsageDescription. The string that you provide for each of these keys will be displayed to the user when they are prompted to provide permission to access these device features. You can read me here: https://blog.xamarin.com/new-ios-10-privacy-permission-settings/

Such as: NSCameraUsageDescription This app needs access to the camera to take photos. NSPhotoLibraryUsageDescription This app needs access to photos. NSMicrophoneUsageDescription This app needs access to microphone. NSPhotoLibraryAddUsageDescription This app needs access to the photo gallery.

UWP

Set Webcam permission.

Tizen

Please add the following Privileges in tizen-manifest.xml file

http://tizen.org/privilege/appmanager.launch http://tizen.org/privilege/mediastorage

See below for additional instructions. https://developer.tizen.org/development/visual-studio-tools-tizen/tools/tizen-manifest-editor#privileges

No packages depend on Xam.Plugin.Media.

See: https://github.com/jamesmontemagno/MediaPlugin

.NET Standard 1.0

.NET Standard 2.0

UAP 10.0.10240

Tizen 4.0

Xamarin.iOS 1.0

MonoAndroid 7.1

Version Downloads Last updated
6.0.2 39 02/10/2024
6.0.1-beta 30 02/10/2024
6.0.0-beta 23 02/10/2024
5.1.1-beta 28 02/10/2024
5.1.0-beta 28 02/10/2024
5.0.1 26 02/10/2024
5.0.1-beta 27 02/10/2024
5.0.0-beta 17 02/10/2024
4.4.10-beta 17 02/10/2024
4.4.9-beta 32 02/10/2024
4.4.8-beta 32 02/10/2024
4.4.7-beta 22 02/10/2024
4.4.6-beta 30 02/10/2024
4.4.5-beta 19 02/10/2024
4.4.4-beta 18 02/10/2024
4.4.3-beta 27 02/10/2024
4.4.2-beta 27 02/10/2024
4.4.1-beta 31 02/10/2024
4.4.0-beta 27 02/10/2024
4.3.1-beta 24 02/10/2024
4.3.0-beta 21 02/10/2024
4.2.0-beta 20 02/10/2024
4.1.2-beta 31 02/10/2024
4.1.1-beta 24 02/10/2024
4.1.0-beta 22 02/10/2024
4.0.1.5 16 03/24/2020
4.0.1.5-beta 28 02/10/2024
4.0.1.4-beta 20 02/10/2024
4.0.1.1 32 02/10/2024
4.0.1.1-beta 30 02/10/2024
4.0.0.9 17 02/10/2024
4.0.0.9-beta 29 02/10/2024
4.0.0.4-beta 30 02/10/2024
4.0.0.3-beta 18 02/10/2024
4.0.0.1-beta 18 02/10/2024
3.2.1.251-beta 25 02/10/2024
3.2.0.246-beta 29 02/10/2024
3.2.0.245-beta 26 02/10/2024
3.2.0.242-beta 19 02/10/2024
3.1.3.222-beta 28 02/10/2024
3.1.3 32 02/10/2024
3.1.2 29 02/10/2024
3.1.1.203-beta 26 02/10/2024
3.1.1.202-beta 24 02/10/2024
3.1.1 21 02/10/2024
3.1.0.193-beta 19 02/10/2024
3.0.2.188-beta 21 02/10/2024
3.0.2.181-beta 29 02/10/2024
3.0.2.180-beta 27 02/10/2024
3.0.2.175-beta 19 02/10/2024
3.0.2.170-beta 29 02/10/2024
3.0.2.129-beta 22 02/10/2024
3.0.2.118-beta 27 02/10/2024
3.0.2-beta82 29 02/10/2024
3.0.2-beta76 28 02/10/2024
3.0.1 19 02/10/2024
3.0.0.66-alpha 19 02/10/2024
3.0.0.62-alpha 27 02/10/2024
2.7.0.50-beta 29 02/10/2024
2.7.0.46-beta 31 02/10/2024
2.7.0.42-beta 28 02/10/2024
2.7.0.41-beta 20 02/10/2024
2.6.3.30-beta 28 02/10/2024
2.6.3.14-beta 25 02/10/2024
2.6.3.8-beta 27 02/10/2024
2.6.3.6-beta 28 02/10/2024
2.6.3.1-beta 24 02/10/2024
2.6.3-beta 32 02/10/2024
2.6.2 31 02/10/2024
2.6.1 28 02/10/2024
2.6.0 32 02/10/2024
2.5.1-beta40 31 02/10/2024
2.5.1-beta38 20 02/10/2024
2.5.1-beta35 33 02/10/2024
2.3.0 43 02/10/2024
2.2.0 42 02/10/2024
2.1.2 31 02/10/2024
2.0.1 27 02/10/2024
1.0.3 29 02/10/2024
1.0.2 29 02/10/2024
1.0.1 33 02/10/2024
1.0.0 26 02/10/2024