@norskvideo/norsk-api 1.0.343 → 1.0.344

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/media_pb.ts CHANGED
@@ -621,6 +621,32 @@ proto3.util.setEnumType(SrtMode, "norsk.api.media.SrtMode", [
621
621
  { no: 1, name: "Caller" },
622
622
  ]);
623
623
 
624
+ /**
625
+ * @generated from enum norsk.api.media.TestCardPattern
626
+ */
627
+ export enum TestCardPattern {
628
+ /**
629
+ * @generated from enum value: Black = 0;
630
+ */
631
+ Black = 0,
632
+
633
+ /**
634
+ * @generated from enum value: Smpte75 = 1;
635
+ */
636
+ Smpte75 = 1,
637
+
638
+ /**
639
+ * @generated from enum value: Smpte100 = 2;
640
+ */
641
+ Smpte100 = 2,
642
+ }
643
+ // Retrieve enum metadata with: proto3.getEnumType(TestCardPattern)
644
+ proto3.util.setEnumType(TestCardPattern, "norsk.api.media.TestCardPattern", [
645
+ { no: 0, name: "Black" },
646
+ { no: 1, name: "Smpte75" },
647
+ { no: 2, name: "Smpte100" },
648
+ ]);
649
+
624
650
  /**
625
651
  * ///////////////////////////////
626
652
  * DeckLink Input
@@ -2647,6 +2673,13 @@ export class StreamMetadata_VideoMetadata extends Message<StreamMetadata_VideoMe
2647
2673
  */
2648
2674
  bitrate = 0;
2649
2675
 
