Skip to content

Instantly share code, notes, and snippets.

MediaStreamTrack control bandwidth

Enviroment

site: webrtc-sample (bandwidth)
browser: Chrome, Firefox

stop encoding

// https://stackoverflow.com/a/77364499/22575350
const pause=()=>{
@TLabAltoh
TLabAltoh / rust-axum-ws-room_practice.md
Last active June 2, 2025 12:56
Sample of implementing a room chat function using WebSocket in Rust's Axum library

rust-axum-ws-room_practice

I have tried the latest source. see axum_ws_rooms

Cargo.toml
[package]
name = "axum-ws-room"
version = "0.1.0"

html input element's focus in/out interaction

Case 1: Switch virtual keyborad's on/off via html input element's focus event

It is possible to switch keybord's active state via html input's focus event, but it is with some limmitation. Here is an example and this feature has implemented on this sample repositly.


C#

@TLabAltoh
TLabAltoh / sample_of_shared_memory_in_cpp.md
Last active June 2, 2025 13:00
Sample of shared memory using cpp

Sample of Shared Memory in Cpp

main.cpp
#pragma once

#include "shared_memory_util.h"

using namespace winrt;