can you show php and html in lua?
also can you show a video in love?
web in lua
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
web in lua
Last edited by jjmafiae on Sat Jun 22, 2013 7:39 pm, edited 3 times in total.
Re: web in lua
OP's question was:
How can one display PHP or HTML file in love2d, and how can one display a video clip?
You can't display PHP other than plain text in client, to actually process it you need php interpereter installed (which generates you HTML). And to display HTML you need to use HTML rendering engine, like Gecko. But you can simply request system-installed browser to display certain web page. If you don't want any special stuffa and only want to read text from the internet, Lua's network library provides a couple of functions to access web pages, that you can then parse and display via your game's GUI.
As far as I see it, love2d does not provides any video media file reading and displaying functions. Not to mention Lua itself, it doesn't do that by design.
How can one display PHP or HTML file in love2d, and how can one display a video clip?
You can't display PHP other than plain text in client, to actually process it you need php interpereter installed (which generates you HTML). And to display HTML you need to use HTML rendering engine, like Gecko. But you can simply request system-installed browser to display certain web page. If you don't want any special stuffa and only want to read text from the internet, Lua's network library provides a couple of functions to access web pages, that you can then parse and display via your game's GUI.
As far as I see it, love2d does not provides any video media file reading and displaying functions. Not to mention Lua itself, it doesn't do that by design.
Last edited by raidho36 on Wed Jun 19, 2013 3:26 pm, edited 2 times in total.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: web in lua
You can use .wav files, but those only provide sounds.
Help us help you: attach a .love.
Re: web in lua
ups......Robin wrote:You can use .wav files, but those only provide sounds.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: web in lua
Are you referring to the fact that you edited your post to exclude any mention of .wav files?jjmafiae wrote:ups......
Help us help you: attach a .love.
Re: web in lua
i got too many board issues thingys maybe because my head hurts today, i got hit by that baseball like thingRobin wrote:Are you referring to the fact that you edited your post to exclude any mention of .wav files?jjmafiae wrote:ups......
- OmarShehata
- Party member
- Posts: 259
- Joined: Tue May 29, 2012 6:46 pm
- Location: Egypt
- Contact:
Re: web in lua
You really shouldn't just remove your post like that after your question was answered. Other people may have had the same issue and may find this thread as their answer. Removing it also just confuses the discussion.jjmafiae wrote:i got too many board issues thingys maybe because my head hurts today, i got hit by that baseball like thingRobin wrote:Are you referring to the fact that you edited your post to exclude any mention of .wav files?jjmafiae wrote:ups......
Re: web in lua
sorry but my head is very damaged today so i dont think alotYou really shouldn't just remove your post like that after your question was answered. Other people may have had the same issue and may find this thread as their answer. Removing it also just confuses the discussion.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: nothing here continue scrolling!
So why are you spending today on this forum then? Get some rest. See a doctor if you haven't already.
Help us help you: attach a .love.
Re: nothing here continue scrolling!
a doctor isnt needed but im not going to post more stupid stuff today but tomorrow better stuff will comeRobin wrote:So why are you spending today on this forum then? Get some rest. See a doctor if you haven't already.
Who is online
Users browsing this forum: Ahrefs [Bot] and 4 guests