Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example: replace logo video with a screen-sharing track of the primary screen #216

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
330 changes: 307 additions & 23 deletions examples/Cargo.lock

Large diffs are not rendered by default.

25 changes: 13 additions & 12 deletions examples/wgpu_room/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
[package]
edition = "2021"
name = "wgpu_room"
version = "0.1.1"
edition = "2021"

[features]
default = []
tracing = ["console-subscriber", "tokio/tracing"]

[dependencies]
tokio = { version = "1", features = ["full", "parking_lot"] }
livekit = { path = "../../livekit", version = "0.2.0", features = ["native-tls"] }
futures = "0.3"
winit = "0.28"
parking_lot = { version = "0.12.1", features = ["deadlock_detection"] }
image = "0.24"
wgpu = "0.16"
console-subscriber = {version = "0.1.10", features = ["parking_lot"], optional = true}
eframe = {version = "0.22.0", default-features = false, features = ["default_fonts", "wgpu", "persistence"]}
egui = "0.22.0"
egui-wgpu = "0.22.0"
eframe = { version = "0.22.0", default-features = false, features = ["default_fonts", "wgpu", "persistence"] }
serde = { version = "1", features = ["derive"] }
log = "0.4"
env_logger = "0.10.0"
console-subscriber = { version = "0.1.10", features = ["parking_lot"], optional = true }
futures = "0.3"
image = "0.24"
livekit = {path = "../../livekit", version = "0.2.0", features = ["native-tls"]}
log = "0.4"
parking_lot = {version = "0.12.1", features = ["deadlock_detection"]}
screenshots = "0.8.4"
serde = {version = "1", features = ["derive"]}
tokio = {version = "1", features = ["full", "parking_lot"]}
wgpu = "0.16"
winit = "0.28"
4 changes: 2 additions & 2 deletions examples/wgpu_room/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ impl LkApp {
});

ui.menu_button("Publish", |ui| {
if ui.button("Logo").clicked() {
let _ = self.service.send(AsyncCmd::ToggleLogo);
if ui.button("Screen-sharing").clicked() {
let _ = self.service.send(AsyncCmd::ToggleScreensharing);
}
if ui.button("SineWave").clicked() {
let _ = self.service.send(AsyncCmd::ToggleSine);
Expand Down
209 changes: 0 additions & 209 deletions examples/wgpu_room/src/logo_track.rs

This file was deleted.

2 changes: 1 addition & 1 deletion examples/wgpu_room/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::thread;
use std::time::Duration;

mod app;
mod logo_track;
mod screensharing_track;
mod service;
mod sine_track;
mod video_grid;
Expand Down
Binary file removed examples/wgpu_room/src/moving-logo.png
Binary file not shown.
Loading
Loading