NEW Player for Liveocode on Linux

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

NEW Player for Liveocode on Linux

Post by MaxV » Thu Feb 22, 2018 6:50 pm

Hi all,
I'd like to write a widget to substitute the player with mplayer (see https://www.mplayerhq.hu/design7/info.html )
Mplayer is cross platform, reads quite all formats and very easy to control (see https://www.mplayerhq.hu/DOCS/tech/slave.txt), and moreover on Linux the standard livecode player can't stop. :(

I started my work on https://github.com/angerangel/playerwidget

My problem is there is no guide on Livecode builder, so I still can't understand all canvas and text stuff at all.

Your valuable help would be for a complete guide on widgets or you can work/fork on github link and edit the lcb file. You can edit the lcb file directly from your browser.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: NEW Player for Liveocode on Linux

Post by [-hh] » Fri Feb 23, 2018 4:29 pm

There is no "shell" or "process" handling in LCB to reach a mplayer binary, except going back and forth to LC Script (but the 'places' where you can do this are changed with every LCB version).
You could try to use the source code of mplayer and FFI, see (esp. the links there):
http://forums.livecode.com/viewtopic.ph ... 10#p153310
shiftLock happens

livecodeali
Livecode Staff Member
Livecode Staff Member
Posts: 192
Joined: Thu Apr 18, 2013 2:48 pm

Re: NEW Player for Liveocode on Linux

Post by livecodeali » Sun Feb 25, 2018 10:42 pm

My problem is there is no guide on Livecode builder, so I still can't understand all canvas and text stuff at all.
Hi Max, I'm currently trying to write a guide on writing lcb extensions (mainly to include various aspects of interfacing with native objects and libraries), but I can see the basic parts are currently pretty underrepresented in the extending livecode guide (the 'pink circle' example)

If there is anything in particular you would like me to not forget to include, please let me know.

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: NEW Player for Liveocode on Linux

Post by MaxV » Tue Feb 27, 2018 2:21 am

I could do less or more the same task with a livecode group, but the benefits of widget are the properties in the property inspector, the other triggers that with a simple copy and paste of a livecode I could not achieve easily.
At the present my idea is to control mplayer to a file socket.
Mplayer can be locked to a windowID, so it's easy about resizing, this is my first attempt with standard livecode:
Schermata2.png
Schermata2.png (7.69 KiB) Viewed 4334 times
(the screnshot didn't get the frame)
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: NEW Player for Liveocode on Linux

Post by [-hh] » Tue Feb 27, 2018 4:29 am

You could try to get info about methods from the source code of this app:
https://www.smplayer.info

It's done in Qt and open source.
shiftLock happens

Post Reply

Return to “LiveCode Builder”