From 42cf77f0d6448f576c4d53239e4203cb39108fdd Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Fri, 13 Aug 2021 11:48:58 -0700 Subject: [PATCH] upgrade to retina v0.1.0 --- CHANGELOG.md | 3 + server/Cargo.lock | 137 ++++++++++------------------------------------ server/Cargo.toml | 2 +- 3 files changed, 32 insertions(+), 110 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf54bb45..27998d58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,9 @@ Each release is tagged in Git and on the Docker repository stretched on Firefox. Now both live streams and playback are fully correct on all browsers. * UI: better error message on browsers where live view is unsupported. +* upgrade to retina v0.1.0, which uses `SET_PARAMETERS` rather than + `GET_PARAMETERS` as a RTSP keepalive. GW Security cameras would ignored + the latter, causing Moonfire NVR to drop the connection every minute. ## `v0.6.4` (2021-06-28) diff --git a/server/Cargo.lock b/server/Cargo.lock index d7348fe4..a01b9261 100644 --- a/server/Cargo.lock +++ b/server/Cargo.lock @@ -45,15 +45,9 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" dependencies = [ - "winapi 0.3.9", + "winapi", ] -[[package]] -name = "anyhow" -version = "1.0.41" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15af2628f6890fe2609a3b91bef4c83450512802e59489f9c1cb1fa5df064a61" - [[package]] name = "argon2rs" version = "0.2.5" @@ -91,17 +85,6 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" -[[package]] -name = "async-trait" -version = "0.1.50" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b98e84bbb4cbcdd97da190ba0c58a1bb0de2c1fdf67d159e192ed766aeca722" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "atty" version = "0.2.14" @@ -110,7 +93,7 @@ checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" dependencies = [ "hermit-abi", "libc", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -157,12 +140,6 @@ dependencies = [ "getrandom 0.2.3", ] -[[package]] -name = "bitflags" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aad18937a628ec6abcd26d1489012cc0e18c21798210f491af69ded9b881106d" - [[package]] name = "bitflags" version = "1.2.1" @@ -304,7 +281,7 @@ dependencies = [ "num-integer", "num-traits", "time", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -333,7 +310,7 @@ checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002" dependencies = [ "ansi_term", "atty", - "bitflags 1.2.1", + "bitflags", "term_size", "textwrap", "unicode-width", @@ -556,7 +533,7 @@ checksum = "3fd78930633bd1c6e35c4b42b1df7b0cbc6bc191146e512bb3bedf243fcc3901" dependencies = [ "libc", "redox_users", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -957,7 +934,7 @@ dependencies = [ "pin-project", "smallvec", "tokio", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1084,7 +1061,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6607c62aa161d23d17a9072cc5da0be67cdfc89d3afb1e8d9c842bebc2525ffe" dependencies = [ "arrayvec 0.5.2", - "bitflags 1.2.1", + "bitflags", "cfg-if 1.0.0", "ryu", "static_assertions", @@ -1216,7 +1193,7 @@ dependencies = [ "log", "miow", "ntapi", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1225,7 +1202,7 @@ version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1263,7 +1240,7 @@ dependencies = [ "log", "moonfire-base", "mylog", - "nix 0.22.0", + "nix", "num-rational 0.4.0", "odds", "parking_lot", @@ -1319,7 +1296,7 @@ dependencies = [ "moonfire-db", "moonfire-ffmpeg", "mylog", - "nix 0.22.0", + "nix", "nom", "num-rational 0.4.0", "parking_lot", @@ -1381,25 +1358,13 @@ dependencies = [ "pkg-config", ] -[[package]] -name = "nix" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47e49f6982987135c5e9620ab317623e723bd06738fd85377e8d55f57c8b6487" -dependencies = [ - "bitflags 0.7.0", - "cfg-if 0.1.10", - "libc", - "void", -] - [[package]] name = "nix" version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf1e25ee6b412c2a1e3fcb6a4499a5c1bfe7f43e014bdce9a6b6666e5aa2d187" dependencies = [ - "bitflags 1.2.1", + "bitflags", "cc", "cfg-if 1.0.0", "libc", @@ -1431,7 +1396,7 @@ version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1581,7 +1546,7 @@ dependencies = [ "libc", "redox_syscall 0.2.9", "smallvec", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1833,7 +1798,7 @@ version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5ab49abadf3f9e1c4bc499e8845e152ad87d2ad2d30371841171169e9d75feee" dependencies = [ - "bitflags 1.2.1", + "bitflags", ] [[package]] @@ -1868,7 +1833,7 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1905,9 +1870,9 @@ dependencies = [ [[package]] name = "retina" -version = "0.0.5" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712fc240bf72a74aafd9dfe0f5ff8e16180b3fb4dd3fec5351a8361a89bf8f57" +checksum = "90f1c5358f01c77609ea1b56b86b96ff3b14e2f535bdd51fc214144cf266738b" dependencies = [ "base64", "bitreader", @@ -1920,7 +1885,6 @@ dependencies = [ "once_cell", "pin-project", "pretty-hex", - "rtcp", "rtp-rs", "rtsp-types", "sdp", @@ -1955,7 +1919,7 @@ dependencies = [ "spin", "untrusted", "web-sys", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1965,19 +1929,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ffc936cf8a7ea60c58f030fd36a612a48f440610214dc54bc36431f9ea0c3efb" dependencies = [ "libc", - "winapi 0.3.9", -] - -[[package]] -name = "rtcp" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4eca9024c0a90823c74c97d4bca7a3163a18211b0c6300d3166598b24d2f224" -dependencies = [ - "anyhow", - "bytes", - "thiserror", - "webrtc-util", + "winapi", ] [[package]] @@ -2004,7 +1956,7 @@ version = "0.25.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57adcf67c8faaf96f3248c2a7b419a0dbc52ebe36ba83dd57fe83827c1ea4eb3" dependencies = [ - "bitflags 1.2.1", + "bitflags", "fallible-iterator", "fallible-streaming-iterator", "hashlink", @@ -2228,7 +2180,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e3dfc207c526015c632472a77be09cf1b6e46866581aecae5cc38fb4235dea2" dependencies = [ "libc", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2331,7 +2283,7 @@ dependencies = [ "rand", "redox_syscall 0.2.9", "remove_dir_all", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2342,7 +2294,7 @@ checksum = "edd106a334b7657c10b7c540a0106114feadeb4dc314513e97df481d5d966f42" dependencies = [ "byteorder", "dirs", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2352,7 +2304,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9" dependencies = [ "libc", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2393,7 +2345,7 @@ checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" dependencies = [ "libc", "wasi 0.10.0+wasi-snapshot-preview1", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2428,7 +2380,7 @@ dependencies = [ "pin-project-lite", "signal-hook-registry", "tokio-macros", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2648,12 +2600,6 @@ version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe" -[[package]] -name = "void" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" - [[package]] name = "want" version = "0.3.0" @@ -2776,33 +2722,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "webrtc-util" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9e86e12bbb208e75f1fe08b2f9705a12dd8cfd7d984b2c0020718b517c3464f" -dependencies = [ - "anyhow", - "async-trait", - "bitflags 1.2.1", - "bytes", - "ipnet", - "lazy_static", - "libc", - "log", - "nix 0.8.1", - "rand", - "thiserror", - "tokio", - "winapi 0.2.8", -] - -[[package]] -name = "winapi" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" - [[package]] name = "winapi" version = "0.3.9" @@ -2831,7 +2750,7 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0120db82e8a1e0b9fb3345a539c478767c0048d842860994d96113d5b667bd69" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] diff --git a/server/Cargo.toml b/server/Cargo.toml index bc786af9..67b19793 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -46,7 +46,7 @@ nom = "6.0.0" parking_lot = { version = "0.11.1", features = [] } protobuf = { git = "https://github.com/stepancheg/rust-protobuf" } reffers = "0.6.0" -retina = "0.0.5" +retina = "0.1.0" ring = "0.16.2" rusqlite = "0.25.3" serde = { version = "1.0", features = ["derive"] }