Overview
neoVideo adds a native Windows video player to VisualNEO Win. It uses Media Foundation for primary playback with a DirectShow compatibility fallback. The video surface includes antialiased modern overlay controls for play/pause, seeking, time, volume, and fullscreen.
Controls remain visible while showControls is enabled. Fullscreen uses the monitor containing the control, and Esc restores the embedded player.
When showControls is enabled, the video uses the upper area and a dedicated control panel occupies the lower 76 pixels. The two areas do not overlap. Disabling showControls removes the panel and returns the complete control height to the video. Both surfaces follow object visibility and page navigation automatically.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
src | string | "" | Video file path or compatible media URL. |
autoPlay | boolean | false | Starts playback when the source is applied. |
loop | boolean | false | Restarts playback after the natural end. |
showControls | boolean | true | Enables the floating playback controls. |
aspectRatio | string | "contain" | Requested scaling mode: contain, stretch, or cover. |
volume | integer | 80 | Initial volume from 0 to 100. |
accentColor | string | "#0078D4" | Accent color used for progress, time values, transport controls, and the speaker icon. |
bgColor | string | "auto" | Background color as #HEX, or auto to use the host style. |
Actions
neoVideoPlay
Starts or resumes playback. Supplying a different source closes the previous media before opening the new one.
neoVideoPlay "VideoPlayer1" "[PubDir]media/intro.mp4"
neoVideoPlay "VideoPlayer1" ""
Parameters: object name and an optional video file path or media URL.
neoVideoPause
neoVideoPause "VideoPlayer1"
Pauses playback without resetting its position.
neoVideoStop
neoVideoStop "VideoPlayer1"
Stops playback and resets the position to zero. A manual stop does not emit ended.
neoVideoSeek
neoVideoSeek "VideoPlayer1" "120"
Moves playback to the specified position in seconds.
neoVideoSetVolume
neoVideoSetVolume "VideoPlayer1" "90"
Sets the volume from 0 to 100.
neoVideoFullscreen
neoVideoFullscreen "VideoPlayer1" "True"
neoVideoFullscreen "VideoPlayer1" "False"
Sets fullscreen when the second parameter is present. Omitting it toggles the current state.
neoVideoGetInfo
neoVideoGetInfo "VideoPlayer1"
Stores a JSON string in [neoVideoResult] and [ModernPluginResult]:
{"position":120,"duration":3600,"volume":90,"playing":true,"fullscreen":false}
Positions and durations are expressed in seconds.
Events
| Event | Description |
|---|---|
play | Playback starts or resumes. |
pause | Playback is paused. |
ended | The video reaches its natural end. |
timeupdate | The playback position changes, including periodic updates while playing. |
fullscreen | The fullscreen state changes. |
Event data can include position, duration, playing, fullscreen, and volume.
Notes
- Actual format and URL support depends on the Media Foundation codecs and DirectShow filters installed in Windows.
- The recommended control size is
640 x 360pixels. - Fullscreen is also available from the overlay button; press
Escto leave it.