Methods
(static) arraysEqual(arr1, arr2) → {boolean}
| Name | Type | Description |
|---|---|---|
arr1 | dynamic | |
arr2 | dynamic |
- Source
- Type:
- boolean
(static) fetchCaption() → {void}
Runs on the Task thread via functionName. HTTP requests require a Task thread.
Uses raw roUrlTransfer + WaitMessage instead of rr_Requests(). rr_Requests_run() is a standalone function whose m resolves to the component's shared m AA. Its busy-polling loop reads m.top thousands of times per second from the task thread, racing with the render thread's 100ms caption timer that reads m.tags/m.captionList from the same unsynchronized m AA — corrupting it and causing the &hf3 crash on m.tags.replaceAll(). WaitMessage() blocks at the OS level without touching m, eliminating the race.
- Source
- Type:
- void
(static) init() → {void}
- Source
- Type:
- void
(static) isTime(text) → {dynamic}
| Name | Type | Description |
|---|---|---|
text | dynamic |
- Source
- Type:
- dynamic
(static) newLayoutGroup(labels) → {dynamic}
| Name | Type | Description |
|---|---|---|
labels | dynamic |
- Source
- Type:
- dynamic
(static) newRect(lg) → {dynamic}
| Name | Type | Description |
|---|---|---|
lg | dynamic |
- Source
- Type:
- dynamic
(static) newlabel(txt) → {dynamic}
| Name | Type | Description |
|---|---|---|
txt | dynamic |
- Source
- Type:
- dynamic
(static) onCaptionDataReceived() → {void}
Render-thread callback: receives parsed VTT data from the task thread and manages the caption timer
- Source
- Type:
- void
(static) onDestroy() → {void}
onDestroy: Full teardown releasing all resources before component removal. Called by VideoPlayerView.onDestroy() when popping the player scene. Stops the caption timer and unobserves all fields to prevent callbacks firing on an orphaned component — including the case where an in-flight HTTP request in fetchCaption() completes after the player is torn down.
- Type:
- void
(static) parseVTT(lines) → {dynamic}
| Name | Type | Description |
|---|---|---|
lines | dynamic |
- Type:
- dynamic
(static) setFont() → {void}
- Source
- Type:
- void
(static) toMs(t) → {dynamic}
| Name | Type | Description |
|---|---|---|
t | dynamic |
- Source
- Type:
- dynamic
(static) updateCaption() → {void}
- Source
- Type:
- void