Doc > Nodes > COP > Video
Imports a video
Description
TIP: to ensure that your video starts as soon as possible, make sure to pre-process it with a tool like qt-faststart. There are many places where you can find it, but here are some suggestions:
- download it from https://pypi.org/project/qtfaststart/
- download it from https://manpages.debian.org/stretch/ffmpeg/qt-faststart.1.en.html
- with ffmpeg, you can use the following command line:
ffmpeg -i in.mp4 -c copy -map 0 -movflags +faststart out.mp4
In a future version of this node, it will also be possible to link it to a video tag that could already be in your html DOM. This way, you could sets multiple source tags (one with mp4 and one with ogv) instead of a single url.
Parameters
Name | Type | Description |
---|---|---|
url | string | url to fetch the video from |
reload | button | reload the video |
play | boolean | play the video |
muted | boolean | set the video muted attribute |
loop | boolean | set the video loop attribute |
videoTime | float | set the video time |
setVideoTime | button | seek the video at the time specified in videoTime |
tencoding | boolean | toggle on to allow updating the texture encoding |
encoding | integer | sets the texture encoding |
tmapping | boolean | toggle on to allow updating the texture mapping |
mapping | integer | sets the texture mapping |
twrap | boolean | toggle on to allow updating the texture wrap |
wrapS | integer | sets the texture wrapS |
wrapT | integer | sets the texture wrapT |
tminFilter | boolean | toggle on to allow updating the texture min filter |
minFilter | integer | sets the texture min filter |
tmagFilter | boolean | toggle on to allow updating the texture mag filter |
magFilter | integer | sets the texture mag filter |
tanisotropy | boolean | toggle on to allow updating the texture anisotropy |
useRendererMaxAnisotropy | boolean | sets the anisotropy from the max value allowed by the renderer |
anisotropy | integer | sets the anisotropy manually |
tflipY | boolean | Toggle on to update the flipY |
flipY | boolean | sets the flipY |
ttransform | boolean | toggle on to update the texture transform |
offset | vector2 | updates the texture offset |
repeat | vector2 | updates the texture repeat |
rotation | float | updates the texture rotation |
center | vector2 | updates the texture center |
tadvanced | boolean | toggle on to display advanced parameters |
tformat | boolean | toggle on to allow overriding the texture format |
format | integer | sets the texture format |
ttype | boolean | toggle on to allow overriding the texture type |
type | integer | sets the texture ty[e] |
checkFileType | boolean | check url extension |