The VideoÂ widget plays an HTML5 videoÂ file, and can control the play/pause state,Â playback speed, and time position of the video. It also has options to loop the videoÂ forever, and to play continuously regardless of the play/pause input value.
1 Set Video File
In the more tab, set the file name (.mp4) that’sÂ local on your device. TheÂ files are located in theÂ NTK application directory:
App: NTK.app>Contents>app>dist>assets>video>nyc_people.mp4 (on Mac, open app with right/control-click, ShowÂ Package Contents)
Command Line: NTKserver>assets>video>nyc_people.mp4
Place your ownÂ files in this directory,Â and put the filename in the widget
Connect input widgets to:
- PlayÂ – If the value is less than 500, the audio will be paused, if 500 or more the audio will play.
- SpeedÂ – 100 is normal speed and zero is stopped. The values accepted depend in the browser – negative values may allow reverse audio in some cases. Numbers higher than 100 play the video faster than normal.
- TimeÂ – Scrub the video in real time. Values start at zero for the beginning of the file, and each integerÂ is equal to a second. For example, the default ball.mp4 file is about 14 seconds long. So an input to time will position the video half way through.Â Fractional numbers are okay, and will position the video toÂ sub-second locations.
- OpacityÂ â€“ The input value sets the opacity of the video, with 0 being completely transparent, and 100 being fully opaque.
- Loop – If you check the loop checkbox, the videoÂ will loop forever when the widgetÂ is in Play mode.
- Continuous – If you check the continuous checkbox, the videoÂ will always play, regardless of the input value sent to the play/pause input at the top left. This is useful if you want the videoÂ file to play all the time.
- Threshold – Above this amount as input in the top, play/pause input with start playback. Below this number will pause the video.
- Width – Sets the size of the video, keeping the height proportional to the width set here.
- VideoÂ File – You can replace the default videoÂ file by putting the location of your .mp4 file in this box.