Skip to main content

VideoModule

Description:

  This module is responsible for decoding, controlling, and streaming video files.

newVideoStream

Type: Function.

Description:

  Creates a new VideoStream. Currently only Ogg Theora video files are supported. VideoStreams can't draw videos, see love.graphics.newVideo for that.

Signature:

newVideoStream: function(filename: string): VideoStream

Parameters:

ParameterTypeDescription
filenamestringThe file path to the Ogg Theora video file.

Returns:

Return TypeDescription
VideoStreamA new VideoStream.