MagicFoundation / Alcinoe

Alcinoe Component Library For Delphi. Full opengl video player, WebRTC delphi wrapper, native ios/android TEdit, Improuved firemonkey controls, Firebase cloud messaging, Android/ios facebook sdk login, Json/Bson Parser, ImageMagick wrapper, MongoDb client And much more
Apache License 2.0
972 stars 211 forks source link

Where is Delphi 11 dpk? #248

Closed kabiri closed 1 year ago

kabiri commented 1 year ago

Where is Delphi 11 dpk?

kabiri commented 1 year ago

By reviewing the messages of users, I came to the conclusion that this project is dead. I spent several hours and updated the project for Delphi 11. Of course, I was looking for video playback, unfortunately, the code is not written for Windows, and on Android, the program closes immediately when playing, and I could not use it. Maybe I needed to add a Java library to the program that I did not know about.

Zeus64 commented 1 year ago

Hello, the migration to Alexandria (11.2) is in progress (75% done). the final delivery with all tests passed is expected before the end of this month

kabiri commented 1 year ago

I'm so glad you answered and I'm even more glad you're developing it. If you need help in the field of testing or coding, I can help (of course, my English is weak)

Anyway, for my problem with Delphi 11.2 and Android 12 I added the following Java libraries to the project: exoplayer-core.jar exoplayer-dash.jar exoplayer-hls.jar exoplayer-smoothstreaming.jar exoplayer-ui.jar

Everything seems to be fine, but I don't see the video when playing, but the sound is playing. And it displays incomprehensible numbers on the top and left side.

Zeus64 commented 1 year ago

yes it's quite normal it's not work on Alexandria. Just wait few day the alexandria version

kabiri commented 1 year ago

OK Thanks

kabiri commented 1 year ago

yes it's quite normal it's not work on Alexandria. Just wait few day the alexandria version

hello dear @Zeus64 What about the alexandria version?

kabiri commented 1 year ago

hello dear @Zeus64 i run update for D11_2 but I don't see the video when playing, but the sound is playing. And it displays incomprehensible numbers on the top and left side. Are there any new changes to fix this? Thanks

kabiri commented 1 year ago

Hello dear @Zeus64 What is the percentage of project readiness for 11.2?

Zeus64 commented 1 year ago

I m actually working on it, i m right now in the process to upgrading all jar dependencies to the latest version. quite complicated with google that split their jar (androidx, firebase, etc.) by dozen, hundred even in their last versions

kabiri commented 1 year ago

Thankful Do not be tired.

kabiri commented 1 year ago

hello dear @Zeus64 What about the alexandria version? We are waiting.

Zeus64 commented 1 year ago

Still working on it, I really hope this week. right now the migration is done, i m just making all demo working in alexandria. What take me very long is that I built a new tool to auto import AAR in delphi. so that now I can easyly upgrade the dependancies to the very last

kabiri commented 1 year ago

Very good. So we have to wait until the weekend. Excited to see this tool as well.

RDP1974 commented 1 year ago

hi, do you have updated webRTC libraries to the latest stable build? thank you

Il giorno 21 nov 2022, alle ore 10:35, kabiri @.***> ha scritto:



Very good. So we have to wait until the weekend. Excited to see this tool as well.

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMagicFoundation%2FAlcinoe%2Fissues%2F248%23issuecomment-1321764103&data=05%7C01%7C%7C2bc0189257c340a46fb508dacba3a807%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638046201005990437%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ZfpEbqZn4YLX7X%2FHntFGTbuotH5vmElcoQjVifgOVFA%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FASJYYIZGHOQVWDJ47RDXW4TWJM64FANCNFSM6AAAAAAQPN4UVA&data=05%7C01%7C%7C2bc0189257c340a46fb508dacba3a807%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638046201005990437%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qyrYtPlxnQicsuJJUXtE%2BufhSHWZgZwnniXnK6DA2oo%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Zeus64 commented 1 year ago

Regarding webrtc no I do not planned yet to update it to the very last one. Their is very few (in fact none) dependencies in webrtc and it's very hard job to update this library for very few benefice right now.

gonzzzales commented 1 year ago

@Zeus64, Your work is not finished yet? I tryed to use TAlTabControl for Android, but unfortunatly have error [DCC Error] FMX.Presentation.Android.Style.pas(27): E2291 Missing implementation of interface method JRunnable.run

