Page 1 of 1

How do I use the love.video element

Posted: Thu Jul 01, 2021 1:33 am
by satorikeiko
I have read the love.video wiki but I still dont understand it and I've searched for videos about it but I can't find one, please help how do i use it?

Re: How do I use the love.video element

Posted: Fri Jul 02, 2021 8:30 am
by MrFariator
The page for love.graphics.newVideo provides an example:

Code: Select all

function love.load()
    video = love.graphics.newVideo("myvideo.ogv")
    video:play()
end

function love.draw()
    love.graphics.draw(video, 0, 0)
end
Keep in mind that the videos need to be Ogg Theora video files.

Re: How do I use the love.video element

Posted: Fri Jul 02, 2021 12:49 pm
by zorg
Also, do study how forums work, and next time reply to your original thread, instead of creating a new one. :3