Skip to content

Commit 007a71e

Browse files
update Open Source Docs from Roblox internal teams
1 parent b37fed9 commit 007a71e

File tree

9 files changed

+162
-9
lines changed

9 files changed

+162
-9
lines changed

content/common/navigation/engine/reference.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3256,6 +3256,11 @@ navigation:
32563256
type: engineapi
32573257
source: /reference/engine/classes/TerrainWriteOperation.yaml
32583258
ignoreTranslation: true
3259+
- title: VideoSampler
3260+
path: /reference/engine/classes/VideoSampler
3261+
type: engineapi
3262+
source: /reference/engine/classes/VideoSampler.yaml
3263+
ignoreTranslation: true
32593264
- title: WebStreamClient
32603265
path: /reference/engine/classes/WebStreamClient
32613266
type: engineapi
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
0.697.0.6970925
2-
version-1e4ca3bb98a04c5f
1+
0.698.0.6980940
2+
version-4161ccb851314f72

content/en-us/reference/engine/classes/AudioSpeechToText.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ code_samples:
2323
inherits:
2424
- Instance
2525
descendants: []
26-
tags:
27-
- NotBrowsable
26+
tags: []
2827
deprecation_message: ''
2928
properties:
3029
- name: AudioSpeechToText.Enabled

content/en-us/reference/engine/classes/Object.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ descendants:
2424
- TerrainModifyOperation
2525
- TerrainReadOperation
2626
- TerrainWriteOperation
27+
- VideoSampler
2728
- WebStreamClient
2829
tags:
2930
- NotCreatable

content/en-us/reference/engine/classes/OpenCloudApiV1.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ descendants: []
1414
tags:
1515
- NotCreatable
1616
- NotReplicated
17+
- Deprecated
1718
deprecation_message: |
1819
This class is deprecated and should not be used for new work. Use
1920
`Class.HttpService` instead and see the
@@ -33,6 +34,7 @@ methods:
3334
- type: OpenCloudModel
3435
summary: ''
3536
tags:
37+
- Deprecated
3638
- CustomLuaState
3739
deprecation_message: ''
3840
security: None
@@ -56,6 +58,7 @@ methods:
5658
summary: ''
5759
tags:
5860
- Yields
61+
- Deprecated
5962
deprecation_message: ''
6063
security: None
6164
thread_safety: Unsafe

content/en-us/reference/engine/classes/OpenCloudService.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ tags:
1515
- NotCreatable
1616
- Service
1717
- NotReplicated
18+
- Deprecated
1819
deprecation_message: |
1920
This class is deprecated and should not be used for new work. Use
2021
`Class.HttpService` instead and see the
@@ -29,7 +30,8 @@ methods:
2930
returns:
3031
- type: OpenCloudApiV1
3132
summary: ''
32-
tags: []
33+
tags:
34+
- Deprecated
3335
deprecation_message: ''
3436
security: None
3537
thread_safety: Unsafe
@@ -60,6 +62,7 @@ methods:
6062
summary: ''
6163
tags:
6264
- Yields
65+
- Deprecated
6366
deprecation_message: ''
6467
security: None
6568
thread_safety: Unsafe

