web in lua

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
jjmafiae
Party member
Posts: 1333
Joined: Tue Jul 24, 2012 8:22 am

web in lua

Post by jjmafiae » Wed Jun 19, 2013 12:24 pm

can you show php and html in lua?

also can you show a video in love?
Last edited by jjmafiae on Sat Jun 22, 2013 7:39 pm, edited 3 times in total.

User avatar
raidho36
Party member
Posts: 1868
Joined: Mon Jun 17, 2013 12:00 pm

Re: web in lua

Post by raidho36 » Wed Jun 19, 2013 12:29 pm

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.
Last edited by raidho36 on Wed Jun 19, 2013 3:26 pm, edited 2 times in total.

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: web in lua

Post by Robin » Wed Jun 19, 2013 1:06 pm

You can use .wav files, but those only provide sounds.
Help us help you: attach a .love.

jjmafiae
Party member
Posts: 1333
Joined: Tue Jul 24, 2012 8:22 am

Re: web in lua

Post by jjmafiae » Wed Jun 19, 2013 1:09 pm

Robin wrote:You can use .wav files, but those only provide sounds.
ups......

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: web in lua

Post by Robin » Wed Jun 19, 2013 1:17 pm

jjmafiae wrote:ups......
Are you referring to the fact that you edited your post to exclude any mention of .wav files?
Help us help you: attach a .love.

jjmafiae
Party member
Posts: 1333
Joined: Tue Jul 24, 2012 8:22 am

Re: web in lua

Post by jjmafiae » Wed Jun 19, 2013 1:20 pm

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 :?

User avatar
OmarShehata
Party member
Posts: 259
Joined: Tue May 29, 2012 6:46 pm
Location: Egypt
Contact:

Re: web in lua

Post by OmarShehata » Wed Jun 19, 2013 1:42 pm

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.

jjmafiae
Party member
Posts: 1333
Joined: Tue Jul 24, 2012 8:22 am

Re: web in lua

Post by jjmafiae » Wed Jun 19, 2013 2:08 pm

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 :(

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: nothing here continue scrolling!

Post by Robin » Wed Jun 19, 2013 2:32 pm

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.

jjmafiae
Party member
Posts: 1333
Joined: Tue Jul 24, 2012 8:22 am

Re: nothing here continue scrolling!

Post by jjmafiae » Wed Jun 19, 2013 2:49 pm

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:

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests