From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/api/sourcebuffer/appendbuffer/index.html | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 files/zh-cn/web/api/sourcebuffer/appendbuffer/index.html (limited to 'files/zh-cn/web/api/sourcebuffer/appendbuffer') diff --git a/files/zh-cn/web/api/sourcebuffer/appendbuffer/index.html b/files/zh-cn/web/api/sourcebuffer/appendbuffer/index.html new file mode 100644 index 0000000000..6127a477a7 --- /dev/null +++ b/files/zh-cn/web/api/sourcebuffer/appendbuffer/index.html @@ -0,0 +1,64 @@ +--- +title: SourceBuffer.appendBuffer() +slug: Web/API/SourceBuffer/appendBuffer +translation_of: Web/API/SourceBuffer/appendBuffer +--- +
{{draft}}{{APIRef("Media Source Extensions")}}{{SeeCompatTable}}
+ +
appendBuffer()方法将媒体片段数据添加到SourceBuffer对象中,其中媒体片段用{{domxref("ArrayBuffer")}} 或 ArrayBufferView 对象存储 。
+ +

Syntax

+ +
sourceBuffer.appendBuffer(source);
+
+ +

Parameters

+ +
+
source
+
一个 {{domxref("BufferSource")}} 对象({{domxref("ArrayBufferView")}} 或 {{domxref("ArrayBuffer")}}),存储了你要添加到 SourceBuffer 中去的媒体片段数据。
+
+ +

Return value

+ +

undefined.

+ +

Exceptions

+ +

None.

+ +

Example

+ +

TBD.

+ +

Specifications

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Media Source Extensions', '#widl-SourceBuffer-appendBuffer-void-ArrayBuffer-data', 'appendBuffer()')}}{{Spec2('Media Source Extensions')}}Initial definition.
+ +

Browser compatibility

+ +
+ + +

{{Compat("api.SourceBuffer.appendBuffer")}}

+
+ +

See also

+ + -- cgit v1.2.3-54-g00ecf