value: typing.Union[
typing.Tuple[str | pathlib.Path, str | pathlib.Path],
typing.Callable,
NoneType,
][
typing.Tuple[str | pathlib.Path, str | pathlib.Path][
str | pathlib.Path, str | pathlib.Path
],
Callable,
None,
]
value: typing.Union[
typing.Tuple[str | pathlib.Path, str | pathlib.Path],
typing.Callable,
NoneType,
][
typing.Tuple[str | pathlib.Path, str | pathlib.Path][
str | pathlib.Path, str | pathlib.Path
],
Callable,
None,
]
= None
A tuple of two video file paths or URLs to display initially. Can also be a callable.
height: int | None
height: int | None
= None
The height of the component container in pixels.
width: int | None
width: int | None
= None
The width of the component container in pixels.
label: str | None
label: str | None
= None
The label for this component that appears above it.
every: float | None
every: float | None
= None
If `value` is a callable, run the function 'every' seconds while the client connection is open.
show_label: bool | None
show_label: bool | None
= None
If False, the label is not displayed.
container: bool
container: bool
= True
If False, the component will not be wrapped in a container.
scale: int | None
scale: int | None
= None
An integer that defines the component's relative size in a layout.
min_width: int
min_width: int
= 160
The minimum width of the component in pixels.
interactive: bool | None
interactive: bool | None
= None
If True, the component is in input mode (upload). If False, it's in display-only mode.
visible: bool
visible: bool
= True
If False, the component is not rendered.
elem_id: str | None
elem_id: str | None
= None
An optional string that is assigned as the id of the component in the HTML.
elem_classes: typing.Union[typing.List[str], str, NoneType][
typing.List[str][str], str, None
]
elem_classes: typing.Union[typing.List[str], str, NoneType][
typing.List[str][str], str, None
]
= None
An optional list of strings that are assigned as the classes of the component in the HTML.
position: int
position: int
= 50
The initial horizontal position of the slider, from 0 (left) to 100 (right).
show_download_button: bool
show_download_button: bool
= True
If True, a download button is shown for the second video.
show_mute_button: bool
show_mute_button: bool
= True
If True, a mute/unmute button is shown.
show_fullscreen_button: bool
show_fullscreen_button: bool
= True
If True, a fullscreen button is shown.
video_mode: "upload" | "preview"
video_mode: "upload" | "preview"
= "preview"
The mode of the component, either "upload" or "preview".
autoplay: bool
autoplay: bool
= False
If True, videos will start playing automatically on load (muted).
loop: bool
loop: bool
= False
If True, videos will loop when they finish playing.
change
change
Triggered when the value of the VideoSlider changes either because of user input (e.g. a user types in a textbox) OR because of a function update (e.g. an image receives a value from the output of an event trigger). See `.input()` for a listener that is only triggered by user input.
upload
upload
This listener is triggered when the user uploads a file into the VideoSlider.
clear
clear
This listener is triggered when the user clears the VideoSlider using the clear button for the component.