Vanar 2 Posted January 31 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
Dave Nottage 557 Posted January 31 2 hours ago, Vanar said: Tell me, is there an implementation of video selection for iOS? For example, like selecting images by ActionTakePhotoFromLibrary or TOpenDialog. This might be what you are after: https://github.com/DelphiWorlds/Kastri/tree/master/Demos/FilesSelector Share this post Link to post
Vanar 2 Posted February 1 10 hours ago, Dave Nottage said: This might be what you are after: https://github.com/DelphiWorlds/Kastri/tree/master/Demos/FilesSelector Good afternoon Unfortunately, this only works for Android. You yourself commented on the link: https://stackoverflow.com/questions/67172197/select-existing-video-from-photos-in-firemonkey-app-ios-android Share this post Link to post
Dave Nottage 557 Posted February 1 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
Vanar 2 Posted February 1 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
Vanar 2 Posted February 2 (edited) On 1/31/2024 at 10:59 PM, Dave Nottage said: This might be what you are after: https://github.com/DelphiWorlds/Kastri/tree/master/Demos/FilesSelector 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 February 2 by Vanar Share this post Link to post
Dave Nottage 557 Posted February 4 (edited) 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 February 4 by Dave Nottage 1 Share this post Link to post