How do I use the love.video element

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.
Post Reply
satorikeiko
Prole
Posts: 2
Joined: Wed Jun 30, 2021 7:34 pm

How do I use the love.video element

Post 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?
MrFariator
Party member
Posts: 548
Joined: Wed Oct 05, 2016 11:53 am

Re: How do I use the love.video element

Post 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.
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: How do I use the love.video element

Post by zorg »

Also, do study how forums work, and next time reply to your original thread, instead of creating a new one. :3
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

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