update webrtc types package
This commit is contained in:
parent
526a8da8f5
commit
ac1779b480
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -40,6 +40,7 @@
|
||||
"devDependencies": {
|
||||
"@eslint/eslintrc": "^3.3.1",
|
||||
"@eslint/js": "^9.14.0",
|
||||
"@spacebarchat/spacebar-webrtc-types": "^1.0.1",
|
||||
"@types/amqplib": "^0.10.5",
|
||||
"@types/bcrypt": "^5.0.2",
|
||||
"@types/body-parser": "^1.19.5",
|
||||
@ -67,7 +68,6 @@
|
||||
"husky": "^9.1.7",
|
||||
"prettier": "^3.5.3",
|
||||
"pretty-quick": "^4.1.1",
|
||||
"spacebar-webrtc-types": "github:spacebarchat/spacebar-webrtc-types",
|
||||
"typescript": "^5.8.3"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -132,4 +132,4 @@
|
||||
"pg": "^8.14.1",
|
||||
"sqlite3": "^5.1.7"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -24,15 +24,15 @@ import {
|
||||
VoiceState,
|
||||
} from "@spacebar/util";
|
||||
import {
|
||||
generateSsrc,
|
||||
mediaServer,
|
||||
Send,
|
||||
VoiceOPCodes,
|
||||
VoicePayload,
|
||||
WebRtcWebSocket,
|
||||
Send,
|
||||
generateSsrc,
|
||||
} from "@spacebar/webrtc";
|
||||
import { SSRCs } from "@spacebarchat/spacebar-webrtc-types";
|
||||
import { subscribeToProducers } from "./Video";
|
||||
import { SSRCs } from "spacebar-webrtc-types";
|
||||
|
||||
export async function onIdentify(this: WebRtcWebSocket, data: VoicePayload) {
|
||||
clearTimeout(this.readyTimeout);
|
||||
|
||||
@ -18,12 +18,12 @@
|
||||
import { Stream, validateSchema, VoiceVideoSchema } from "@spacebar/util";
|
||||
import {
|
||||
mediaServer,
|
||||
Send,
|
||||
VoiceOPCodes,
|
||||
VoicePayload,
|
||||
WebRtcWebSocket,
|
||||
Send,
|
||||
} from "@spacebar/webrtc";
|
||||
import type { WebRtcClient } from "spacebar-webrtc-types";
|
||||
import type { WebRtcClient } from "@spacebarchat/spacebar-webrtc-types";
|
||||
|
||||
export async function onVideo(this: WebRtcWebSocket, payload: VoicePayload) {
|
||||
if (!this.webRtcClient) return;
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import type { SignalingDelegate } from "spacebar-webrtc-types";
|
||||
import type { SignalingDelegate } from "@spacebarchat/spacebar-webrtc-types";
|
||||
import { green, red } from "picocolors";
|
||||
|
||||
export let mediaServer: SignalingDelegate;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { WebSocket } from "@spacebar/gateway";
|
||||
import type { WebRtcClient } from "spacebar-webrtc-types";
|
||||
import type { WebRtcClient } from "@spacebarchat/spacebar-webrtc-types";
|
||||
|
||||
export interface WebRtcWebSocket extends WebSocket {
|
||||
type: "guild-voice" | "dm-voice" | "stream";
|
||||
|
||||
Reference in New Issue
Block a user