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