[SOLVED] Using a video crashes Love
Posted: Thu May 21, 2020 4:07 am
Hey guys!
So I've noticed lately that whenever I try to incorporate a video into my code, Love decides to crash completely. And I'm not talking about a blue screen error, I'm talking about a "Love.exe has stopped responding." I've looked all over the internet and I couldn't find a solution, as well as tried out using many different videos. Here's an example of a code that causes it to crash:
Any help would be greatly appreciated! I can also send any info if needed.
So I've noticed lately that whenever I try to incorporate a video into my code, Love decides to crash completely. And I'm not talking about a blue screen error, I'm talking about a "Love.exe has stopped responding." I've looked all over the internet and I couldn't find a solution, as well as tried out using many different videos. Here's an example of a code that causes it to crash:
Code: Select all
mTimer = 0
function love.load()
love.window.setMode(1280, 720)
Loading = love.graphics.newVideo('Loading.mp4')
end
function love.update(dt)
Mtimer = Mtimer + dt
if Mtimer < 10 then
Loading:play()
end
if Mtimer > 10 then
Loading:stop()
end
end
function love.draw()
love.graphics.draw(Loading, 10, 10)
end