Questions tagged [plugin.media.crossmedia]
21 questions
4
votes
1 answer
Xamarin IOS CrossMediaManager Background video playing
I am using a videoview from https://github.com/Baseflow/XamarinMediaManager ,it works perfectly fine. I want audio to be continued played when the app goes in background or screen is locked, that can be achieved using the method given in this link…

Parminder
- 3,088
- 6
- 37
- 61
3
votes
4 answers
Xamarin Essentials Permissions failing to grant permission
I'm currently writing a Xamarin Forms app which requires use of the camera, in the code below I am requesting the permission using the Xamarin Essentials Permissions which comes back as "Granted"; immediately following that I am requesting use of…

Ben Price
- 61
- 1
- 9
3
votes
0 answers
Sometimes taken picture not get from device
I am creating Project in Xamarin Form PCL. The issue is sometimes and some device picture are not getting back from Android device. I am using Plugin.Media.CrossMedia to take a picture. The first user can take multiple pictures and then, I am…

A.Goutam
- 3,422
- 9
- 42
- 90
2
votes
1 answer
Maui "The current Activity can not be detected. Ensure that you have called Init in your Activity or Application class."
I am using Xam.Plugin.Media nuget package.
await CrossMedia.Current.TakePhotoAsync(new StoreCameraMediaOptions
{
SaveToAlbum = true,
PhotoSize = PhotoSize.MaxWidthHeight,
Name =…

Arup
- 155
- 11
1
vote
2 answers
DirectoryNotFoundException occurred in xamarin forms ios using plugin.media.crossmedia
using (var file = await CrossMedia.Current.TakePhotoAsync(options))
{
.....
}
I am using cross media for take photo in xamarin forms ios(Above code). I am getting this error in app center,
System.IO.DirectoryNotFoundException: Could not find a…

SoftDev
- 277
- 1
- 3
- 13
1
vote
0 answers
CrossMediaManager throws AVAsset loadValuesAsynchronouslyForKeys:completionHandler while playing mp3 remote files in Xamarin Forms IOS
I am trying to play a list of media items with CrossMediaManager. However, in IOS it throws a weired error and doesn't perform playing, while the same code works in Android. If I do pass a single string url or media item then it works, but it…

ARH
- 1,566
- 3
- 25
- 56
1
vote
0 answers
How can I get the actual path of a picked image using CrossMedia in xamarin?
I need to get the actual path of a picked image using CrossMedia library .
When I tryd to get the file path using File.Path I get a temporary path not the actual path.
It also copies the image and gives the image a new name and gives me the path of…

maria nabil
- 141
- 3
- 9
1
vote
0 answers
Xamarin CrossMediaManager Video Only works on the first run
I am using the CrossMediaManager to play video in my tab download folder , the video play path is file:///storage/emulated/0/Download/DilmahStory.mp4
the problem is that when i move the video page to another page and coming back to the video page…

Pan Weerasekara
- 85
- 9
0
votes
2 answers
Page cuts off at Editor entry after loading an image
In my Xamarin forms app, I have a page where you can select or take a photo, add a message and send it to a message board.
XAML Code

JordanChester
- 67
- 7
0
votes
1 answer
Xamarin CrossMediaManager cannot queue from PlayfromResources
I am trying to Queue all MP3 files in Embedded resources using
CrossMediaManager PlayFromAssembly(string, assembly);
Play from assembly only supports string name of single file theres no way of adding multiple files from embedded…

Abdul Rasheed
- 11
- 3
0
votes
0 answers
Importing multiple images from gallery into xamarin forms application and display them on my content page
My use case requires the user to select multiple photos from his device gallery and display the selected images as a gridview inside my xamarin forms application. I already have done the Take photo using the device camera and display the photo taken…

Hari
- 15
- 2
0
votes
0 answers
FileNotFoundException occurred while upload the photo/video using xamarin forms android
We are using xamarin essentials for camera permission. To capture photo/video we are using crossmedia nuget. After capture saved in local path then going to upload the photo/video. While upload the photo/video, I am getting below error in app…

SoftDev
- 277
- 1
- 3
- 13
0
votes
1 answer
How to Play MP3 file from certian position in Xamarin.Forms using CrossMediaManager
I am downloading files to the local storage in my Xamarin Forms application. I am using CrossMediaManager to play those stored local mp3 files. The problem is the player doesn't start playing audio from certain position. It always starts playing…

ARH
- 1,566
- 3
- 25
- 56
0
votes
0 answers
Xamarin.Forms CrossMediaManaer - Video crashes when switched to fullscreen
Everything works fine with Android, and older IOS-versions, but when using IOS version 13.5, the video crashes when switched to fullscreen. The app doesn't crash, there is no exception, and i can restart the video by exiting fullscreen and press…

David Aichinger
- 23
- 3
0
votes
0 answers
Picking image from gallery with Xamarin CrossMedia Plugin causes app termination
I'm suffering with an annoying issue, when I pick a file using xamarin crossmedia plugin, my app freezes and crashs after some minutes.
My code:
async void ImageButton_Clicked(System.Object sender, System.EventArgs e)
{
if (!await…

Éder Rocha
- 1,538
- 11
- 29