VideoTileProvider
Inherits TileProvider
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The video file that is played. |
|
Value of type ‘File’ |
No |
|
The date and time that the video should end in the format ‘YYYY MM DD hh:mm:ss’. |
|
Value of type ‘Date and time’ |
Yes |
|
If checked, the video is continues playing from the start when it reaches the end of the video. |
|
Value of type ‘Boolean’ |
Yes |
|
Play audio. |
|
Value of type ‘Boolean’ |
Yes |
|
The mode of how the video should be played back. Default is video is played back according to the set start and end times. |
|
In list { MapToSimulationTime, RealTimeLoop } |
Yes |
|
The date and time that the video should start in the format ‘YYYY MM DD hh:mm:ss’. |
|
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 Description = "An example asset that shows how to include a video on Earth.",
32 Author = "OpenSpace Team",
33 URL = "https://openspaceproject.com",
34 License = "MIT"
35}