2676
+ /**
2677
+ * The framerate of this video
2678
+ *
2679
+ * @generated from field: norsk.api.media.FrameRate frame_rate = 6;
2680
+ */
2681
+ frameRate?: FrameRate;
2682
+
2650
2683
  constructor(data?: PartialMessage<StreamMetadata_VideoMetadata>) {
2651
2684
  super();
2652
2685
  proto3.util.initPartial(data, this);
@@ -2659,6 +2692,7 @@ export class StreamMetadata_VideoMetadata extends Message<StreamMetadata_VideoMe
2659
2692
  { no: 3, name: "width", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
2660
2693
  { no: 4, name: "height", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
2661
2694
  { no: 5, name: "bitrate", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2695
+ { no: 6, name: "frame_rate", kind: "message", T: FrameRate },
2662
2696
  ]);
2663
2697
 
2664
2698
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamMetadata_VideoMetadata {
@@ -6068,15 +6102,30 @@ export class TestCardVideoConfiguration extends Message<TestCardVideoConfigurati
6068
6102
  resolution?: Resolution;
6069
6103
 
6070
6104
  /**
6071
- * @generated from field: string source_name = 2;
6105
+ * @generated from field: norsk.api.media.FrameRate frame_rate = 2;
6106
+ */
6107
+ frameRate?: FrameRate;
6108
+
6109
+ /**
6110
+ * @generated from field: string source_name = 3;
6072
6111
  */
6073
6112
  sourceName = "";
6074
6113
 
6075
6114
  /**
6076
- * @generated from field: int32 number_of_frames = 3;
6115
+ * @generated from field: int32 number_of_frames = 4;
6077
6116
  */
6078
6117
  numberOfFrames = 0;
6079
6118
 
6119
+ /**
6120
+ * @generated from field: bool realtime = 5;
6121
+ */
6122
+ realtime = false;
6123
+
6124
+ /**
6125
+ * @generated from field: norsk.api.media.TestCardPattern pattern = 6;
6126
+ */
6127
+ pattern = TestCardPattern.Black;
6128
+
6080
6129
  constructor(data?: PartialMessage<TestCardVideoConfiguration>) {
6081
6130
  super();
6082
6131
  proto3.util.initPartial(data, this);
@@ -6086,8 +6135,11 @@ export class TestCardVideoConfiguration extends Message<TestCardVideoConfigurati
6086
6135
  static readonly typeName = "norsk.api.media.TestCardVideoConfiguration";
6087
6136
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
6088
6137
  { no: 1, name: "resolution", kind: "message", T: Resolution },
6089
- { no: 2, name: "source_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6090
- { no: 3, name: "number_of_frames", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
6138
+ { no: 2, name: "frame_rate", kind: "message", T: FrameRate },
6139
+ { no: 3, name: "source_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6140
+ { no: 4, name: "number_of_frames", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
6141
+ { no: 5, name: "realtime", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
6142
+ { no: 6, name: "pattern", kind: "enum", T: proto3.getEnumType(TestCardPattern) },
6091
6143
  ]);
6092
6144
 
6093
6145
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TestCardVideoConfiguration {
@@ -6176,12 +6228,6 @@ export class VideoTestCardGeneratorEvent extends Message<VideoTestCardGeneratorE
6176
6228
  */
6177
6229
  value: Context;
6178
6230
  case: "outboundContext";
6179
- } | {
6180
- /**
6181
- * @generated from field: norsk.api.media.SubscriptionResponse subscription_response = 3;
6182
- */
6183
- value: SubscriptionResponse;
6184
- case: "subscriptionResponse";
6185
6231
  } | { case: undefined; value?: undefined } = { case: undefined };
6186
6232
 
6187
6233
  constructor(data?: PartialMessage<VideoTestCardGeneratorEvent>) {
@@ -6194,7 +6240,6 @@ export class VideoTestCardGeneratorEvent extends Message<VideoTestCardGeneratorE
6194
6240
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
6195
6241
  { no: 1, name: "node_id", kind: "message", T: MediaNodeId, oneof: "message" },
6196
6242
  { no: 2, name: "outbound_context", kind: "message", T: Context, oneof: "message" },
6197
- { no: 3, name: "subscription_response", kind: "message", T: SubscriptionResponse, oneof: "message" },
6198
6243
  ]);
6199
6244
 
6200
6245
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoTestCardGeneratorEvent {
@@ -16985,54 +17030,70 @@ export class StreamSyncEvent extends Message<StreamSyncEvent> {
16985
17030
  }
16986
17031
 
16987
17032
  /**
16988
- * @generated from message norsk.api.media.StreamProgramJoinConfiguration
17033
+ * @generated from message norsk.api.media.StreamAlignConfiguration
16989
17034
  */
16990
- export class StreamProgramJoinConfiguration extends Message<StreamProgramJoinConfiguration> {
17035
+ export class StreamAlignConfiguration extends Message<StreamAlignConfiguration> {
16991
17036
  /**
16992
17037
  * @generated from field: norsk.api.media.MediaNodeId id = 1;
16993
17038
  */
16994
17039
  id?: MediaNodeId;
16995
17040
 
16996
- constructor(data?: PartialMessage<StreamProgramJoinConfiguration>) {
17041
+ /**
17042
+ * The normalisd sample rate of the audio output
17043
+ *
17044
+ * @generated from field: norsk.api.media.SampleRate sample_rate = 2;
17045
+ */
17046
+ sampleRate = SampleRate.RATE_8000;
17047
+
17048
+ /**
17049
+ * The normalised frame rate of the video output
17050
+ *
17051
+ * @generated from field: norsk.api.media.FrameRate frame_rate = 3;
17052
+ */
17053
+ frameRate?: FrameRate;
17054
+
17055
+ constructor(data?: PartialMessage<StreamAlignConfiguration>) {
16997
17056
  super();
16998
17057
  proto3.util.initPartial(data, this);
16999
17058
  }
17000
17059
 
17001
17060
  static readonly runtime = proto3;
17002
- static readonly typeName = "norsk.api.media.StreamProgramJoinConfiguration";
17061
+ static readonly typeName = "norsk.api.media.StreamAlignConfiguration";
17003
17062
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
17004
17063
  { no: 1, name: "id", kind: "message", T: MediaNodeId },
17064
+ { no: 2, name: "sample_rate", kind: "enum", T: proto3.getEnumType(SampleRate) },
17065
+ { no: 3, name: "frame_rate", kind: "message", T: FrameRate },
17005
17066
  ]);
17006
17067
 
17007
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamProgramJoinConfiguration {
17008
- return new StreamProgramJoinConfiguration().fromBinary(bytes, options);
17068
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamAlignConfiguration {
17069
+ return new StreamAlignConfiguration().fromBinary(bytes, options);
17009
17070
  }
17010
17071
 
17011
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamProgramJoinConfiguration {
17012
- return new StreamProgramJoinConfiguration().fromJson(jsonValue, options);
17072
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamAlignConfiguration {
17073
+ return new StreamAlignConfiguration().fromJson(jsonValue, options);
17013
17074
  }
17014
17075
 
17015
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamProgramJoinConfiguration {
17016
- return new StreamProgramJoinConfiguration().fromJsonString(jsonString, options);
17076
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamAlignConfiguration {
17077
+ return new StreamAlignConfiguration().fromJsonString(jsonString, options);
17017
17078
  }
17018
17079
 
17019
- static equals(a: StreamProgramJoinConfiguration | PlainMessage<StreamProgramJoinConfiguration> | undefined, b: StreamProgramJoinConfiguration | PlainMessage<StreamProgramJoinConfiguration> | undefined): boolean {
17020
- return proto3.util.equals(StreamProgramJoinConfiguration, a, b);
17080
+ static equals(a: StreamAlignConfiguration | PlainMessage<StreamAlignConfiguration> | undefined, b: StreamAlignConfiguration | PlainMessage<StreamAlignConfiguration> | undefined): boolean {
17081
+ return proto3.util.equals(StreamAlignConfiguration, a, b);
17021
17082
  }
17022
17083
  }
17023
17084
 
17024
17085
  /**
17025
- * @generated from message norsk.api.media.StreamProgramJoinMessage
17086
+ * @generated from message norsk.api.media.StreamAlignMessage
17026
17087
  */
17027
- export class StreamProgramJoinMessage extends Message<StreamProgramJoinMessage> {
17088
+ export class StreamAlignMessage extends Message<StreamAlignMessage> {
17028
17089
  /**
17029
- * @generated from oneof norsk.api.media.StreamProgramJoinMessage.message
17090
+ * @generated from oneof norsk.api.media.StreamAlignMessage.message
17030
17091
  */
17031
17092
  message: {
17032
17093
  /**
17033
- * @generated from field: norsk.api.media.StreamProgramJoinConfiguration initial_config = 1;
17094
+ * @generated from field: norsk.api.media.StreamAlignConfiguration initial_config = 1;
17034
17095
  */
17035
- value: StreamProgramJoinConfiguration;
17096
+ value: StreamAlignConfiguration;
17036
17097
  case: "initialConfig";
17037
17098
  } | {
17038
17099
  /**
@@ -17042,41 +17103,41 @@ export class StreamProgramJoinMessage extends Message<StreamProgramJoinMessage>
17042
17103
  case: "subscription";
17043
17104
  } | { case: undefined; value?: undefined } = { case: undefined };
17044
17105
 
17045
- constructor(data?: PartialMessage<StreamProgramJoinMessage>) {
17106
+ constructor(data?: PartialMessage<StreamAlignMessage>) {
17046
17107
  super();
17047
17108
  proto3.util.initPartial(data, this);
17048
17109
  }
17049
17110
 
17050
17111
  static readonly runtime = proto3;
17051
- static readonly typeName = "norsk.api.media.StreamProgramJoinMessage";
17112
+ static readonly typeName = "norsk.api.media.StreamAlignMessage";
17052
17113
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
17053
- { no: 1, name: "initial_config", kind: "message", T: StreamProgramJoinConfiguration, oneof: "message" },
17114
+ { no: 1, name: "initial_config", kind: "message", T: StreamAlignConfiguration, oneof: "message" },
17054
17115
  { no: 2, name: "subscription", kind: "message", T: Subscription, oneof: "message" },
17055
17116
  ]);
17056
17117
 
17057
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamProgramJoinMessage {
17058
- return new StreamProgramJoinMessage().fromBinary(bytes, options);
17118
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamAlignMessage {
17119
+ return new StreamAlignMessage().fromBinary(bytes, options);
17059
17120
  }
17060
17121
 
17061
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamProgramJoinMessage {
17062
- return new StreamProgramJoinMessage().fromJson(jsonValue, options);
17122
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamAlignMessage {
17123
+ return new StreamAlignMessage().fromJson(jsonValue, options);
17063
17124
  }
17064
17125
 
17065
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamProgramJoinMessage {
17066
- return new StreamProgramJoinMessage().fromJsonString(jsonString, options);
17126
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamAlignMessage {
17127
+ return new StreamAlignMessage().fromJsonString(jsonString, options);
17067
17128
  }
17068
17129
 
17069
- static equals(a: StreamProgramJoinMessage | PlainMessage<StreamProgramJoinMessage> | undefined, b: StreamProgramJoinMessage | PlainMessage<StreamProgramJoinMessage> | undefined): boolean {
17070
- return proto3.util.equals(StreamProgramJoinMessage, a, b);
17130
+ static equals(a: StreamAlignMessage | PlainMessage<StreamAlignMessage> | undefined, b: StreamAlignMessage | PlainMessage<StreamAlignMessage> | undefined): boolean {
17131
+ return proto3.util.equals(StreamAlignMessage, a, b);
17071
17132
  }
17072
17133
  }
17073
17134
 
17074
17135
  /**
17075
- * @generated from message norsk.api.media.StreamProgramJoinEvent
17136
+ * @generated from message norsk.api.media.StreamAlignEvent
17076
17137
  */
17077
- export class StreamProgramJoinEvent extends Message<StreamProgramJoinEvent> {
17138
+ export class StreamAlignEvent extends Message<StreamAlignEvent> {
17078
17139
  /**
17079
- * @generated from oneof norsk.api.media.StreamProgramJoinEvent.message
17140
+ * @generated from oneof norsk.api.media.StreamAlignEvent.message
17080
17141
  */
17081
17142
  message: {
17082
17143
  /**
@@ -17104,13 +17165,13 @@ export class StreamProgramJoinEvent extends Message<StreamProgramJoinEvent> {
17104
17165
  case: "inboundContext";
17105
17166
  } | { case: undefined; value?: undefined } = { case: undefined };
17106
17167
 
17107
- constructor(data?: PartialMessage<StreamProgramJoinEvent>) {
17168
+ constructor(data?: PartialMessage<StreamAlignEvent>) {
17108
17169
  super();
17109
17170
  proto3.util.initPartial(data, this);
17110
17171
  }
17111
17172
 
17112
17173
  static readonly runtime = proto3;
17113
- static readonly typeName = "norsk.api.media.StreamProgramJoinEvent";
17174
+ static readonly typeName = "norsk.api.media.StreamAlignEvent";
17114
17175
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
17115
17176
  { no: 1, name: "node_id", kind: "message", T: MediaNodeId, oneof: "message" },
17116
17177
  { no: 2, name: "outbound_context", kind: "message", T: Context, oneof: "message" },
@@ -17118,20 +17179,20 @@ export class StreamProgramJoinEvent extends Message<StreamProgramJoinEvent> {
17118
17179
  { no: 4, name: "inbound_context", kind: "message", T: Context, oneof: "message" },
17119
17180
  ]);
17120
17181
 
17121
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamProgramJoinEvent {
17122
- return new StreamProgramJoinEvent().fromBinary(bytes, options);
17182
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamAlignEvent {
17183
+ return new StreamAlignEvent().fromBinary(bytes, options);
17123
17184
  }
17124
17185
 
17125
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamProgramJoinEvent {
17126
- return new StreamProgramJoinEvent().fromJson(jsonValue, options);
17186
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamAlignEvent {
17187
+ return new StreamAlignEvent().fromJson(jsonValue, options);
17127
17188
  }
17128
17189
 
17129
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamProgramJoinEvent {
17130
- return new StreamProgramJoinEvent().fromJsonString(jsonString, options);
17190
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamAlignEvent {
17191
+ return new StreamAlignEvent().fromJsonString(jsonString, options);
17131
17192
  }
17132
17193
 
17133
- static equals(a: StreamProgramJoinEvent | PlainMessage<StreamProgramJoinEvent> | undefined, b: StreamProgramJoinEvent | PlainMessage<StreamProgramJoinEvent> | undefined): boolean {
17134
- return proto3.util.equals(StreamProgramJoinEvent, a, b);
17194
+ static equals(a: StreamAlignEvent | PlainMessage<StreamAlignEvent> | undefined, b: StreamAlignEvent | PlainMessage<StreamAlignEvent> | undefined): boolean {
17195
+ return proto3.util.equals(StreamAlignEvent, a, b);
17135
17196
  }
17136
17197
  }
17137
17198
 
@@ -17491,6 +17552,8 @@ export class StreamSwitchSmoothConfiguration extends Message<StreamSwitchSmoothC
17491
17552
  transitionDurationMs = 0;
17492
17553
 
17493
17554
  /**
17555
+ * Resolution of the normalised output
17556
+ *
17494
17557
  * @generated from field: norsk.api.media.Resolution output_resolution = 5;
17495
17558
  */
17496
17559
  outputResolution?: Resolution;
@@ -17502,6 +17565,27 @@ export class StreamSwitchSmoothConfiguration extends Message<StreamSwitchSmoothC
17502
17565
  */
17503
17566
  sampleRate = SampleRate.RATE_8000;
17504
17567
 
17568
+ /**
17569
+ * The frame rate of the output
17570
+ *
17571
+ * @generated from field: norsk.api.media.FrameRate frame_rate = 7;
17572
+ */
17573
+ frameRate?: FrameRate;
17574
+
17575
+ /**
17576
+ * The channel layout of the output
17577
+ *
17578
+ * @generated from field: norsk.api.media.ChannelLayout channel_layout = 8;
17579
+ */
17580
+ channelLayout?: ChannelLayout;
17581
+
17582
+ /**
17583
+ * Align all timestamps to minimise timestamp jitter on mixed streams
17584
+ *
17585
+ * @generated from field: norsk.api.media.StreamSwitchSmoothConfiguration.Alignment alignment = 9;
17586
+ */
17587
+ alignment = StreamSwitchSmoothConfiguration_Alignment.ALIGNED;
17588
+
17505
17589
  constructor(data?: PartialMessage<StreamSwitchSmoothConfiguration>) {
17506
17590
  super();
17507
17591
  proto3.util.initPartial(data, this);
@@ -17516,6 +17600,9 @@ export class StreamSwitchSmoothConfiguration extends Message<StreamSwitchSmoothC
17516
17600
  { no: 4, name: "transition_duration_ms", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
17517
17601
  { no: 5, name: "output_resolution", kind: "message", T: Resolution },
17518
17602
  { no: 6, name: "sample_rate", kind: "enum", T: proto3.getEnumType(SampleRate) },
17603
+ { no: 7, name: "frame_rate", kind: "message", T: FrameRate },
17604
+ { no: 8, name: "channel_layout", kind: "message", T: ChannelLayout },
17605
+ { no: 9, name: "alignment", kind: "enum", T: proto3.getEnumType(StreamSwitchSmoothConfiguration_Alignment) },
17519
17606
  ]);
17520
17607
 
17521
17608
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamSwitchSmoothConfiguration {
@@ -17535,6 +17622,28 @@ export class StreamSwitchSmoothConfiguration extends Message<StreamSwitchSmoothC
17535
17622
  }
17536
17623
  }
17537
17624
 
17625
+ /**
17626
+ * Whether to align all the incoming timestamps
17627
+ *
17628
+ * @generated from enum norsk.api.media.StreamSwitchSmoothConfiguration.Alignment
17629
+ */
17630
+ export enum StreamSwitchSmoothConfiguration_Alignment {
17631
+ /**
17632
+ * @generated from enum value: ALIGNED = 0;
17633
+ */
17634
+ ALIGNED = 0,
17635
+
17636
+ /**
17637
+ * @generated from enum value: NO_ALIGNMENT = 1;
17638
+ */
17639
+ NO_ALIGNMENT = 1,
17640
+ }
17641
+ // Retrieve enum metadata with: proto3.getEnumType(StreamSwitchSmoothConfiguration_Alignment)
17642
+ proto3.util.setEnumType(StreamSwitchSmoothConfiguration_Alignment, "norsk.api.media.StreamSwitchSmoothConfiguration.Alignment", [
17643
+ { no: 0, name: "ALIGNED" },
17644
+ { no: 1, name: "NO_ALIGNMENT" },
17645
+ ]);
17646
+
17538
17647
  /**
17539
17648
  * @generated from message norsk.api.media.StreamSwitchSmoothSwitch
17540
17649
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/norsk-api",
3
- "version": "1.0.343",
3
+ "version": "1.0.344",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "@bufbuild/protobuf": "^0.3.0",