i am trying to make/debug the media plugin in android studio. can i modify the lua code in as? i exported the project with encrypt false but still cannot read the lua code.
No, the exported projected lua code is compiled, you can’t change it easily. Best option: export a player and debug it, you’ll be able to send files from the studio during your debug session.
OK I managed to make it work on android. I have modified the gmedia android code, now you can open any type of files on android (png, jpg, jpeg, mp3, pdf, xxx, ...) If you think that can be useful we can discuss it here and put it on github? Here is the java code, you need to replace it in: C:\Program Files (x86)\Gideros\All Plugins\gmedia\bin\Android\src\com\giderosmobile\android\plugins\media\GMedia.java
if ends_with(path, "png")or ends_with(path, "jpg")or ends_with(path, "jpeg")then
bmp = Bitmap.new(Texture.new(path, true))
bmp:setPosition(0, myappheight - bmp:getHeight())
stage:addChildAt(bmp, 1)elseprint("THIS IS NOT AN IMAGE TYPE, DO SMTG WITH IT")end
Comments
getFile and saveFile not implemented in android
I have modified the gmedia android code, now you can open any type of files on android (png, jpg, jpeg, mp3, pdf, xxx, ...)
If you think that can be useful we can discuss it here and put it on github?
Here is the java code, you need to replace it in:
C:\Program Files (x86)\Gideros\All Plugins\gmedia\bin\Android\src\com\giderosmobile\android\plugins\media\GMedia.java