VideoTileProvider

Inherits TileProvider

Members

Name

Documentation

Type

Description

Optional

Video

This should point to the video file that should be played.

String

Value of type ‘String’

No

EndTime

The date and time that the video should end in the format ‘YYYY MM DD hh:mm:ss’.

Date and time

Value of type ‘Date and time’

Yes

LoopVideo

If checked, the video is continues playing from the start when it reaches the end of the video.

Boolean

Value of type ‘Boolean’

Yes

PlayAudio

Play audio

Boolean

Value of type ‘Boolean’

Yes

PlaybackMode

The mode of how the video should be played back. Default is video is played back according to the set start and end times.

String

In list { MapToSimulationTime, RealTimeLoop }

Yes

StartTime

The date and time that the video should start in the format ‘YYYY MM DD hh:mm:ss’.

Date and time

Value of type ‘Date and time’

Yes

Asset Examples

 1-- To learn how you can include your own video, see the wiki
 2-- http://wiki.openspaceproject.com/docs/builders/assets/resources.html
 3
 4local earth = asset.require("scene/solarsystem/planets/earth/earth")
 5
 6
 7
 8local Layer = {
 9  Name = "Globe Video Loop Example",
10  Identifier = "GlobeVideoLoopExample",
11  Enabled = true,
12  Type = "VideoTileProvider",
13  Video = asset.resource("examplevideo.mp4"),
14}
15
16
17asset.onInitialize(function()
18  openspace.globebrowsing.addLayer(earth.Earth.Identifier, "ColorLayers", Layer)
19end)
20
21asset.onDeinitialize(function()
22  openspace.globebrowsing.deleteLayer(earth.Earth.Identifier, "ColorLayers", Layer)
23end)
24
25asset.export("layer", Layer)
26
27
28
29asset.meta = {
30  Name = "Video Player on Globe Example",
31  Version = "1.0",
32  Description = "An example asset that shows how to include a video on Earth.",
33  Author = "OpenSpace Team",
34  URL = "https://openspaceproject.com",
35  License = "MIT"
36}