Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

MediaStreamEvent

Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.

TheMediaStreamEvent interface represents events that occurs in relation to aMediaStream. Two events of this type can be thrown:addstream andremovestream.

Instance properties

AMediaStreamEvent being anEvent, this event also implements these properties.

MediaStreamEvent.streamRead onlyDeprecatedNon-standard

Contains theMediaStream containing the stream associated with the event.

Constructors

Instance methods

AMediaStreamEvent being anEvent, this event also implements these properties. There is no specificMediaStreamEvent method.

Examples

js
pc.onaddstream = (ev) => {  alert(`A stream (id: '${ev.stream.id}') has been added to this connection.`);};

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp