Class LocalCustomVideoStream

Hierarchy (view full)

Constructors

Properties

contentType: "video" = 'video'
id: string = ...
onDestroyed: Event<void> = ...

Description

[japanese] streamが破棄された時に発火するイベント (例. 画面共有が終了したときなど)

Example

[japanese] ハンドリング例
const publication = await member.publish(audio);
audio.onDestroyed.once(async () => {
await member.unpublish(publication);
});
onTrackUpdated: Event<MediaStreamTrack> = ...

Description

[japanese] PublicationのDisable/EnableなどでStreamのtrackが更新された時に発火するイベント

published: boolean = false
side: "local" = 'local'

Accessors

  • get track(): MediaStreamTrack
  • Returns MediaStreamTrack

Methods

  • Parameters

    • element: HTMLAudioElement | HTMLVideoElement

    Returns void

    Description

    [english] Attach the stream to the element.

    Description

    [japanese] streamをelementに適用する.

  • Returns void

    Description

    [english] Detach the stream from the element.

    Description

    [japanese] elementからstreamを取り除く.

  • Returns void

    Description

    [japanese] Streamを解放します。 カメラやマイクなどのデバイスを解放するためにはそのデバイスに関連するすべてのStreamを解放する必要があります