| stream_viz | R Documentation |
Creates a multi-channel signal viewer widget that fetches its data from
the binary stream file produced by stream_to_js.
stream_viz(
outputId,
session = shiny::getDefaultReactiveDomain(),
stream_id = NULL,
width = NULL,
height = NULL,
refresh_rate = 33,
show_controls = TRUE,
streaming = FALSE,
token = NULL
)
outputId |
Character scalar. The output ID matching the
corresponding |
session |
Shiny session object. Defaults to the active reactive
domain. Together with |
stream_id |
Character scalar or |
width, height |
Widget dimensions (passed to |
refresh_rate |
Numeric scalar (milliseconds). Polling interval used
when the viewer is in active streaming mode (play button pressed).
Lower values give smoother animation but increase CPU/network load.
Default |
show_controls |
Logical. Whether to display the hover toolbar
(play/pause, zoom, reset, export). Default |
streaming |
Logical. Whether to start active streaming immediately
when the widget is rendered. Default |
token |
Character scalar or |
The outputId together with session is used to auto-compute
the token-qualified stream file identifier via
stream_file_id. You can override this by passing an
explicit stream_id.
Use updateStreamViz for in-place updates without recreating
the widget.
An htmlwidgets object.
streamVizOutput, renderStreamViz,
updateStreamViz, stream_file_id
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.