Skip to content
Merged
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
178 changes: 178 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
5 changes: 4 additions & 1 deletion crates/livekit-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@ version = "0.1.0"
edition = "2021"

[dependencies]
serde_json = "1.0"
log = "0.4"
tokio-tungstenite = "0.17.2"
tokio-tungstenite = { version = "0.17.2", features = ["native-tls"] }
tokio = { version = "1.20.1", features = ["full"] }
url = "2.2.2"
futures-util = "0.3.23"
thiserror = "1.0"
prost = "0.11.0"
prost-types = "0.11.1"
anyhow = "1.0.63"
livekit-webrtc = { path = "../livekit-webrtc" }
lazy_static = "1.4.0"

[build-dependencies]
prost-build = { version = "0.10" }
Expand Down
2 changes: 2 additions & 0 deletions crates/livekit-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ pub mod proto {
include!(concat!(env!("OUT_DIR"), "/livekit.rs"));
}

mod lk_runtime;
mod pc_transport;
mod rtc_engine;
mod signal_client;

Expand Down
25 changes: 25 additions & 0 deletions crates/livekit-core/src/lk_runtime.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
use log::trace;

use livekit_webrtc::peer_connection_factory::PeerConnectionFactory;
use livekit_webrtc::webrtc::RTCRuntime;

pub struct LKRuntime {
pub rtc_runtime: RTCRuntime,
pub pc_factory: PeerConnectionFactory,
}

impl LKRuntime {
pub fn new() -> Self {
trace!("LKRuntime::new()");
Self {
rtc_runtime: RTCRuntime::new(),
pc_factory: PeerConnectionFactory::new(),
}
}
}

impl Drop for LKRuntime {
fn drop(&mut self) {
trace!("LKRuntime::drop()");
}
}
Loading