Jump to content
Sign in to follow this  
Vanar

Delphi 12: How to Select an Existing Video from Photos in the FireMonkey iOS App?

Recommended Posts

Tell me, is there an implementation of video selection for iOS?
For example, like selecting images by ActionTakePhotoFromLibrary or TOpenDialog.

Share this post


Link to post
1 minute ago, Vanar said:

Unfortunately, this only works for Android.

It works on Android and iOS.

2 minutes ago, Vanar said:

You yourself commented on the link:

That comment is from 3 years ago, and the implementation has changed since then

Share this post


Link to post
13 minutes ago, Dave Nottage said:

It works on Android and iOS.

That comment is from 3 years ago, and the implementation has changed since then

Thank you
I'll try again

Share this post


Link to post
On 1/31/2024 at 10:59 PM, Dave Nottage said:

Good afternoon!

 

In the example  https://github.com/DelphiWorlds/Kastri/tree/master/Demos/FilesSelector You can’t catch the choice of video file!

 

As I said, I need to select videos for iOS

 

constructor TForm1.Create(AOwner: TComponent);
begin
  FSelector := TFilesSelector.Create;
  FSelector.Title := 'Select a file';
  FSelector.OnComplete := SelectorCompleteHandler;
End;

 

I do this:

 

FSelector.FileKinds := [TFileKind.Photo]; // Only in this case do I see the video in the list
FSelector.Select(TSelectionMode.Content);

 

And for the case [TFileKind.Photo] there is no handler in SelectorCompleteHandler. I can't determine which video I selected, I can't determine the file name.
That's the problem!


I need to understand: what did I choose!

Edited by Vanar

Share this post


Link to post
On 2/3/2024 at 12:32 AM, Vanar said:

And for the case [TFileKind.Photo] there is no handler in SelectorCompleteHandler. I can't determine which video I selected, I can't determine the file name.

For photos, it's via SelectorImageStreamHandler. Videos are yet to be supported - thanks for the reminder 🙂

 

Edit: I've opened this issue in Kastri.

Edited by Dave Nottage
  • Thanks 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×