BlobEvent

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("MediaStream Recording")}}

The **BlobEvent** interface of the MediaStream Recording API represents events associated with a {{domxref("Blob")}}. These blobs are typically, but not necessarily, associated with media content.

{{InheritanceDiagram}}

Constructor

  • {{domxref("BlobEvent.BlobEvent", "BlobEvent()")}}
  • : Creates a BlobEvent event with the given parameters.

Instance properties

_Inherits properties from its parent {{domxref("Event")}}_.

  • {{domxref("BlobEvent.data")}} {{ReadOnlyInline}}
  • : A {{domxref("Blob")}} representing the data associated with the event. The event was fired on the {{domxref("EventTarget")}} because of something happening on that specific {{domxref("Blob")}}.
  • {{domxref("BlobEvent.timecode")}} {{ReadOnlyInline}}
  • : A {{domxref("DOMHighResTimeStamp")}} indicating the difference between the timestamp of the first chunk in data and the timestamp of the first chunk in the first BlobEvent produced by this recorder. Note that the timecode in the first produced BlobEvent does not need to be zero.

Instance methods

_No specific method; inherits methods from its parent {{domxref("Event")}}._

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • The {{domxref("Event")}} base interface.
  • MediaStream Recording API: Sends BlobEvent objects each time a chunk of media is ready.
  • Using the MediaStream Recording API