[Solved] Streaming video hosted online?

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
User avatar
ironsheikh
Prole
Posts: 9
Joined: Mon Jan 14, 2019 9:17 am

[Solved] Streaming video hosted online?

Post by ironsheikh » Mon Jan 14, 2019 12:55 pm

Is it possible to play, say, an MP4 or .ogg file hosted online rather than locally?

I had been somewhat optimistic in hoping this could be the solution:

Code: Select all

function love.load()
    video = love.graphics.newVideo("http://www.website.com/videofile.ogg")
    video:play()
end
 
function love.draw()
    love.graphics.draw(video, 0, 0)
end
And no, it didn't work! I'm sure many of you giggle as you read that!

I thought I'd try my chances and see if there were any libraries on this forum that could help me achieve this but my searches came up empty.

I'm wondering if there is an answer to this question or if for whatever reason, it cannot be achieved in Love?
Last edited by ironsheikh on Thu Jan 17, 2019 1:09 pm, edited 1 time in total.
"If at first you don't succeed, skydiving is not for you."

User avatar
ReFreezed
Citizen
Posts: 72
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: Streaming video hosted online?

Post by ReFreezed » Mon Jan 14, 2019 10:32 pm

No, you can't stream online videos with LÖVE alone (as far as I know). That seems like very unusual functionality for a game anyway. You have to download the file and then play it locally.
Tools: LuaPreprocess, LuaHotLoader
Games: Momento Temporis: Light from the Deep, Momento Temporis: Arena, Energize!
"If each mistake being made is a new one, then progress is being made."

User avatar
ironsheikh
Prole
Posts: 9
Joined: Mon Jan 14, 2019 9:17 am

Re: Streaming video hosted online?

Post by ironsheikh » Tue Jan 15, 2019 9:50 am

ReFreezed wrote:
Mon Jan 14, 2019 10:32 pm
No, you can't stream online videos with LÖVE alone (as far as I know). That seems like very unusual functionality for a game anyway. You have to download the file and then play it locally.
Ok, appreciate your answer.
"If at first you don't succeed, skydiving is not for you."

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests