Home Get video from medialibrary IOS
Reply: 0

Get video from medialibrary IOS

user1136
1#
user1136 Published in May 26, 2018, 7:46 am

I have this code to get video from medialibrary but i can't play it.

 var
      Service:IFMXVideoManagerService;

    begin
      if TPlatformServices.Current.SupportsPlatformService(IFMXVideoManagerService,
        IInterface(Service)) then
      begin
        Service.GetVideoFromLibrary;
      end;

Help me to get the name of the file or advise the method for playing videos from media library in Delphi FMX IOS

Update:

I found this sample but only got image even you select video from medialibrary. Or may be i wrong?

 var
      ImageService: IFMXTakenImageService;
      Params: TParamsPhotoQuery;
    begin
      if TPlatformServices.Current.SupportsPlatformService(IFMXTakenImageService,
        IInterface(ImageService)) then
      begin
        Params.RequiredResolution := TSize.Create(640, 640);
        Params.OnDidFinishTaking := DoDidFinish;
        ImageService.TakeImageFromLibrary(ScanfromImage, Params);

      end;

    end;

    procedure TMainForm.DoDidFinish(Image: TBitmap);
    begin

    end;

Any suggestions?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.53326 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO