MCPcopy Create free account

hub / github.com/whitphx/streamlit-webrtc / functions

Functions467 in github.com/whitphx/streamlit-webrtc

↓ 37 callersFunctionwebrtc_streamer
( key: str, mode: WebRtcMode = WebRtcMode.SENDRECV, rtc_configuration: Optional[Union[Dict[str, An
streamlit_webrtc/component.py:499
↓ 18 callersMethodrecv
(self)
tests/process_test.py:47
↓ 18 callersMethodstop
(self, timeout: Union[float, None] = 1.0)
streamlit_webrtc/webrtc.py:820
↓ 15 callersMethodrun
()
tests/process_test.py:164
↓ 14 callersFunction_reset_factory_cache_on_webrtc_session_end
(obj: object)
streamlit_webrtc/webrtc.py:123
↓ 14 callersMethodaddTrack
(self, track: MediaStreamTrack)
streamlit_webrtc/sink.py:30
↓ 13 callersFunctioncreate_video_source_track
( callback: VideoSourceCallback, key: str, fps=30, on_ended: Optional[Callable[[], None]] = No
streamlit_webrtc/factory.py:286
↓ 13 callersMethodstart
(self)
streamlit_webrtc/sink.py:32
↓ 12 callersMethod_get_worker
(self)
streamlit_webrtc/component.py:162
↓ 12 callersMethodstop
(self)
pages/18_audio_chat_realtime.py:149
↓ 11 callersFunctionloadPersistedDeviceIds
( componentKey: string | undefined, )
streamlit_webrtc/frontend/src/device-storage.ts:62
↓ 11 callersMethodpush
Append PCM samples to the playback queue. ``bytes`` / ``bytearray`` / ``memoryview`` inputs are interpreted as little-endian s16 mono
streamlit_webrtc/pcm_source.py:67
↓ 11 callersMethodstop
(self)
tests/factory_lifecycle_scope_test.py:30
↓ 10 callersFunction_video_frame
(value: int = 0)
tests/models_test.py:11
↓ 10 callersFunctioncreate_video_sink_track
( callback: VideoSinkCallback, key: str, on_ended: Optional[Callable[[], None]] = None, lifecy
streamlit_webrtc/factory.py:346
↓ 10 callersMethodjoin
(self, timeout=None)
tests/shutdown_test.py:177
↓ 9 callersFunction_drain_until
(predicate, deadline: float)
tests/webrtc_loopback_test.py:128
↓ 9 callersMethodclose
(self)
tests/webrtc_loopback_test.py:90
↓ 9 callersFunctionpersistDeviceIds
( componentKey: string | undefined, deviceIds: PersistedDeviceIds, )
streamlit_webrtc/frontend/src/device-storage.ts:72
↓ 9 callersMethodstop
(self, timeout: float = 1.0)
streamlit_webrtc/shutdown.py:121
↓ 9 callersFunctionuseTranslation
(key: keyof Translations)
streamlit_webrtc/frontend/src/translation/useTranslation.ts:8
↓ 8 callersFunction_get_or_create_context
Return the per-key `WebRtcStreamerContext` from `st.session_state`, creating one if absent.
streamlit_webrtc/component.py:271
↓ 8 callersFunction_validate_sink_conflicts
Reject combinations where the same kind has both a sink and a per-frame consumer wired through ``webrtc_streamer()``. Sinks are an alternativ
streamlit_webrtc/component.py:203
↓ 8 callersMethodadd_input_track
(self, input_track: MediaStreamTrack)
streamlit_webrtc/mix.py:215
↓ 8 callersMethodclear
Drop all buffered samples (e.g. on barge-in).
streamlit_webrtc/pcm_source.py:97
↓ 8 callersFunctiongenerate_frontend_component_key
(original_key: str)
streamlit_webrtc/component.py:238
↓ 8 callersMethodstop
(self)
streamlit_webrtc/sink.py:33
↓ 7 callersMethod_set_worker
( self, worker: Optional[WebRtcWorker[VideoProcessorT, AudioProcessorT]] )
streamlit_webrtc/component.py:157
↓ 7 callersFunction_teardown_loopback
(client: RTCPeerConnection, worker: WebRtcWorker)
tests/webrtc_loopback_test.py:168
↓ 7 callersFunction_video_frame
(value: int = 0, pts: int = 0)
tests/process_test.py:29
↓ 7 callersFunctioncreate_audio_sink_track
( callback: AudioSinkCallback, key: str, on_ended: Optional[Callable[[], None]] = None, lifecy
streamlit_webrtc/factory.py:397
↓ 7 callersFunctionperComponentKey
(k: string)
streamlit_webrtc/frontend/src/device-storage.test.ts:5
↓ 6 callersFunction_attach_factory_lifecycle
( *, session_state: Any, cache_key: str, observer_cache_key: str, lifecycle_target: Any,
streamlit_webrtc/factory.py:103
↓ 6 callersFunction_consume
Pull ``n_frames`` audio frames from the track and return their samples.
tests/pcm_source_test.py:12
↓ 6 callersFunction_make_session_info
(session)
tests/shutdown_test.py:28
↓ 6 callersFunctioncompileMediaConstraints
( src: MediaStreamConstraints | undefined, videoDeviceId: string | undefined, audioDeviceId: string | un
streamlit_webrtc/frontend/src/media-constraint.ts:1
↓ 6 callersFunctioncompile_state
(component_value)
streamlit_webrtc/component.py:246
↓ 6 callersFunctioncreate_audio_source_track
( callback: AudioSourceCallback, key: str, sample_rate: int = 48000, ptime: float = 0.020,
streamlit_webrtc/factory.py:515
↓ 6 callersFunctioncreate_pcm_audio_source_track
Create a source track that plays s16-mono PCM pushed from any thread. Mirrors :func:`create_audio_source_track`'s key-based session cache so
streamlit_webrtc/factory.py:448
↓ 6 callersMethodis_alive
(self)
tests/shutdown_test.py:188
↓ 6 callersFunctionrun
()
tests/source_test.py:41
↓ 5 callersFunction_get_current_session_state
()
streamlit_webrtc/factory.py:48
↓ 5 callersFunction_install_cached_with_shutdown_observer
( *, session_state: Any, cache_key: str, observer_cache_key: str, cached: Any, shutdow
streamlit_webrtc/factory.py:84
↓ 5 callersFunction_notify_track_created
( callback: Callable[[TrackType, MediaStreamTrack], None], role: Literal["input", "output"], track
streamlit_webrtc/webrtc.py:114
↓ 5 callersMethod_set_state
(self, state: WebRtcStreamerState)
streamlit_webrtc/component.py:165
↓ 5 callersFunction_setup_loopback
Build a client / worker pair and complete the SDP handshake. The caller is responsible for tearing both sides down with `_teardown_loopback`
tests/webrtc_loopback_test.py:137
↓ 5 callersMethod_sink
(self)
tests/component_pure_test.py:118
↓ 5 callersFunction_validate_lifecycle_scope
(lifecycle_scope: str)
streamlit_webrtc/factory.py:75
↓ 5 callersFunctioncompile_rtc_configuration
( rtc_configuration: Union[RTCConfiguration, dict[str, Any]], )
streamlit_webrtc/config.py:50
↓ 5 callersFunctioncompile_rtc_ice_server
( ice_server: Union[RTCIceServer, dict[str, Any]], )
streamlit_webrtc/config.py:25
↓ 5 callersFunctiongetMediaUsage
( constraintsFromPython?: MediaStreamConstraints, )
streamlit_webrtc/frontend/src/media-constraint.ts:47
↓ 5 callersFunctionloop_context
(loop: asyncio.AbstractEventLoop)
streamlit_webrtc/eventloop.py:14
↓ 5 callersMethodrecv
(self, frame: FrameT)
streamlit_webrtc/models.py:62
↓ 5 callersMethodrecv
(self)
streamlit_webrtc/mix.py:272
↓ 5 callersMethodresult
(self, timeout=None)
tests/webrtc_loopback_test.py:76
↓ 5 callersMethodupdate_callbacks
( self, frame_callback: Optional[FrameCallback[FrameT]], queued_frames_callback: Optio
streamlit_webrtc/models.py:51
↓ 4 callersFunction_handle_worker_lifecycle
Reconcile the worker against the frontend's current state. Three sub-cases, in order: - **Stop**: the frontend is idle but a worker is alive
streamlit_webrtc/component.py:417
↓ 4 callersFunctionareTracksEnabled
(stream: MediaStream, kind: TrackKind)
streamlit_webrtc/frontend/src/InputMediaControls.tsx:22
↓ 4 callersFunctioncompile_ice_servers
( ice_servers: Union[List[RTCIceServer], List[dict[str, Any]]], )
streamlit_webrtc/config.py:40
↓ 4 callersFunctionget_global_event_loop
()
streamlit_webrtc/eventloop.py:8
↓ 4 callersMethodhasTrack
(self)
streamlit_webrtc/sink.py:31
↓ 3 callersFunction_make_callback
(sample_rate: int, samples_per_frame: int)
tests/source_test.py:13
↓ 3 callersFunction_make_context
(worker)
tests/streamer_context_test.py:6
↓ 3 callersFunction_output_frame
()
tests/mix_test.py:29
↓ 3 callersFunction_patches
Patch the session_info / script_run_count lookups together so each test only juggles two return values.
tests/get_or_create_context_test.py:23
↓ 3 callersFunction_processor_for
(kind: str)
streamlit_webrtc/webrtc.py:163
↓ 3 callersFunction_resolve_output
Pick the track that should be sent back to the peer for ``kind``. Precedence: an explicit ``source_*_track`` wins (optionally wrapped
streamlit_webrtc/webrtc.py:169
↓ 3 callersFunction_sink_for
(kind: str)
streamlit_webrtc/webrtc.py:160
↓ 3 callersFunction_teardown
( mix_track: MediaStreamMixTrack, inputs: List[VideoSourceTrack] )
tests/mix_test.py:34
↓ 3 callersFunction_wire_ice
Trickle ICE candidates in both directions. aiortc's `setLocalDescription` waits for ICE gathering, so host candidates are embedded in the ini
tests/webrtc_loopback_test.py:108
↓ 3 callersFunction_wrap_with_processor
Wrap ``track`` in a kind-matched process track when a processor is given, otherwise return ``track`` unchanged.
streamlit_webrtc/webrtc.py:91
↓ 3 callersFunctioncb
(frame: av.VideoFrame)
tests/webrtc_loopback_test.py:181
↓ 3 callersFunctioncreate_process_track
( input_track, *, processor_factory: AudioProcessorFactory[AudioProcessorT], async_processing:
streamlit_webrtc/factory.py:147
↓ 3 callersFunctiondownload_file
(url, download_to: Path, expected_size=None)
sample_utils/download.py:8
↓ 3 callersFunctionget_global_relay
()
streamlit_webrtc/relay.py:9
↓ 3 callersFunctionget_script_run_count
Returns `session_info.script_run_count`. See https://github.com/whitphx/streamlit-webrtc/issues/709 for the history behind this helper (older
streamlit_webrtc/session_info.py:31
↓ 3 callersFunctionget_this_session_info
()
streamlit_webrtc/session_info.py:20
↓ 3 callersFunctionisWebRtcMode
(val: unknown)
streamlit_webrtc/frontend/src/webrtc/index.ts:8
↓ 3 callersMethodstop
(self)
streamlit_webrtc/process.py:44
↓ 3 callersFunctionstopAllTracks
(stream: MediaStream)
streamlit_webrtc/frontend/src/DeviceSelect/utils.ts:1
↓ 2 callersMethod_call_callback
(self, pts: int, time_base: fractions.Fraction)
streamlit_webrtc/source.py:77
↓ 2 callersMethod_call_callback
(self, pts: int, time_base: fractions.Fraction)
streamlit_webrtc/source.py:163
↓ 2 callersFunction_get_current_page_script_hash
(app_session: AppSession)
streamlit_webrtc/shutdown.py:14
↓ 2 callersFunction_make_audio_callback_with_optional_delay
Audio callback that sleeps `delay_on_call[n]` on the n-th invocation (1-based).
tests/source_test.py:107
↓ 2 callersFunction_make_video_callback_with_optional_delay
(delay_on_call: dict[int, float])
tests/source_test.py:187
↓ 2 callersFunction_reset_context
Tear down worker / signalling state so the next lifecycle reconciliation treats the component as freshly mounted.
streamlit_webrtc/component.py:326
↓ 2 callersFunction_run_in_thread
(callback: Callable[[], object])
tests/factory_lifecycle_scope_test.py:84
↓ 2 callersFunction_sendback_for
(kind: str)
streamlit_webrtc/webrtc.py:166
↓ 2 callersFunction_session_state_get
(session_state: Any, key: str)
streamlit_webrtc/factory.py:61
↓ 2 callersFunction_session_state_pop
(session_state: Any, key: str)
streamlit_webrtc/factory.py:67
↓ 2 callersMethod_unset_processors
(self)
streamlit_webrtc/webrtc.py:767
↓ 2 callersMethodadd_ice_candidate
(self, candidate: RTCIceCandidate)
streamlit_webrtc/webrtc.py:701
↓ 2 callersFunctioncreate_mix_track
( kind: str, mixer_callback: MixerCallback[FrameT], key: str, mixer_output_interval: float = 1
streamlit_webrtc/factory.py:260
↓ 2 callersFunctiondownload_file
(url, download_to: Path, expected_size=None)
app_deepspeech.py:24
↓ 2 callersFunctionensureValidSelection
( devices: MediaDeviceInfo[], selectedDeviceId: MediaDeviceInfo["deviceId"] | undefined, )
streamlit_webrtc/frontend/src/DeviceSelect/DeviceSelect.tsx:27
↓ 2 callersFunctiongetTracks
(stream: MediaStream, kind: TrackKind)
streamlit_webrtc/frontend/src/InputMediaControls.tsx:18
↓ 2 callersFunctionget_available_ice_servers
()
streamlit_webrtc/credentials.py:86
↓ 2 callersMethodget_frame
(self, block: bool = True, timeout: Optional[float] = None)
streamlit_webrtc/receive.py:65
↓ 2 callersMethodget_frames
( self, block: bool = True, timeout: Optional[float] = None )
streamlit_webrtc/receive.py:70
↓ 2 callersFunctionmakeStream
({ videoTrack, audioTrack, }: { videoTrack?: Pick<MediaStreamTrack, "enabled">; audioTrack?: Pick<Medi
streamlit_webrtc/frontend/src/InputMediaControls.test.tsx:9
next →1–100 of 467, ranked by callers