{{newin (日本語)|[[0.10.0 (日本語)|0.10.0]]|100|type=関数}}
Creates a new drawable [[Video]]. Currently only Ogg Theora video files are supported.
{{newobjectnotice (日本語)}}

== 関数 ==
=== 概要 ===
<source lang="lua">
video = love.graphics.newVideo( filename )
</source>
=== 引数 ===
{{param (日本語)|string|filename|The file path to the Ogg Theora video file.}}
=== 返値 ===
{{param (日本語)|Video|video|A new Video.}}

== 関数 ==
=== 概要 ===
<source lang="lua">
video = love.graphics.newVideo( videostream )
</source>
=== 引数 ===
{{param (日本語)|VideoStream|videostream|A video stream object.}}
=== 返値 ===
{{param (日本語)|Video|video|A new Video.}}

== 関数 ==
{{newin (日本語)|[[11.0 (日本語)|11.0]]|110|type=異形}}
=== 概要 ===
<source lang="lua">
video = love.graphics.newVideo( filename, settings )
</source>
=== 引数 ===
{{param (日本語)|string|filename|The file path to the Ogg Theora video file (or [[VideoStream]]).}}
{{param (日本語)|table|settings|A table containing the following fields:}}
{{subparam|boolean|audio (false)|Whether to try to load the video's audio into an audio [[Source]]. If not explicitly set to true or false, it will try without causing an error if the video has no audio.}}
{{subparam|number|dpiscale ([[love.graphics.getDPIScale]]())|The DPI scale factor of the video.}}
=== 返値 ===
{{param (日本語)|Video|video|A new Video.}}

== 関数 ==
{{newinoldin (日本語)|[[0.10.0 (日本語)|0.10.0]]|100|[[0.11.0 (日本語)|0.11.0]]|110|type=異形}}
=== 概要 ===
<source lang="lua">
video = love.graphics.newVideo( filename, loadaudio )
</source>
=== 引数 ===
{{param (日本語)|string|filename|The file path to the Ogg Theora video file.}}
{{param (日本語)|boolean|loadaudio (nil)|Whether to try to load the video's audio into an audio [[Source]]. If not explicitly set to true or false, it will try without causing an error if the video has no audio.}}
=== 返値 ===
{{param (日本語)|Video|video|A new Video.}}

== 関数 ==
{{newinoldin (日本語)|[[0.10.0 (日本語)|0.10.0]]|100|[[0.11.0 (日本語)|0.11.0]]|110|type=異形}}
=== 概要 ===
<source lang="lua">
video = love.graphics.newVideo( videostream, loadaudio )
</source>
=== 引数 ===
{{param (日本語)|VideoStream|videostream|A video stream object.}}
{{param (日本語)|boolean|loadaudio (nil)|Whether to try to load the video's audio into an audio [[Source]]. If not explicitly set to true or false, it will try without causing an error if the video has no audio.}}
=== 返値 ===
{{param (日本語)|Video|video|A new Video.}}

== 用例 ==
Load and play a video.
<source lang="lua">
function love.load()
    video = love.graphics.newVideo("myvideo.ogv")
    video:play()
end

function love.draw()
    love.graphics.draw(video, 0, 0)
end
</source>

== 関連 ==
* [[parent::love.graphics (日本語)]]
* [[Constructs::Video (日本語)]]
* [[love.graphics.draw (日本語)]]
[[Category:Functions (日本語)]]
[[Sub-Category::Object Creation (日本語)| ]]
{{#set:Description=Creates a new [[Video]].}}

== そのほかの言語 ==
{{i18n (日本語)|love.graphics.newVideo}}