Skip to content

Commit

Permalink
chore: codec -> codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlaz committed Dec 10, 2024
1 parent 5553488 commit 157d56e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 27 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/Call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ export class Call {
return [
SubscribeOption.create({
trackType: TrackType.VIDEO,
codec: [
codecs: [
{ name: subscriberCodec.split('/').pop(), fmtp: subscriberFmtpLine },
],
}),
Expand Down
41 changes: 19 additions & 22 deletions packages/client/src/gen/video/sfu/event/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,26 @@
// @generated from protobuf file "video/sfu/event/events.proto" (package "stream.video.sfu.event", syntax proto3)
// tslint:disable
import { MessageType } from '@protobuf-ts/runtime';
import {
CallEndedReason,
CallGrants,
CallState,
ClientDetails,
Codec,
ConnectionQuality,
Error as Error$,
GoAwayReason,
ICETrickle as ICETrickle$,
Participant,
ParticipantCount,
PeerType,
Pin,
PublishOption,
SubscribeOption,
TrackInfo,
TrackType,
TrackUnpublishReason,
WebsocketReconnectStrategy,
} from '../models/models';
import { CallEndedReason } from '../models/models';
import { GoAwayReason } from '../models/models';
import { CallGrants } from '../models/models';
import { Codec } from '../models/models';
import { ConnectionQuality } from '../models/models';
import { CallState } from '../models/models';
import { TrackSubscriptionDetails } from '../signal_rpc/signal';

import { TrackInfo } from '../models/models';
import { SubscribeOption } from '../models/models';
import { ClientDetails } from '../models/models';
import { TrackUnpublishReason } from '../models/models';
import { Participant } from '../models/models';
import { TrackType } from '../models/models';
import { ParticipantCount } from '../models/models';
import { PeerType } from '../models/models';
import { WebsocketReconnectStrategy } from '../models/models';
import { Error as Error$ } from '../models/models';
import { Pin } from '../models/models';
import { PublishOption } from '../models/models';
import { ICETrickle as ICETrickle$ } from '../models/models';
/**
* SFUEvent is a message that is sent from the SFU to the client.
*
Expand Down
7 changes: 3 additions & 4 deletions packages/client/src/gen/video/sfu/models/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import { MessageType } from '@protobuf-ts/runtime';
import { Struct } from '../../../google/protobuf/struct';
import { Timestamp } from '../../../google/protobuf/timestamp';

/**
* CallState is the current state of the call
* as seen by an SFU.
Expand Down Expand Up @@ -209,9 +208,9 @@ export interface SubscribeOption {
/**
* The codecs supported by the subscriber for decoding tracks.
*
* @generated from protobuf field: repeated stream.video.sfu.models.Codec codec = 2;
* @generated from protobuf field: repeated stream.video.sfu.models.Codec codecs = 2;
*/
codec: Codec[];
codecs: Codec[];
}
/**
* PublishOption represents the configuration options for publishing a track.
Expand Down Expand Up @@ -1177,7 +1176,7 @@ class SubscribeOption$Type extends MessageType<SubscribeOption> {
},
{
no: 2,
name: 'codec',
name: 'codecs',
kind: 'message',
repeat: 1 /*RepeatType.PACKED*/,
T: () => Codec,
Expand Down

0 comments on commit 157d56e

Please sign in to comment.