## [Solved] Streaming video hosted online?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
ironsheikh
Prole
Posts: 9
Joined: Mon Jan 14, 2019 9:17 am

### [Solved] Streaming video hosted online?

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."

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

### Re: Streaming video hosted online?

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.
Momento Temporis: Light from the Deep (metroidvania, wip)
Momento Temporis: Arena (multiplayer pvp arena, wip)
Energize! (puzzle, completed!)
"If each mistake being made is a new one, then progress is being made."

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

### Re: Streaming video hosted online?

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.