content/en-us/reference/engine/classes/ReflectionService.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ methods:
3434
returns:
3535
- type: Dictionary?
3636
summary: ''
37-
tags: []
37+
tags:
38+
- CustomLuaState
3839
deprecation_message: ''
3940
security: None
4041
thread_safety: Unsafe
@@ -51,7 +52,8 @@ methods:
5152
returns:
5253
- type: Array
5354
summary: ''
54-
tags: []
55+
tags:
56+
- CustomLuaState
5557
deprecation_message: ''
5658
security: None
5759
thread_safety: Unsafe
@@ -72,7 +74,8 @@ methods:
7274
returns:
7375
- type: Array
7476
summary: ''
75-
tags: []
77+
tags:
78+
- CustomLuaState
7679
deprecation_message: ''
7780
security: None
7881
thread_safety: Unsafe
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# This file is automatically generated. Please don't edit it manually.
2+
# To submit a bug report on the content, see
3+
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
4+
5+
name: VideoSampler
6+
type: class
7+
memory_category: Instances
8+
summary: |
9+
An object for sampling frames from video content.
10+
description: |
11+
This object lets you get image frames from selected timestamps of a video. To
12+
create a `Class.VideoSampler`, call
13+
`Class.VideoService:CreateVideoSamplerAsync()`.
14+
code_samples: []
15+
inherits:
16+
- Object
17+
descendants: []
18+
tags:
19+
- NotCreatable
20+
deprecation_message: ''
21+
properties:
22+
- name: VideoSampler.TimeLength
23+
summary: |
24+
The length of the `Class.VideoSampler.VideoContent|VideoContent` in
25+
seconds.
26+
description: |
27+
The length of the `Class.VideoSampler.VideoContent|VideoContent` in
28+
seconds.
29+
code_samples: []
30+
type: double
31+
tags:
32+
- ReadOnly
33+
- NotReplicated
34+
deprecation_message: ''
35+
security:
36+
read: None
37+
write: None
38+
thread_safety: ReadSafe
39+
category: Data
40+
serialization:
41+
can_load: false
42+
can_save: true
43+
capabilities: []
44+
- name: VideoSampler.VideoContent
45+
summary: |
46+
The asset loaded into the `Class.VideoSampler`.
47+
description: |
48+
The asset loaded into the `Class.VideoSampler`.
49+
code_samples: []
50+
type: Content
51+
tags:
52+
- ReadOnly
53+
- NotReplicated
54+
deprecation_message: ''
55+
security:
56+
read: None
57+
write: None
58+
thread_safety: ReadSafe
59+
category: Data
60+
serialization:
61+
can_load: false
62+
can_save: true
63+
capabilities: []
64+
methods:
65+
- name: VideoSampler:GetSamplesAtTimesAsync
66+
summary: |
67+
Gets image frames at the specified timestamps.
68+
description: |
69+
This method allows you to get a set of image frames from a video at
70+
specified timestamps as image `Datatype.Content` objects.
71+
code_samples: []
72+
parameters:
73+
- name: times
74+
type: Array
75+
default:
76+
summary: |
77+
An array of requested timestamps in seconds for which to retrieve
78+
image frames. Each timestamp should be a number between `0` and
79+
`Class.VideoSampler.TimeLength|TimeLength`.
80+
returns:
81+
- type: Array
82+
summary: |
83+
An array of dictionary or nil values for each requested timestamp. If
84+
a requested timestamp is out of range or the `Class.VideoSampler` was
85+
unable to produce a sample, the corresponding entry in the returned
86+
array will be nil.
87+
88+
Each dictionary contains the following keys:
89+
90+
- `Time` (number): The timestamp of the returned image frame in
91+
seconds. This value may differ slightly from the requested
92+
timestamp.
93+
- `Image` (`Datatype.Content`): A `Datatype.Content` with a
94+
`Datatype.Content.SourceType|SourceType` of
95+
`Enum.ContentSourceType.Opaque` containing the image frame at the
96+
corresponding timestamp.
97+
tags:
98+
- Yields
99+
deprecation_message: ''
100+
security: None
101+
thread_safety: Unsafe
102+
capabilities: []
103+
events: []
104+
callbacks: []

content/en-us/reference/engine/classes/VideoService.yaml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,41 @@ tags:
1717
- Service
1818
deprecation_message: ''
1919
properties: []
20-
methods: []
20+
methods:
21+
- name: VideoService:CreateVideoSamplerAsync
22+
summary: |
23+
Creates a `Class.VideoSampler` that samples frames from the provided video
24+
content.
25+
description: |
26+
Creates a `Class.VideoSampler` that samples frames from the provided video
27+
content.
28+
code_samples: []
29+
parameters:
30+
- name: content
31+
type: Content
32+
default:
33+
summary: |
34+
The video content to sample from.
35+
- name: options
36+
type: Dictionary?
37+
default:
38+
summary: |
39+
Options table for creating the `Class.VideoSampler`:
40+
41+
- `Size` – A `Enum.VideoSampleSize` value that determines the
42+
resolution of textures produced by the `Class.VideoSampler`.
43+
Defaults to `Enum.VideoSampleSize.Small`. Use the smallest
44+
resolution that meets your needs to minimize memory usage and
45+
improve sampling performance.
46+
returns:
47+
- type: VideoSampler
48+
summary: |
49+
The created `Class.VideoSampler`.
50+
tags:
51+
- Yields
52+
deprecation_message: ''
53+
security: None
54+
thread_safety: Unsafe
55+
capabilities: []
2156
events: []
2257
callbacks: []

0 commit comments

Comments
 (0)