The plot thickens.
In LCC 9.x the Linux "Player" object is broken.
However, this is NOT
completely the case in LCC 7.14 for Linux x64
Providing you install the necessary dependencies, then it will indeed play back the video.
I'm testing this in LCC 7.1.4 for Linux in this screenshot.
- video-linux.png (241.35 KiB) Viewed 508 times
So then it makes me wonder if I can isolate the "Player" subroutine from the LCC 7.1.4 Linux engine, and place that into the LCC / OXT Lite (9.6.3 / 9.7.0-dp1) engine...
If I can't, then a cunning plan-B I have is to create a player binary from the LCC 7.1.4 IDE, which can be controlled via the 9.6.3/9.7.0-dp1 engine of OXT lite, so it'll be like a scriptable binary which you can issue player commands to via xtalk script. That would get around the issue of a broken player for Linux.
If you are on Linux, and have those dependencies installed, you can download the test video binary
from here.
Edit 1:
Unfortunately this isn't a 100% magic bullet.
The issue is, as far back as LCC 7.x, seems to be that it calls GTK in a depreciated way. Hopefully that helps someone debug it?
- no-magic-bullet.png (15.84 KiB) Viewed 481 times
Edit 2:
Although that error is triggered, turns out it's not fatal and not what is causing the lockup in the IDE in Linux.
That can be caused by the engine recursively seeking out mplayer. If mplayer isn't installed, it doesn't exit gracefully with an error - it just goes into a loop. With mplayer installed, success (can't believe I missed that) - but I changed distro and that doesn't have mplayer as default.
- doh.png (315.28 KiB) Viewed 470 times
So now, next move is not to include all those dependencies and libraries - as it'd add 240ish MB to the download size of OXT Lite. Rather, I think I'll have an option such as:
- to-add.png (29.14 KiB) Viewed 465 times
I'm thinking about making the video.bin (which is an externalised C++ player currently), possibly an appimage instead (
eventually). That way, if these libraries ever disappear - we won't be stuck for video playback support as they can be included.
None of this is an easy fix though, but at least it seems to work.
However, all the required dependencies seem to be being maintained at the moment, and are in mainstream repos.
You can check if you have all the required dependencies using this stack:
- OXT-vid-deps.png (22.7 KiB) Viewed 456 times
I may be able to refine this down further, for example - I don't think you'd need automake necessarily.