浏览代码

* Add EncodedVideoChunk.copyTo

Michael Van Canneyt 3 月之前
父节点
当前提交
225f7d5de6
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      packages/rtl/src/weborworker.pas

+ 3 - 0
packages/rtl/src/weborworker.pas

@@ -1959,6 +1959,9 @@ type
     Ftype: string; external name 'type';
     Ftype: string; external name 'type';
   Public
   Public
     constructor new(aOptions : TJSEncodedVideoChunkOptions);
     constructor new(aOptions : TJSEncodedVideoChunkOptions);
+    procedure copyTo(aDestination : TJSArrayBuffer);
+    procedure copyTo(aDestination : TJSTypedArray);
+    procedure copyTo(aDestination : TJSDataView);
     property byteLength : NativeInt Read FbyteLength;
     property byteLength : NativeInt Read FbyteLength;
     property timestamp : NativeInt Read Ftimestamp;
     property timestamp : NativeInt Read Ftimestamp;
     property duration : NativeInt Read FDuration;
     property duration : NativeInt Read FDuration;