Thanks a lot for your work!!!!

kabiri commented 1 year ago

Hi dear @Zeus64 Is the update finished? Can it be used now?

firemen01 commented 1 year ago

not yet. will be by the end of the week. I just need to figure out what month and what year ((

Zeus64 commented 1 year ago

I m sorry I m in the process to migrate the google firebase to the very last version and as always with free tools offered by google/apple you need to redo everything :( so it's took me much more time. actually the version in the master must work with alexandria, what problem do you encounter ?

firemen01 commented 1 year ago

delphi 11.2 where is it described: TALConsoleColor = TALConsoleColor.ccDarkWhite; ALWriteln(AStr, AForegroundColor); replace to TColor

more errors Build alcinoe-webrtc.jar and everything below (but I don't need them)

applied the patch Alexandria_11_2.patch, add FMX folder, unable to build project: [DCC Error] FMX.Presentation.Android.Style.pas(25): E2291 Missing implementation of interface method JRunnable.run [DCC Fatal Error] FMX.Controls.Presentation.pas(387): F2063 Could not compile used unit 'FMX.Presentation.Android.Style.pas'

until I use the patch FMX.Platform.UI.Android.pas (TRender = class(TJavaLocal, JChoreographer_FrameCallback))

I only need a video player. how to assemble exoplayer-core... not clear at all taken from old releases ExoPlayer*.jar

finally earned a video player on 11.2 ! :)

Zeus64 commented 1 year ago

I just corrected in the master the problem you encounter with FMX.Presentation.Android.Style.pas. can you update and try again to launch Alcinoe\Embarcadero\Alexandria\11_2\Update.bat ?

kabiri commented 1 year ago

i want use VideoPlayer but not work

Zeus64 commented 1 year ago

@kabiri What not work exactly? do you have any error message ?

kabiri commented 1 year ago

@Zeus64 in delphi show this error : Project Project1.apk raised exception class EJNI with message 'Java type JDefaultBandwidthMeter could not be found'.

Zeus64 commented 1 year ago

you need to include the jar of com.google.android.exoplayer:2.6.1 in your project

Note: can you try to compile Alcinoe\Tools\AndroidMerger and use it (AndroidMerger.exe) to add the jar in your project ? it's a new tool i have just made for this purpose. else you can add it manually

Zeus64 commented 1 year ago

else find the jar attached com.google.android.exoplayer.zip

kabiri commented 1 year ago

Thanks I will try and let you know

kabiri commented 1 year ago

you need to include the jar of com.google.android.exoplayer:2.6.1 in your project

Note: can you try to compile Alcinoe\Tools\AndroidMerger and use it (AndroidMerger.exe) to add the jar in your project ? it's a new tool i have just made for this purpose. else you can add it manually

@Zeus64 AndroidMerger show this error : Project AndroidMerger.exe raised exception class Exception with message 'Unknown library: ....\libraries\jar\android.arch.core\arch-core-runtime-1.1.1.aar'.

kabiri commented 1 year ago

else find the jar attached com.google.android.exoplayer.zip

It only has sound and the image is like this:

‌Before running Update.bat

photo_2022-12-20_12-55-13 photo_2022-12-20_12-55-18

‌After running Update.bat

photo_2022-12-20_13-04-57

Zeus64 commented 1 year ago

look like you didn't include in the search path : Alcinoe\Embarcadero\Alexandria\11_2\fmx\ regarding the AndroidMerger can you show me the command line you use ?

kabiri commented 1 year ago

@Zeus64 I added the directions. Project -> Options -> Delphi Compiler -> Search path to : ($Alcinoe_base)\Embarcadero\Alexandria\11_2\fmx\ ($Alcinoe_base)\Embarcadero\Alexandria\11_2\rtl ($Alcinoe_base)\Embarcadero\Alexandria\11_2\rtl\android

in select target to : All Configuration - Android 64 bit platform

But there was no difference.

Zeus64 commented 1 year ago

stupid question, but is there some files in ($Alcinoe_base)\Embarcadero\Alexandria\11_2\fmx ? did you launch ($Alcinoe_base)\Embarcadero\Alexandria\11_2\Update.bat ?

firemen01 commented 1 year ago

broke the Alexandria_11_2.patch )) Update.bat --> error: corrupt path ... I'll try to find the reason later.

kabiri commented 1 year ago

Yes i define ($Alcinoe_base) to H:\Component\D11\alcinoe I changed them to be more sure H:\Component\D11\alcinoe\Embarcadero\Alexandria\11_2\fmx H:\Component\D11\alcinoe\Embarcadero\Alexandria\11_2\rtl H:\Component\D11\alcinoe\Embarcadero\Alexandria\11_2\rtl\android

But there was no difference.

Zeus64 commented 1 year ago

@firemen01 that strange work well here need more info regarding the error

Zeus64 commented 1 year ago

@kabiri I will take a look at it

firemen01 commented 1 year ago

I don’t understand, I already broke my head, after applying the patch, the Androidapi.Jni deteriorates. (?{$HINTS OFF}{) in the patch itself, I don’t see at all that this file would be patched. in the delphi folder it is normal

?{$HINTS OFF}{ {} { } { CodeGear Delphi Runtime Library } { Copyright(c) 2013-2022 Embarcadero Technologies, Inc. } { All rights reserved } { } {}

unit Androidapi.Jni;

Zeus64 commented 1 year ago

yes I added the {$HINTS OFF}{ at the beginning of ALL patched files to avoid to pollute our board with warning connected to the emb delphi sources code that we cannot do too much about it.

REM add <UTF8BOM>{$HINTS OFF}{ at the beginning of each .pas
SET TmpFileName=%ProjectDir%\~temp.pas
set "RemoveUTF8BOM=(pause & pause & pause)>nul"
for /f "delims=" %%a IN ('dir /b /s %ProjectDir%\*.pas') do (
  IF EXIST "%TmpFileName%" del "%TmpFileName%"
  IF EXIST "%TmpFileName%" goto ERROR
  echo {$HINTS OFF}{>"%TmpFileName%"
  type "%%a">>"%TmpFileName%"
  del "%%a"
  move "%TmpFileName%" "%%a" >nul
)

normally your Androidapi.Jni must look like :

{$HINTS OFF}{ {*******************************************************} { } { CodeGear Delphi Runtime Library } { Copyright(c) 2013-2022 Embarcadero Technologies, Inc. } { All rights reserved } { } {*******************************************************} and it must work good, as the {$HINTS OFF}{ must not change anything except hide the warning

firemen01 commented 1 year ago

I got it, thanks, it's working now! I just copied Update.bat from the browser (button copy raw) and when I pasted it, for some reason, a question mark was added at the beginning. echo ?{$HINTS OFF}{>"%TmpFileName%"

it would be nice to do a check for the presence of folders, since, for example, I did not install iOS:

IF EXIST "%EmbSourceDir%\rtl\ios" ( echo Copy "%EmbSourceDir%\rtl\ios" to "%ProjectDir%\rtl\ios" xcopy "%EmbSourceDir%\rtl\ios" "%ProjectDir%\rtl\ios" IF ERRORLEVEL 1 goto ERROR echo. )

also check the existence of the folder in the patcher.

good luck!

Zeus64 commented 1 year ago

@firemen01 done, i correct this in the last version you can try to update your repository

kabiri commented 1 year ago

@kabiri I will take a look at it

@Zeus64 I am still waiting

firemen01 commented 1 year ago

photo_2022-12-22_13-16-45

11.2 On some video files, a green bar appears, usually on the right, what does this mean? I did not notice this on 10.4.2

Zeus64 commented 1 year ago

Hmm, this must be investigated it's strange because as far as I know nothing change regarding this and 11.2. you are on ios or android? I finish the migration of firebase today and then i will migrate the exoplayer to the very last one.

firemen01 commented 1 year ago

android, thanks!

kabiri commented 1 year ago

Merry Christmas dear @Zeus64 Do you have a solution for my problem?

firemen01 commented 1 year ago

if the resolution of the video file is not proportional to the dimensions of the canvas, then the non-proportional part is painted over in green. for example stripes appear on video files with resolution: 1280x720, 1920x880

Zeus64 commented 1 year ago

Hello, I close this ticket, now alcinoe is fully ready for Alexandria 11.2 and use the very last version of jars (exoplayer). If something wrong please feel free to reopen a ticket