@livedesk/client 0.1.93 → 0.1.94

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.
@@ -161,6 +161,7 @@ final class LiveDeskScreenCaptureKitEncoder: NSObject, SCStreamOutput, SCStreamD
161
161
  }
162
162
 
163
163
  var output = Data()
164
+ appendAccessUnitDelimiter(to: &output)
164
165
  if isKeyFrame(sampleBuffer), let formatDescription = CMSampleBufferGetFormatDescription(sampleBuffer) {
165
166
  appendParameterSet(formatDescription, index: 0, to: &output)
166
167
  appendParameterSet(formatDescription, index: 1, to: &output)
@@ -241,6 +242,11 @@ final class LiveDeskScreenCaptureKitEncoder: NSObject, SCStreamOutput, SCStreamD
241
242
  private func appendStartCode(to output: inout Data) {
242
243
  output.append(contentsOf: [0, 0, 0, 1])
243
244
  }
245
+
246
+ private func appendAccessUnitDelimiter(to output: inout Data) {
247
+ appendStartCode(to: &output)
248
+ output.append(contentsOf: [0x09, 0xF0])
249
+ }
244
250
  }
245
251
 
246
252
  enum LiveDeskSCKError: Error {
@@ -161,6 +161,7 @@ final class LiveDeskScreenCaptureKitEncoder: NSObject, SCStreamOutput, SCStreamD
161
161
  }
162
162
 
163
163
  var output = Data()
164
+ appendAccessUnitDelimiter(to: &output)
164
165
  if isKeyFrame(sampleBuffer), let formatDescription = CMSampleBufferGetFormatDescription(sampleBuffer) {
165
166
  appendParameterSet(formatDescription, index: 0, to: &output)
166
167
  appendParameterSet(formatDescription, index: 1, to: &output)
@@ -241,6 +242,11 @@ final class LiveDeskScreenCaptureKitEncoder: NSObject, SCStreamOutput, SCStreamD
241
242
  private func appendStartCode(to output: inout Data) {
242
243
  output.append(contentsOf: [0, 0, 0, 1])
243
244
  }
245
+
246
+ private func appendAccessUnitDelimiter(to output: inout Data) {
247
+ appendStartCode(to: &output)
248
+ output.append(contentsOf: [0x09, 0xF0])
249
+ }
244
250
  }
245
251
 
246
252
  enum LiveDeskSCKError: Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livedesk/client",
3
- "version": "0.1.93",
3
+ "version": "0.1.94",
4
4
  "description": "LiveDesk local remote client",
5
5
  "type": "module",
6
6
  "bin": {