<div dir="ltr"><div><div><div><div><div><div><div>android runs lua perfectly.<br></div>why we dnt use it in vlc if there is support?<br></div>i do not know how vlc must use in teh propper way the lua scripts ,but long time ago i played with lua in some of my projects and go very good results.<br></div>so why to dnt put it in vlc if is so easy to implemet?<br></div>Whnat i needed to do wqs only to add a.so file in armv abi and to send command to it and load it.( like we need to do with libvlc in android player)<br></div>Please take a look of this page and see how simpel is to run lua scripts from java.<br><br><a href="http://dotnetslackers.com/articles/mobile/Integrate-Lua-into-Your-Android-Games.aspx">http://dotnetslackers.com/articles/mobile/Integrate-Lua-into-Your-Android-Games.aspx</a><br><br></div>you just need to put the .so in libs and add java clases to the big project<br></div>then you can do teh sample:<br><pre>package
com.javaluaexamples;
import android.app.Activity;
import org.keplerproject.luajava.*;
public class startActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LuaState L = LuaStateFactory.newLuaState();
L.openLibs();
L.LdoString("text = 'Hello Android, I am Lua.'");
L.getGlobal("text");
String text = L.toString(-1);
TextView tv = new TextView(this);
tv.setText(text);
setContentView(tv);
}
}<br><br></pre><pre>Is not a need to compile now the libluajava.so you can use existing.<br></pre><pre>If I can use luain a simpel project ,why vlc can not use it?<br></pre><pre>maybe you 'll add suport<br></pre><pre>have a great day all!<br></pre><br></div>