Fix voice, voice_udp features

This commit is contained in:
bitfl0wer 2024-07-13 14:53:04 +02:00
parent 7554f90187
commit ebcb6b65e4
No known key found for this signature in database
GPG Key ID: 0ACD574FCF5226CF
4 changed files with 7 additions and 6 deletions

View File

@ -6,7 +6,6 @@
use std::collections::HashMap;
use log::{self, debug};
use reqwest::{Client, RequestBuilder, Response};
use serde::Deserialize;
use serde_json::from_str;

View File

@ -2,9 +2,10 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
use pubserve::Publisher;
use crate::{
errors::VoiceGatewayError,
gateway::GatewayEvent,
types::{
SessionDescription, SessionUpdate, Speaking, SsrcDefinition, VoiceBackendVersion,
VoiceClientConnectFlags, VoiceClientConnectPlatform, VoiceClientDisconnection,

View File

@ -6,6 +6,7 @@ use std::{sync::Arc, time::Duration};
use log::*;
use pubserve::Publisher;
use tokio::sync::Mutex;
use futures_util::SinkExt;
@ -16,7 +17,6 @@ use crate::gateway::Stream;
use crate::gateway::WebSocketBackend;
use crate::{
errors::VoiceGatewayError,
gateway::GatewayEvent,
types::{
VoiceGatewayReceivePayload, VoiceHelloData, WebSocketEvent, VOICE_BACKEND_VERSION,
VOICE_CLIENT_CONNECT_FLAGS, VOICE_CLIENT_CONNECT_PLATFORM, VOICE_CLIENT_DISCONNECT,

View File

@ -3,8 +3,9 @@
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
use discortp::{rtcp::Rtcp, rtp::Rtp};
use pubserve::Publisher;
use crate::{gateway::GatewayEvent, types::WebSocketEvent};
use crate::types::WebSocketEvent;
impl WebSocketEvent for Rtp {}
impl WebSocketEvent for Rtcp {}
@ -18,8 +19,8 @@ pub struct VoiceUDPEvents {
impl Default for VoiceUDPEvents {
fn default() -> Self {
Self {
rtp: GatewayEvent::new(),
rtcp: GatewayEvent::new(),
rtp: Publisher::new(),
rtcp: Publisher::new(),
}
}
}