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.
NEW Player for Liveocode on Linux
NEW Player for Liveocode on Linux
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- 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
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
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
-
- Livecode Staff Member
- Posts: 192
- Joined: Thu Apr 18, 2013 2:48 pm
Re: NEW Player for Liveocode on Linux
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)My problem is there is no guide on Livecode builder, so I still can't understand all canvas and text stuff at all.
If there is anything in particular you would like me to not forget to include, please let me know.
Re: NEW Player for Liveocode on Linux
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: (the screnshot didn't get the frame)
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: (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
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- 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
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.
https://www.smplayer.info
It's done in Qt and open source.
shiftLock happens