object:load()

Type Function
Object Video
Library native.*
Return value none
Revision Release 2022.3683
Keywords load, video, video view, video overlay
See also native.newVideo()
media.RemoteSource
system.CachesDirectory
system.DocumentsDirectory
system.TemporaryDirectory

Overview

Loads a specified video. Use this in conjunction with native.newVideo().

Syntax

object:load( path )
object:load( path, baseSource )
path (required)

String. The local filename or remote URL for the video.

baseSource (optional)

Constant. Controls how path is interpreted. It can either be one of the system-defined directory constants, or media.RemoteSource (use this to access video on a remote server).