Перейти к содержанию
Fire Monkey от А до Я

AliZairov

Пользователи
  • Постов

    50
  • Зарегистрирован

  • Посещение

  • Победитель дней

    6

Активность репутации

  1. Thanks
    AliZairov получил реакцию от petyaas в Native Android VideoView   
    Привет, Готовы,
     
    unit VideoView; interface uses System.SysUtils, FMX.Types, FMX.Helpers.Android, Androidapi.Helpers, Androidapi.JNI.App, Androidapi.JNI.Net, Androidapi.JNI.VideoView, Androidapi.JNI.Widget; type TVideoView = class(TObject) private FDialog: JDialog; FVideoView: JVideoView; public procedure Play(Source: string); end; implementation { TVideoView } procedure TVideoView.Play(Source: string); begin CallInUIThread( procedure begin FDialog := TJDialog.JavaClass.init(TAndroidHelper.Activity, -1); FDialog.setCancelable(True); FVideoView := TJVideoView.JavaClass.init(TAndroidHelper.Activity); FVideoView.setVideoURI(StrToJURI(Source)); FVideoView.start; FDialog.setContentView(FVideoView); FDialog.show; end); end; end.
  2. Like
    AliZairov получил реакцию от rareMax в Native Android VideoView   
    Привет. Поддерживает прямая и m3u видео ссылку.
  3. Like
    AliZairov получил реакцию от rareMax в Native Android VideoView   
    Здравствуйте. К сожалению, есть некоторые ошибки.

    1) К сожалению, компонент Align и Anchor не реагирует.
    2) Распространяйте объекты в Layouta и это не работает должным образом.
    3) Если размер видео небольшой, он остается черным, как на картинке.
    if TPlatformServices.Current.SupportsPlatformService(IFMXScreenService, FScreenService) then FScale := FScreenService.GetScreenScale else FScale := 1; procedure Load; begin {$IFDEF ANDROID} CallInUIThreadAndWaitFinishing( procedure begin { VideoView } FJVideoParams := TJViewGroup_LayoutParams.JavaClass.init(Round(Width * FScale), Round(Height * FScale)); FJVideoView := TJVideoView.JavaClass.init(TAndroidHelper.Context); FJVideoView.setLayoutParams(FJVideoParams); FJVideoView.setBackgroundColor(TJColor.JavaClass.BLACK); if Visible = True then begin Visible := False; FJVideoView.setVisibility(TJView.JavaClass.VISIBLE); end else begin FJVideoView.setVisibility(TJView.JavaClass.INVISIBLE); end; { Control } FJNativeLayout := TJNativeLayout.JavaClass.Init(TAndroidHelper.Activity, MainActivity.getWindow.getDecorView.getWindowToken); FJNativeLayout.setControl(FJVideoView); FJNativeLayout.setPosition(Round(Position.X * FScale), Round(Position.Y * FScale)); FJNativeLayout.setSize(Round(Width * FScale), Round(Height * FScale)); end); {$ENDIF} end; // http://techslides.com/demos/sample-videos/small.3gp 4) Trackbar не меняет позицию.
    procedure TMain.TrackBar1Change(Sender: TObject); begin Label1.Text := MSToTime(TrackBar1.Value); //V.setPosition(TrackBar1.Value); // Когда вы его активируете, это создает проблемы. end;
  4. Like
    AliZairov получил реакцию от Alialioglu2016 в Использование Instagram api   
    Здравствуйте. Кто-нибудь использует схему instagram api? Dev instagram Хотя я и сделал эксперименты, результат, к сожалению, не очень хороший.
    function getCode: string; begin FRequest.Method := TRESTRequestMethod.rmGET; FRequest.Resource := '/oauth/authorize/'; FRequest.AddParameter('client_id', client_id, TRESTRequestParameterKind.pkGETorPOST); FRequest.AddParameter('redirect_uri', URIEncode(redirect_uri), TRESTRequestParameterKind.pkGETorPOST); FRequest.AddParameter('response_type', 'code', TRESTRequestParameterKind.pkGETorPOST); FRequest.Execute; FRequest.Response.GetSimpleValue('code', Result); end; Проблема заключается в перенаправленном URL-адресе.
    http://your-redirect-uri?code=CODE
  5. Like
    AliZairov получил реакцию от Rusland в Native Android VideoView   
    Здравствуйте. К сожалению, есть некоторые ошибки.

    1) К сожалению, компонент Align и Anchor не реагирует.
    2) Распространяйте объекты в Layouta и это не работает должным образом.
    3) Если размер видео небольшой, он остается черным, как на картинке.
    if TPlatformServices.Current.SupportsPlatformService(IFMXScreenService, FScreenService) then FScale := FScreenService.GetScreenScale else FScale := 1; procedure Load; begin {$IFDEF ANDROID} CallInUIThreadAndWaitFinishing( procedure begin { VideoView } FJVideoParams := TJViewGroup_LayoutParams.JavaClass.init(Round(Width * FScale), Round(Height * FScale)); FJVideoView := TJVideoView.JavaClass.init(TAndroidHelper.Context); FJVideoView.setLayoutParams(FJVideoParams); FJVideoView.setBackgroundColor(TJColor.JavaClass.BLACK); if Visible = True then begin Visible := False; FJVideoView.setVisibility(TJView.JavaClass.VISIBLE); end else begin FJVideoView.setVisibility(TJView.JavaClass.INVISIBLE); end; { Control } FJNativeLayout := TJNativeLayout.JavaClass.Init(TAndroidHelper.Activity, MainActivity.getWindow.getDecorView.getWindowToken); FJNativeLayout.setControl(FJVideoView); FJNativeLayout.setPosition(Round(Position.X * FScale), Round(Position.Y * FScale)); FJNativeLayout.setSize(Round(Width * FScale), Round(Height * FScale)); end); {$ENDIF} end; // http://techslides.com/demos/sample-videos/small.3gp 4) Trackbar не меняет позицию.
    procedure TMain.TrackBar1Change(Sender: TObject); begin Label1.Text := MSToTime(TrackBar1.Value); //V.setPosition(TrackBar1.Value); // Когда вы его активируете, это создает проблемы. end;
  6. Like
    AliZairov получил реакцию от #WAMACO в YouTubeApi VCL & FMX   
    Привет. Никаких официальных YouTube Api компоненты. Только данные с парсинг. Пример доступен в архиве.
  7. Like
    AliZairov получил реакцию от Евгений Корепов в ZeroPlayer for DelphiDX Android   
    Добрый день. Я написал ZeroPlayer небольшой DelphiDX. ZeroPlayer поддерживает прямая и m3u видео ссылку.
     
    https://www.dropbox.com/s/7r2kxs9jazzqo3x/ZeroPlayerDelphi.zip?dl=0
  8. Like
    AliZairov получил реакцию от Равиль Зарипов (ZuBy) в Native Android VideoView   
    Добрый вечер. Скоро будет полностью подготовлен.

  9. Like
    AliZairov получил реакцию от Евгений Корепов в Native Android VideoView   
    Добрый вечер. Скоро будет полностью подготовлен.

  10. Like
    AliZairov получил реакцию от Alex7wrt в Facebook API под Firemonkey   
    Привет. Alcione
  11. Like
    AliZairov получил реакцию от rareMax в Native Android VideoView   
    Добрый вечер. Скоро будет полностью подготовлен.

  12. Like
    AliZairov получил реакцию от Rusland в Native Android VideoView   
    Добрый вечер. Скоро будет полностью подготовлен.

  13. Like
    AliZairov получил реакцию от AngryOwl в Native Android VideoView   
    Добрый вечер. Скоро будет полностью подготовлен.

  14. Like
    AliZairov получил реакцию от Andrey Efimov в Native Android VideoView   
    Добрый вечер. Скоро будет полностью подготовлен.

  15. Like
    AliZairov получил реакцию от ENERGY в Native Android VideoView   
    Привет, Готовы,
     
    unit VideoView; interface uses System.SysUtils, FMX.Types, FMX.Helpers.Android, Androidapi.Helpers, Androidapi.JNI.App, Androidapi.JNI.Net, Androidapi.JNI.VideoView, Androidapi.JNI.Widget; type TVideoView = class(TObject) private FDialog: JDialog; FVideoView: JVideoView; public procedure Play(Source: string); end; implementation { TVideoView } procedure TVideoView.Play(Source: string); begin CallInUIThread( procedure begin FDialog := TJDialog.JavaClass.init(TAndroidHelper.Activity, -1); FDialog.setCancelable(True); FVideoView := TJVideoView.JavaClass.init(TAndroidHelper.Activity); FVideoView.setVideoURI(StrToJURI(Source)); FVideoView.start; FDialog.setContentView(FVideoView); FDialog.show; end); end; end.
  16. Like
    AliZairov получил реакцию от Rusland в "Cant load package..." ошибка   
    Привет. Я сделал установку на CorssOver ( WineHQ ).
  17. Like
    AliZairov получил реакцию от Rusland в Update 2 + iOS 10.2   
    Привет. Hotfix PAServer XCode 8.2 30680
  18. Like
    AliZairov получил реакцию от Kitty в Update 2 + iOS 10.2   
    Привет. Hotfix PAServer XCode 8.2 30680
  19. Like
    AliZairov получил реакцию от Евгений Корепов в CrossVCL Beta XE3-Berlin   
    Hi. New tools for Delphi IDE. Using CrossVcl you focus only on your VCL application and CrossVcl makes it cross-platform.
    This is beta software only for testing purpose. CrossVcl on early stage of development, what are to test in this release:

    * Installation process (CrossVcl creates copy and patches existing on your machine Vcl and Rtl sources, all original sources stay unmodified)
    * Upgrading simple or new Vcl project to macOS (Right Click on Project in Project Inspector)
    * Compilation and deploying of simple project

    Please do not create bug-report if you can't compile or launch big Vcl projects or any third-party controls at this stage.

    Bug reports and suggestions welcome at:
    https://bitbucket.org/crossvcl/crossvcl/issues

    We help you on:
    http://stackoverflow.com/questions/tagged/crossvcl

    Google+:
    https://plus.google.com/109334532832375082802

    Facebook:
    https://www.facebook.com/crossvcl

    Twitter:
    https://twitter.com/VclCross
    Home
  20. Like
    AliZairov получил реакцию от Rusland в Куда сохранять настройки и данные Android-приложения?   
    Hi. SharedPreferences
    uses Androidapi.Helpers, Androidapi.JNI.App, Androidapi.JNI.JavaTypes, Androidapi.JNI.GraphicsContentViewText; var SP: JSharedPreferences; SPE: JSharedPreferences_Editor; procedure TMain.FormShow(Sender: TObject); begin SP := TAndroidHelper.Activity.getSharedPreferences(StringToJString('ZTApp'), 0); IP.Text := JStringToString(SP.getString(StringToJString('IP'), StringToJString('127.0.0.1'))); end; procedure TMain.SaveClick(Sender: TObject); begin SPE := SP.edit; SPE.putString(StringToJString('IP'), StringToJString(IP.Text)); SPE.commit; end;  
  21. Like
    AliZairov отреагировална Andrey Efimov в [Статья][Android] Как получить информацию о потреблении ОЗУ?   
    Ссылка: http://delphifmandroid.blogspot.ru/2017/03/blog-post.html
    Автор: Ефимов Андрей
    Описание:
  22. Like
    AliZairov получил реакцию от Winexcel в CrossVCL Beta XE3-Berlin   
    Hi. New tools for Delphi IDE. Using CrossVcl you focus only on your VCL application and CrossVcl makes it cross-platform.
    This is beta software only for testing purpose. CrossVcl on early stage of development, what are to test in this release:

    * Installation process (CrossVcl creates copy and patches existing on your machine Vcl and Rtl sources, all original sources stay unmodified)
    * Upgrading simple or new Vcl project to macOS (Right Click on Project in Project Inspector)
    * Compilation and deploying of simple project

    Please do not create bug-report if you can't compile or launch big Vcl projects or any third-party controls at this stage.

    Bug reports and suggestions welcome at:
    https://bitbucket.org/crossvcl/crossvcl/issues

    We help you on:
    http://stackoverflow.com/questions/tagged/crossvcl

    Google+:
    https://plus.google.com/109334532832375082802

    Facebook:
    https://www.facebook.com/crossvcl

    Twitter:
    https://twitter.com/VclCross
    Home
  23. Like
    AliZairov получил реакцию от RoschinSpb в CrossVCL Beta XE3-Berlin   
    Hi. New tools for Delphi IDE. Using CrossVcl you focus only on your VCL application and CrossVcl makes it cross-platform.
    This is beta software only for testing purpose. CrossVcl on early stage of development, what are to test in this release:

    * Installation process (CrossVcl creates copy and patches existing on your machine Vcl and Rtl sources, all original sources stay unmodified)
    * Upgrading simple or new Vcl project to macOS (Right Click on Project in Project Inspector)
    * Compilation and deploying of simple project

    Please do not create bug-report if you can't compile or launch big Vcl projects or any third-party controls at this stage.

    Bug reports and suggestions welcome at:
    https://bitbucket.org/crossvcl/crossvcl/issues

    We help you on:
    http://stackoverflow.com/questions/tagged/crossvcl

    Google+:
    https://plus.google.com/109334532832375082802

    Facebook:
    https://www.facebook.com/crossvcl

    Twitter:
    https://twitter.com/VclCross
    Home
  24. Like
    AliZairov получил реакцию от Error в CrossVCL Beta XE3-Berlin   
    Hi. New tools for Delphi IDE. Using CrossVcl you focus only on your VCL application and CrossVcl makes it cross-platform.
    This is beta software only for testing purpose. CrossVcl on early stage of development, what are to test in this release:

    * Installation process (CrossVcl creates copy and patches existing on your machine Vcl and Rtl sources, all original sources stay unmodified)
    * Upgrading simple or new Vcl project to macOS (Right Click on Project in Project Inspector)
    * Compilation and deploying of simple project

    Please do not create bug-report if you can't compile or launch big Vcl projects or any third-party controls at this stage.

    Bug reports and suggestions welcome at:
    https://bitbucket.org/crossvcl/crossvcl/issues

    We help you on:
    http://stackoverflow.com/questions/tagged/crossvcl

    Google+:
    https://plus.google.com/109334532832375082802

    Facebook:
    https://www.facebook.com/crossvcl

    Twitter:
    https://twitter.com/VclCross
    Home
  25. Like
    AliZairov получил реакцию от Rusland в CrossVCL Beta XE3-Berlin   
    Hi. New tools for Delphi IDE. Using CrossVcl you focus only on your VCL application and CrossVcl makes it cross-platform.
    This is beta software only for testing purpose. CrossVcl on early stage of development, what are to test in this release:

    * Installation process (CrossVcl creates copy and patches existing on your machine Vcl and Rtl sources, all original sources stay unmodified)
    * Upgrading simple or new Vcl project to macOS (Right Click on Project in Project Inspector)
    * Compilation and deploying of simple project

    Please do not create bug-report if you can't compile or launch big Vcl projects or any third-party controls at this stage.

    Bug reports and suggestions welcome at:
    https://bitbucket.org/crossvcl/crossvcl/issues

    We help you on:
    http://stackoverflow.com/questions/tagged/crossvcl

    Google+:
    https://plus.google.com/109334532832375082802

    Facebook:
    https://www.facebook.com/crossvcl

    Twitter:
    https://twitter.com/VclCross
    Home
×
×
  • Создать...