mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
refactor(voice): remove screen share codec renegotiation (#2417)
This commit is contained in:
1 parent
f5f60c66e7
commit
c97bc53342
80 files changed
+1360
-4726
No files matched your search
@@ -12,7 +12,6 @@ import type {
|
||||
VoiceEngineV2GatewayDesiredVoiceState,
|
||||
VoiceEngineV2GatewayVoiceStateWrite,
|
||||
VoiceEngineV2LifecycleReason,
|
||||
VoiceEngineV2LocalStreamSource,
|
||||
VoiceEngineV2MicrophoneOptions,
|
||||
VoiceEngineV2Model,
|
||||
VoiceEngineV2NativeAudioTapOptions,
|
||||
@@ -27,7 +26,6 @@ import type {
|
||||
VoiceEngineV2ScreenEncodingOptions,
|
||||
VoiceEngineV2ScreenOptions,
|
||||
VoiceEngineV2TimerOptions,
|
||||
VoiceEngineV2VideoCodec,
|
||||
VoiceEngineV2WatchedStream,
|
||||
VoiceEngineV2WatchedStreamKey,
|
||||
} from '../protocol';
|
||||
@@ -113,45 +111,6 @@ export class VoiceEngineV2Controller {
|
||||
this.runtime.dispatch({type: 'camera.updateEncodingRequested', options});
|
||||
}
|
||||
|
||||
setVideoCodecOverride(source: VoiceEngineV2LocalStreamSource, codec: VoiceEngineV2VideoCodec | null): void {
|
||||
this.runtime.dispatch({type: 'codecNegotiation.overrideSetRequested', source, codec});
|
||||
}
|
||||
|
||||
setLocalVideoCodecCapability(supportedVideoCodecs: Array<VoiceEngineV2VideoCodec>): void {
|
||||
this.runtime.dispatch({type: 'codecNegotiation.localCapabilityChanged', supportedVideoCodecs});
|
||||
}
|
||||
|
||||
registerLocalStreamCodec(
|
||||
source: VoiceEngineV2LocalStreamSource,
|
||||
streamIdentity: string,
|
||||
preferredCodec: VoiceEngineV2VideoCodec,
|
||||
): void {
|
||||
this.runtime.dispatch({type: 'codecNegotiation.streamRegistered', source, streamIdentity, preferredCodec});
|
||||
}
|
||||
|
||||
unregisterLocalStreamCodec(source: VoiceEngineV2LocalStreamSource): void {
|
||||
this.runtime.dispatch({type: 'codecNegotiation.streamUnregistered', source});
|
||||
}
|
||||
|
||||
reportStreamViewer(
|
||||
source: VoiceEngineV2LocalStreamSource,
|
||||
viewerIdentity: string,
|
||||
watching: boolean,
|
||||
supportedVideoCodecs: Array<VoiceEngineV2VideoCodec>,
|
||||
): void {
|
||||
this.runtime.dispatch({
|
||||
type: 'codecNegotiation.viewerChanged',
|
||||
source,
|
||||
viewerIdentity,
|
||||
watching,
|
||||
supportedVideoCodecs,
|
||||
});
|
||||
}
|
||||
|
||||
reportRemoteVideoCodecCapability(identity: string, supportedVideoCodecs: Array<VoiceEngineV2VideoCodec>): void {
|
||||
this.runtime.dispatch({type: 'codecNegotiation.remoteCapabilityChanged', identity, supportedVideoCodecs});
|
||||
}
|
||||
|
||||
unpublishCamera(options?: VoiceEngineV2CameraOptions): void {
|
||||
this.runtime.dispatch({type: 'camera.unpublishRequested', options});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user