question

VasanthakumarM-3635 avatar image
0 Votes"
VasanthakumarM-3635 asked JessieZhang-2116 commented

How to Work with Images and Video in single project

Hi Xperts,


I need to Add an Image or Video in Single project , How I can do that one . Here I added sample project . using Rg.popup.plugin or any other idea ?



93333-ezgifcom-gif-maker-1.gif


dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JessieZhang-2116 avatar image
0 Votes"
JessieZhang-2116 answered JessieZhang-2116 commented

Hello,


Welcome to our Microsoft Q&A platform!

For this, you can use nuget Xam.Plugin.Media to achieve this in an app.

This library has a lot of legacy code that is extremely hard to maintain and update to support the latest OSes without a major re-write.

And you can also check the sample included in link MediaPlugin.

When we deploy it on our devide, the result is:

93398-image.png



Best Regards,


Jessie Zhang


If the response is helpful, please click "Accept Answer" and upvote it.



Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (24.5 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can we compress the image or Video using Xamarin.Essential.Filepicker ? @JessieZhang-2116

0 Votes 0 ·

When we check Photo & Video Settings ,we could find we can compressing Photos by specifying multiple options to reduce the size and quality of the photo that is taken or picked. For example:

 var file = await CrossMedia.Current.TakePhotoAsync(new StoreCameraMediaOptions
 {
     PhotoSize = PhotoSize.Custom,
     CustomPhotoSize = 90 //Resize to 90% of original
 });

0 Votes 0 ·

i tired this But i worked in this Package : xamarin.Essential.Filepicker. But I don't have idea to compress image or video here ?

Can you guide me on this package ?

@JessieZhang-2116

0 Votes 0 ·

Yes,current xamarin.Essential.Filepicker don't have such feature. But there is a known issue about this, you can follow it up here: https://github.com/xamarin/Essentials/issues/1640 .

0 Votes 0 ·