VideoStream#

This component is also available in the classic reference.

The VideoStream displays a video from a local stream (for example from a webcam) and allows accessing the streamed video data from Python.

Use pn.ui.VideoStream to create this component.

API#

.. py:class:: VideoStream(**params: ~typing.Any) :module: panel.widgets.misc

The VideoStream displays a video from a local stream (for example from a webcam) and allows accessing the streamed video data from Python.

Reference: https://panel.holoviz.org/reference/widgets/VideoStream.html

:Example:

VideoStream(label=’Video Stream’, timeout=100)

:Attributes:

   **timeout**
       ..

.. rubric:: Methods

.. autosummary::

  snapshot

.. !! processed by numpydoc !!

Parameter Definitions


Parameters inherited from:

   :class:`panel.widgets.base.WidgetBase`: label

   :class:`panel.viewable.Layoutable`: align, aspect_ratio, css_classes, design, min_width, min_height, max_width, max_height, styles, stylesheets, tags, width_policy, height_policy, sizing_mode, visible

   :class:`panel.viewable.Viewable`: loading

   :class:`panel.widgets.base.Widget`: height, margin, width, disabled

value = String(default='', label='Value')

    A base64 representation of the video stream snapshot.

format = Selector(default='png', label='Format', names={}, objects=['png', 'jpeg'])

    The file format as which the video is returned.

paused = Boolean(default=False, label='Paused')

    Whether the video is currently paused

timeout = Number(allow_None=True, inclusive_bounds=(True, True), label='Timeout')

    Interval between snapshots in millisecons

.. py:method:: VideoStream.snapshot() :module: panel.widgets.misc

  Triggers a snapshot of the current VideoStream state to sync
  the widget value.
















  ..
      !! processed by numpydoc !!