Component: Video ( Indicator): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 46: | Line 46: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AttachToDevice''' | ||
|- | |- | ||
| colspan="2" | Requests permission to use a camera feed. | | colspan="2" | Requests permission to use a camera feed. | ||
| Line 65: | Line 65: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetImage''' | ||
|- | |- | ||
| colspan="2" | Captures a still image from the video. | | colspan="2" | Captures a still image from the video. | ||
| Line 79: | Line 79: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetRecording''' | ||
|- | |- | ||
| colspan="2" | Returns the recorded data | | colspan="2" | Returns the recorded data | ||
| Line 93: | Line 93: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''HasMedia''' | ||
|- | |- | ||
| colspan="2" | The media is currently available | | colspan="2" | The media is currently available | ||
| Line 107: | Line 107: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''IsPlaying''' | ||
|- | |- | ||
| colspan="2" | The media is currently playing | | colspan="2" | The media is currently playing | ||
| Line 121: | Line 121: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''JumpBy''' | ||
|- | |- | ||
| colspan="2" | Seeks the media to a new position relative to the current position | | colspan="2" | Seeks the media to a new position relative to the current position | ||
| Line 140: | Line 140: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''JumpTo''' | ||
|- | |- | ||
| colspan="2" | Sseeks the media to the new time | | colspan="2" | Sseeks the media to the new time | ||
| Line 159: | Line 159: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Load''' | ||
|- | |- | ||
| colspan="2" | Loads new media (or resets the current media if the parameter is blank) | | colspan="2" | Loads new media (or resets the current media if the parameter is blank) | ||
| Line 178: | Line 178: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Pause''' | ||
|- | |- | ||
| colspan="2" | Pauses the media | | colspan="2" | Pauses the media | ||
| Line 192: | Line 192: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Play''' | ||
|- | |- | ||
| colspan="2" | Starts or resumes playing the media | | colspan="2" | Starts or resumes playing the media | ||
| Line 206: | Line 206: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''StartRecording''' | ||
|- | |- | ||
| colspan="2" | Starts recording the media | | colspan="2" | Starts recording the media | ||
| Line 220: | Line 220: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''StopRecording''' | ||
|- | |- | ||
| colspan="2" | Stops recording the media | | colspan="2" | Stops recording the media | ||
| Line 235: | Line 235: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Video | ||
|- | |- | ||
|- | |- | ||
| Line 257: | Line 257: | ||
| colspan="2" | Set an optional image to be shown before the video loads/plays | | colspan="2" | Set an optional image to be shown before the video loads/plays | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Options | ||
|- | |- | ||
|- | |- | ||
| Line 281: | Line 281: | ||
| colspan="2" | Automatically begin to play the media as soon as it is available | | colspan="2" | Automatically begin to play the media as soon as it is available | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Callbacks | ||
|- | |- | ||
|- | |- | ||
| Line 290: | Line 290: | ||
| colspan="2" | Send when a camera feed is attached to this component | | colspan="2" | Send when a camera feed is attached to this component | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Advanced | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | MatrixTSL |
| Version | 1.0 |
| Category | Indicator |
Video component
Web-based video component.
Detailed description
The Video component creates a media player which supports video playback into your Web App.
It can also be attached to a local camera feed, allowing images and video recordings to be made.
Examples
Playing videos
This simple example plays a selection of videos.
The web app created by this example can be viewed here: Video Player Example
Taking pictures and videos with a web cam
This example attached to a web camera and allows still images and short videos to be taken and downloaded.
The web app created by this example can be viewed here: Web Camera Example
Macro reference
AttachToDevice
| AttachToDevice | |
| Requests permission to use a camera feed. | |
| IncludeAudio | |
| Captures the audio of the camera (if available) | |
| Return | |
GetImage
| GetImage | |
| Captures a still image from the video. | |
| Return | |
GetRecording
| GetRecording | |
| Returns the recorded data | |
| Return | |
HasMedia
| HasMedia | |
| The media is currently available | |
| Return | |
IsPlaying
| IsPlaying | |
| The media is currently playing | |
| Return | |
JumpBy
| JumpBy | |
| Seeks the media to a new position relative to the current position | |
| Offset | |
| The position offset of the media (in seconds) | |
| Return | |
JumpTo
| JumpTo | |
| Sseeks the media to the new time | |
| Position | |
| The position in the media (in seconds) | |
| Return | |
Load
| Load | |
| Loads new media (or resets the current media if the parameter is blank) | |
| Source | |
| The source URL for the media (use empty string to keep use current media) | |
| Return | |
Pause
| Pause | |
| Pauses the media | |
| Return | |
Play
| Play | |
| Starts or resumes playing the media | |
| Return | |
StartRecording
| StartRecording | |
| Starts recording the media | |
| Return | |
StopRecording
| StopRecording | |
| Stops recording the media | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WEBEXP_Video.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_Video.fcsx