MediaPlugin | Take & Pick Photos and Video Plugin for Xamarin and Windows | Form library

 by   jamesmontemagno C# Version: v6.0.1.1 License: MIT

kandi X-RAY | MediaPlugin Summary

kandi X-RAY | MediaPlugin Summary

MediaPlugin is a C# library typically used in User Interface, Form, Xamarin applications. MediaPlugin has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Take & Pick Photos and Video Plugin for Xamarin and Windows
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              MediaPlugin has a low active ecosystem.
              It has 699 star(s) with 356 fork(s). There are 66 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 188 open issues and 664 have been closed. On average issues are closed in 512 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of MediaPlugin is v6.0.1.1

            kandi-Quality Quality

              MediaPlugin has 0 bugs and 0 code smells.

            kandi-Security Security

              MediaPlugin has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              MediaPlugin code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              MediaPlugin is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              MediaPlugin releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              MediaPlugin saves you 302 person hours of effort in developing the same functionality from scratch.
              It has 728 lines of code, 0 functions and 81 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of MediaPlugin
            Get all kandi verified functions for this library.

            MediaPlugin Key Features

            No Key Features are available at this moment for MediaPlugin.

            MediaPlugin Examples and Code Snippets

            No Code Snippets are available at this moment for MediaPlugin.

            Community Discussions

            QUESTION

            Xamarin.Forms: Using open source code instead of the nuget package to debug
            Asked 2021-May-28 at 14:12

            I am using this nuget package

            https://github.com/jamesmontemagno/MediaPlugin

            It is available for both ios and android in pcl.

            I am using it to make videos in my app.

            Unfortunately, it has issues on iOS that are inside the project, not inside my code.

            I am therefore trying to debug the project, not just implement the nuget library.

            It does work fine on Android, so all I want to change is the iOS part.

            Unfortunately, I dont know how to insert the same library when it isnt a nuget package but just the solution and also how to then adress it from pcl code. I havent found a solution on google, but probably I dont know how to describe the problem well enought.

            How can I debug an open source nuget package?

            Thank you

            ...

            ANSWER

            Answered 2021-May-28 at 14:12
            1. Download or clone the src code,
            2. Go to your project in VS,
            3. Right click on your solution, choose Add -> Existing project,
            4. Navigate to MediaPlugin-master\src\Media.Plugin and choose Media.Plugin.csproj file,
            5. Right click on your iOS project (or whatever project where you use the plugin), choose Add -> Reference,
            6. Check Media.Plugin and click OK,
            7. Now you should be able to use the plugin in your project code after adding using Plugin.Media; (and the code of the plugin will be available to you).

            Source https://stackoverflow.com/questions/67735805

            QUESTION

            Xamarin forms: How to implement image cropping after selecting a picture from gallery or camera
            Asked 2021-Feb-01 at 18:11

            I am using MediaPlugin for opening Camera and Gallery to select pictures. After selecting a picture, I need to crop it before setting it on the UI. I have tried AllowCropping = true in the camera, but it works only for windows and ios. For the camera in android and gallery on all platforms (android, ios, and windows) there is no crop option.

            I tried ImageCropper.Forms package to implement the image cropping feature.

            My Code:

            ...

            ANSWER

            Answered 2021-Jan-20 at 12:21

            First of all, Add ImageCropper.Forms.Fix.v2 nuget package to your project.

            Then, if you use AndroidX, please change the code in tag of AndroidManifest.xaml

            Source https://stackoverflow.com/questions/65805152

            QUESTION

            ImageCropper.Forms: How to get the stream & path value of the final cropped image?
            Asked 2021-Jan-21 at 13:55

            I am using ImageCropper.Forms for cropping the image selected from the camera and gallery.

            My Code:

            ...

            ANSWER

            Answered 2021-Jan-21 at 13:06

            as shown in the docs, use a Success handler

            Source https://stackoverflow.com/questions/65827641

            QUESTION

            Saving images and retrieving them Xamarin iOS
            Asked 2021-Jan-20 at 06:01

            So after recently updating dependencies including Xamarin Forms, I can no longer see saved images within our app in iOS. We use https://github.com/jamesmontemagno/MediaPlugin for adding/taking pictures and have even tried specific OS file writes to environment folder:

            iOS specific for saving an image:

            ...

            ANSWER

            Answered 2021-Jan-20 at 06:01

            Old path:

            /data/user/0/com.company.ourapp/files/Pictures/

            It is obviously an Android file path instead of a iOS file Path. Android's file system is different from iOS.

            Here is the new image path:

            "/var/mobile/Containers/Data/Application/215E777E-A624-487E-B687-6647F8C0D1DC/Documents/01_18_2021_04_24_07_98524.jpg"

            This is the right path to iOS document folder in sandbox. See this document about the Application directories in iOS.

            I think you should distinguish iOS and Android when retrieving the images.

            Which essentially makes it impossible for us to see pictures taken from a previous build/version of the app.

            If the path really changes with different versions, you can get the app version number at runtime and give different filePath to different version.

            (While I think your problem is the difference between iOS and Android file path.)

            Source https://stackoverflow.com/questions/65799411

            QUESTION

            ImageCropper.Forms throws: "Method not found
            Asked 2020-Jun-07 at 02:44

            Ive followed the instructions. MediaPlugin is fully installed in all three projects. Now, I am calling this:

            ...

            ANSWER

            Answered 2020-Jun-07 at 02:44

            In iOS 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.

            Such as :

            Source https://stackoverflow.com/questions/62229940

            QUESTION

            System.TypeLoadException: 'Could not resolve type with token 010000a0 from typeref (expected class 'Camera' in assembly '')'
            Asked 2020-May-21 at 07:17

            I was following the documentation here https://github.com/jamesmontemagno/MediaPlugin but still encountered this issue.

            Any ideas?

            error

            Update: I got it working already. Xamarin Forms and Xamarin Essentials packages under Android Project must also be updated. Here's a working one: https://github.com/arnelirobles/AppTestCamera

            ...

            ANSWER

            Answered 2020-May-21 at 07:17

            Update: I got it working already. It appears that every time I create a Xamarin Forms Project it doesn't use the latest package version on Xamarin.Form and Xamarin.Essentials.

            To resolve here's what I did. Via Nuget Package Manager

            Xamarin Forms Project 1. Install Package Xam.Plugin.Media (5.0.1) 2. Update Xamarin.Forms Package (4.6.0.800) 3. Update Xamarin.Essentials Package (1.5.3.2)

            Xamarin Android Project 1. Update Xamarin.Forms Package (4.6.0.800) 2. Update Xamarin.Essentials Package (1.5.3.2)

            Xamarin.Forms and Xamarin.Essentials packages under Android Project must also be updated.

            Here's a working one: https://github.com/arnelirobles/AppTestCamera

            Source https://stackoverflow.com/questions/61889362

            QUESTION

            Xamarin.Form It is possible insert camera view into view, like Instagram
            Asked 2020-May-05 at 00:44

            Is it possible with xamarin.form , to create an interface for capturing or selecting an image like on Instagram.

            it would be a square image like on Instagram. I tested MediaPlugin, but it just opens the camera and I can't insert it into a view.

            ...

            ANSWER

            Answered 2020-May-05 at 00:44

            You should create a custom renderer.

            First create a view in your share project, like this:

            Source https://stackoverflow.com/questions/61600310

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install MediaPlugin

            Available on NuGet: http://www.nuget.org/packages/Xam.Plugin.Media
            Install into your .NET Standard project and Client projects.
            Please see the additional setup for each platforms permissions.
            CI NuGet Feed: http://myget.org/F/xamarin-plugins
            This plugin uses the Xamarin.Essentials, please follow the setup guide: http://aka.ms/essentials-getstarted.
            By default, the library adds android.hardware.camera and android.hardware.camera.autofocus to your apps manifest as optional features. It is your responsbility to check whether your device supports the hardware before using it. If instead you'd like Google Play to filter out devices without the required hardware, add the following to your AssemblyInfo.cs file in your Android project:. 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. If you want to "SaveToGallery" then you must add the NSPhotoLibraryAddUsageDescription key into your info.plist. 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: New iOS 10 Privacy Permission Settings. If you want the dialogs to be translated you must support the specific languages in your app. Read the iOS Localization Guide.

            Support

            All I have ever asked is to be active by submitting bugs, features, and sending those pull requests down! Want to go further? Make sure to subscribe to my weekly development podcast Merge Conflict, where I talk all about awesome Xamarin goodies and you can optionally support the show by becoming a supporter on Patreon.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

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

          • CLI

            gh repo clone jamesmontemagno/MediaPlugin

          • sshUrl

            git@github.com:jamesmontemagno/MediaPlugin.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Form Libraries

            react-hook-form

            by react-hook-form

            black

            by psf

            redux-form

            by redux-form

            simple_form

            by heartcombo

            formily

            by alibaba

            Try Top Libraries by jamesmontemagno

            Hanselman.Forms

            by jamesmontemagnoC#

            monkey-cache

            by jamesmontemagnoC#

            mvvm-helpers

            by jamesmontemagnoC#

            InAppBillingPlugin

            by jamesmontemagnoC#

            SettingsPlugin

            by jamesmontemagnoC#