Transfer the fish [red] recommended controls built android open source project alcinoe

Open Source Address: https://github.com/Zeus64/alcinoe

The control package contains the following controls:

1. OpenGL-based video player implemented ALVideoPlayer.

ALVideoPlayer a video will draw to a TEXTURE. Video can be fully integrated into delphi form, and any required controls can be placed on top, because it supports Z-ORDER. The official delphi video player only form the native video player window on top, and therefore does not support Z-ORDER.

In the use of android ExoPlayer. ExoPlayer support such as a dynamic adaptive HTTP streaming media (DASH), HLS, SmoothStreaming Common Encryption and other functions, MediaPlayer does not support these functions. It is designed to be easily customized and extended. Used in Ios AVPlayer also supports HLS, such as exoplayer.

2. To achieve the built-in controls TEdit / TMemo, support ios and android.

This is important, officials say 10.3 to android built-in controls to achieve TEdit, now we have a useful advance! What are the benefits of built-in controls, of course, is efficiency and no bug. Firemonkey now the TEdit / TMemo there is bug.

3. Efficient doublebuffered firemonkey controls to achieve the native rendering speed

  • Rectangle
  • Circle
  • Text (Can also draw html text on ios/android/win/macos)
  • Glyph
  • etc.

I tried to run the Demo provided by the author, is really very, very fast, the author is not bragging. Delphi comes with a speed of 2 to accompany.

4. Improved control firemonkey

  • ScrollBox
  • TabControl
  • RangeTrackBar

There are other aspects, in particular can see, the above content has been enough to attract I spent!

 In the course of the trial, found an error on android 4.4.4, android 7.1.1 in normal, has submitted a question, I wonder if the author would not be modified to support a lower version of android.

Postscript: On very hard this morning to give correction to solve the problem on android 4.4.4 are:

Find fSurfaceTexture.setOnFrameAvailableListener (FOnFrameAvailableListener, fHandler); changed to the following:

  try
     fSurfaceTexture.setOnFrameAvailableListener(FOnFrameAvailableListener, fHandler);
  except
     fSurfaceTexture.setOnFrameAvailableListener (FOnFrameAvailableListener); // api android <21
  end;

同时,作者也说:But by calling without locking the handle there are crashes in the video ...
Any light on it would help a lot.

You can run on android 4.4.4, so did further testing:

FIG using ALFmxControls left drawing efficiency, an average of nearly 52, right-side view Delphi native rendering efficiency, the average posts 11, nearly 5 to accompany difference.

On my red rice 1S get such efficiency, I really can not think, you know, as a test machine, this is more than three years of machines, can only prove that the author of the controls to achieve too much bad!

Estimates see here, you want to try, really so magical it. Trust me, do not lie to you, try a glance. Anyway, I was ready to start this control in the project, though do not try to say that third-party controls to reduce the amount of maintenance later in the project, but for this open-source controls, it is worth investment.

If you really want to try, you have to be mentally prepared, that is, nearly the entire open-source content 1G size, pull back is not easy, I was pulling for a long time do not come back whole, or Q Friends of trying to pass me. If you want, you can also find me, my QQ: 391879.

2018.8.2, the authors support the Delphi 10.2.3, and updated Demo.

 

Guess you like

Origin www.cnblogs.com/motomsc/p/11979418.html