diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-08-13 01:08:34 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-08-13 01:08:34 +0800 |
commit | c30c5c2e267f6917600afe4f19e1e0d674bad9c6 (patch) | |
tree | 92b8218162dde2e7539ad361be101315d01cb254 /meta/3rd/love2d/library/love/video.lua | |
parent | e8e5becffd87486347db7b3b191c1a1eff19c664 (diff) | |
download | lua-language-server-c30c5c2e267f6917600afe4f19e1e0d674bad9c6.zip |
#1431
Diffstat (limited to 'meta/3rd/love2d/library/love/video.lua')
-rw-r--r-- | meta/3rd/love2d/library/love/video.lua | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/meta/3rd/love2d/library/love/video.lua b/meta/3rd/love2d/library/love/video.lua new file mode 100644 index 00000000..2a93dd22 --- /dev/null +++ b/meta/3rd/love2d/library/love/video.lua @@ -0,0 +1,62 @@ +---@meta + +--- +---This module is responsible for decoding, controlling, and streaming video files. +--- +---It can't draw the videos, see love.graphics.newVideo and Video objects for that. +--- +---@class love.video +love.video = {} + +--- +---Creates a new VideoStream. Currently only Ogg Theora video files are supported. VideoStreams can't draw videos, see love.graphics.newVideo for that. +--- +---@overload fun(file: love.File):love.VideoStream +---@param filename string # The file path to the Ogg Theora video file. +---@return love.VideoStream videostream # A new VideoStream. +function love.video.newVideoStream(filename) end + +--- +---An object which decodes, streams, and controls Videos. +--- +---@class love.VideoStream: love.Object +local VideoStream = {} + +--- +---Gets the filename of the VideoStream. +--- +---@return string filename # The filename of the VideoStream +function VideoStream:getFilename() end + +--- +---Gets whether the VideoStream is playing. +--- +---@return boolean playing # Whether the VideoStream is playing. +function VideoStream:isPlaying() end + +--- +---Pauses the VideoStream. +--- +function VideoStream:pause() end + +--- +---Plays the VideoStream. +--- +function VideoStream:play() end + +--- +---Rewinds the VideoStream. Synonym to VideoStream:seek(0). +--- +function VideoStream:rewind() end + +--- +---Sets the current playback position of the VideoStream. +--- +---@param offset number # The time in seconds since the beginning of the VideoStream. +function VideoStream:seek(offset) end + +--- +---Gets the current playback position of the VideoStream. +--- +---@return number seconds # The number of seconds sionce the beginning of the VideoStream. +function VideoStream:tell() end |