Skip to content

Commit 37d15ad

Browse files
koumiGooglecopybara-github
authored andcommitted
chore: Reorganize data channel types
PiperOrigin-RevId: 723647130
1 parent 2be27b9 commit 37d15ad

File tree

3 files changed

+194
-158
lines changed

3 files changed

+194
-158
lines changed

web/internal/channel_handlers/media_entries_channel_handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import {
2222
DeletedMediaEntry,
2323
MediaEntriesChannelToClient,
24-
MediaEntry as MediaEntryResource,
24+
MediaEntryResource,
2525
} from '../../types/datachannels';
2626
import {LogLevel} from '../../types/enums';
2727
import {

web/internal/channel_handlers/video_assignment_channel_handler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import {
2323
MediaApiResponseStatus,
2424
SetVideoAssignmentRequest,
2525
SetVideoAssignmentResponse,
26-
VideoAssignment,
2726
VideoAssignmentChannelFromClient,
2827
VideoAssignmentChannelToClient,
28+
VideoAssignmentResource,
2929
} from '../../types/datachannels';
3030
import {LogLevel} from '../../types/enums';
3131
import {
@@ -123,7 +123,7 @@ export class VideoAssignmentChannelHandler {
123123
this.pendingRequestResolveMap.get(response.requestId)?.(response.status);
124124
}
125125

126-
private onVideoAssignmentResources(resources: VideoAssignment[]) {
126+
private onVideoAssignmentResources(resources: VideoAssignmentResource[]) {
127127
resources.forEach((resource) => {
128128
this.channelLogger?.log(
129129
LogLevel.RESOURCES,
@@ -136,7 +136,7 @@ export class VideoAssignmentChannelHandler {
136136
});
137137
}
138138

139-
private onVideoAssignment(videoAssignment: VideoAssignment) {
139+
private onVideoAssignment(videoAssignment: VideoAssignmentResource) {
140140
const canvases = videoAssignment.videoAssignment.canvases;
141141
canvases.forEach(
142142
(canvas: {canvasId: number; ssrc?: number; mediaEntryId: number}) => {

0 commit comments

Comments
 (0)