How do I use the love.video element
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 2
- Joined: Wed Jun 30, 2021 7:34 pm
How do I use the love.video element
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?
-
- Party member
- Posts: 548
- Joined: Wed Oct 05, 2016 11:53 am
Re: How do I use the love.video element
The page for love.graphics.newVideo provides an example:
Keep in mind that the videos need to be Ogg Theora video files.
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
- 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
Also, do study how forums work, and next time reply to your original thread, instead of creating a new one.
Me and my stuff True 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.
Who is online
Users browsing this forum: Bing [Bot] and 4 guests