Page 1 of 5

web in lua

Posted: Wed Jun 19, 2013 12:24 pm
by jjmafiae
can you show php and html in lua?

also can you show a video in love?

Re: web in lua

Posted: Wed Jun 19, 2013 12:29 pm
by raidho36
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.

Re: web in lua

Posted: Wed Jun 19, 2013 1:06 pm
by Robin
You can use .wav files, but those only provide sounds.

Re: web in lua

Posted: Wed Jun 19, 2013 1:09 pm
by jjmafiae
Robin wrote:You can use .wav files, but those only provide sounds.
ups......

Re: web in lua

Posted: Wed Jun 19, 2013 1:17 pm
by Robin
jjmafiae wrote:ups......
Are you referring to the fact that you edited your post to exclude any mention of .wav files?

Re: web in lua

Posted: Wed Jun 19, 2013 1:20 pm
by jjmafiae
Robin wrote:
jjmafiae wrote:ups......
Are you referring to the fact that you edited your post to exclude any mention of .wav files?
i got too many board issues thingys maybe because my head hurts today, i got hit by that baseball like thing :?

Re: web in lua

Posted: Wed Jun 19, 2013 1:42 pm
by OmarShehata
jjmafiae wrote:
Robin wrote:
jjmafiae wrote:ups......
Are you referring to the fact that you edited your post to exclude any mention of .wav files?
i got too many board issues thingys maybe because my head hurts today, i got hit by that baseball like thing :?
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.

Re: web in lua

Posted: Wed Jun 19, 2013 2:08 pm
by jjmafiae
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.
sorry but my head is very damaged today so i dont think alot :(

Re: nothing here continue scrolling!

Posted: Wed Jun 19, 2013 2:32 pm
by Robin
So why are you spending today on this forum then? Get some rest. See a doctor if you haven't already.

Re: nothing here continue scrolling!

Posted: Wed Jun 19, 2013 2:49 pm
by jjmafiae
Robin wrote:So why are you spending today on this forum then? Get some rest. See a doctor if you haven't already.
a doctor isnt needed but im not going to post more stupid stuff today but tomorrow better stuff will come :ultrahappy: