Video Actions 🧪
Goals
Work with all video types
HTML Embed
<video>
elementWebflow Video element ( aka. Embedly )
Webflow YouTube element
Webflow Background Video element
HTML Embed Vidzflow video
Auto-Detect the Video type
Support Wrapper-based attributes so that the video type can be changed later with no change to the SA5 Events implementation
Wistia?
Mobile tests-
Technical Notes
User Interaction Requirements
Embed.ly
https://www.npmjs.com/package/player.js
Vimeo
https://github.com/vimeo/player.js
Usage Notes
Play Video
sa-action-video-play
= ( event name )
sa-action-video-play
= ( event name ) Will begin playing the current video when this event is fired.
Pause Video
sa-action-video-pause
= ( event name )
Seek Video
sa-action-video-seek
= ( event name )
sa-action-video-seek
= ( event name ) Seeks the current video when this event is fired.
Restart would be Seek 0.
Mute Video
Unmute Video
Pauses the current video when this event is fired.
sa-action-video-restart
sa-action-video-seek:pos = ( position to seek )
Position to seek
Defaults to 0 ( beginning of video )
Can be;
Numeric - specifies seconds from start e.g. 10
Percentage - e.g. 80%
sa-action-video-toggle
sa-action-video-mute
sa-action-video-unmute
Technical Notes
Wrapped video element
Convenient for swapping out video type later
HTML embedded
Custom element
div.w-embed-youtubevideo
YouTube Video
General Video
Background Video
Vidzflow
Future
Autoplay
Muted
Loop
Click to play
Start playing when in view
Play inline
Overlay
Used as a background video
Play from start when fullscreen
CTA
Last updated
Was this helpful?