You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
File name and directory name are not getting set correctly for the video taken using StoreVideoOptions
Version Number of Plugin: 3.0.1
Device Tested On: Microsoft Surface Laptop with Windows 10 and Microsoft Lumia Mobile with Windows 10
Simulator Tested On:
Version of VS: 15.2 (26430.14)
Version of Xamarin: 4.5.0.486 (fec6f88)
Versions of other things you are using:
Steps to reproduce the Behavior
Install MediaPlugin to your Xamarin Forms application
Handle Button click to take video specifying StoreVideoOptions with SaveToAlbum, Name and Directory properties set (refer screenshots)
Run the application and click on the button to take video.
Expected Behavior
Video should be captured and stored in the specified directory folder with the specified name.
Actual Behavior
Video is getting stored in "TempState" directory with File name as "CCapture"
Code snippet
private async void Video_Tapped(object sender, EventArgs e)
{
await CrossMedia.Current.Initialize();
if (!CrossMedia.Current.IsCameraAvailable
|| !CrossMedia.Current.IsTakeVideoSupported)
{
await DisplayAlert("No camera", "No camera available on the device!", "Ok");
}
var file = await CrossMedia.Current.TakeVideoAsync(new StoreVideoOptions
{
SaveToAlbum = true,
Quality = VideoQuality.Medium,
Directory = "MyProjectFolder",
Name = $"{DateTime.UtcNow.Ticks}.mp4"
});
if (file == null)
{
return;
}
await DisplayAlert("Video recorded", $"Location: {file.Path}", "Ok");
file.Dispose();
}
Screenshots
The text was updated successfully, but these errors were encountered:
Bug Information
File name and directory name are not getting set correctly for the video taken using StoreVideoOptions
Version Number of Plugin: 3.0.1
Device Tested On: Microsoft Surface Laptop with Windows 10 and Microsoft Lumia Mobile with Windows 10
Simulator Tested On:
Version of VS: 15.2 (26430.14)
Version of Xamarin: 4.5.0.486 (fec6f88)
Versions of other things you are using:
Steps to reproduce the Behavior
Expected Behavior
Video should be captured and stored in the specified directory folder with the specified name.
Actual Behavior
Video is getting stored in "TempState" directory with File name as "CCapture"
Code snippet
Screenshots
The text was updated successfully, but these errors were encountered: