Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
adding objects to gideros scene which is exported to eclipse — Gideros Forum

adding objects to gideros scene which is exported to eclipse

tugbakayatugbakaya Member
edited March 2013 in General questions
Hi guys, ı exported my project to eclipse. ı will continue with eclipse because ı cannot success adding video to scene on gideros. Now, ı am trying to add a video object to one scene in my project which is exported to eclipse. Is there anybody know how can ı do that?
Tagged:

Comments

  • Hi

    in order to combine both native and gideros code take a look at the

    http://appcodingeasy.com/Gideros-Mobile/AdMob-plugin-for-Android

    and

    http://appcodingeasy.com/Gideros-Mobile/Gideros-Implementing-AdMob-for-Android

    advantage of first method is you can handle native code via lua and that is a good way however in the case you just want to display video on the start [ even before your first screen ] you can also go with second method.

    :)

  • Thank you. I have tried these methods. But when ı put the code

    require "admob"

    admob.loadAd("a1503a4aec3aca3", "banner")
    admob.setAlignment("left", "bottom")

    in my Gideros main. I am gett,ng these errors.


    main.lua:8: module 'admob' not found:
    no field package.preload['admob']
    no file '.\admob.lua'
    no file 'C:\Program Files (x86)\Gideros\lua\admob.lua'
    no file 'C:\Program Files (x86)\Gideros\lua\admob\init.lua'
    no file 'C:\Program Files (x86)\Gideros\admob.lua'
    no file 'C:\Program Files (x86)\Gideros\admob\init.lua'
    no file 'C:\Program Files (x86)\Lua\5.1\lua\admob.luac'
    no file '.\admob.dll'
    no file 'C:\Program Files (x86)\Gideros\admob.dll'
    no file 'C:\Program Files (x86)\Gideros\loadall.dll'



    What can ı do for that?
  • ar2rsawseenar2rsawseen Maintainer
    edited March 2013
    what @hgvyas123 was referencing to is that you have two options. One is to create a plugin as in http://appcodingeasy.com/Gideros-Mobile/AdMob-plugin-for-Android
    Two is to modify exported android project similar to what is here http://appcodingeasy.com/Gideros-Mobile/Gideros-Implementing-AdMob-for-Android

    Both of them are tutorials for implementing ads and can only show you the way/approach to achieve what you want and not the exact goal (as I understood from your first post you don't need admob advertising :) )

    Plugin approach is more difficult, but is much more flexible, as in you could achieve a state where you could even manipulate videos from scene.

    Modifying project approach is easier, but it's completely not flexible, you can not control anything from lua, and do everything only in Java, basically you can't add it to the scene, you would have to manipulate view where Gideros appears and view where your video appears in Java. So based on your needs, this might be difficult if not impossible to achieve what you want this way.
  • My only aim is to add video. I did not do in gideros so ı went through with eclipse. Is there any plugin or way to add video on gideros not in eclipse.?
Sign In or Register to comment.