A Video player component that can play various video formats. Use your app’s static folder to serve videos directly. For example, static/my_video.mp4. Alternatively, you can pack bytes or files in state: state["vid_b"] = wf.pack_bytes(vid_bytes, "video/mp4") state["vid_f"] = wf.pack_file(vid_file, "video/mp4") Afterwards, you can reference the video using the syntax @{vid_f}.

Fields

NameTypeDescriptionOptions
SourceTextThe URL of the video file. Alternatively, you can pass a file via state.-
Enable controlsBooleanDisplay Video player controls.-
AutoplayBooleanAutoplay the video when the component is loaded.-
LoopBooleanLoop the video when it reaches the end.-
MutedBooleanMute the video by default.-
Custom CSS classesTextCSS classes, separated by spaces. You can define classes in custom stylesheets.-