OpenVidu Browser - v2.32.2
    Preparing search index...

    Class StreamManagerEvent

    Hierarchy (View Summary)

    Index

    Properties

    cancelable: boolean

    Whether the event has a default behavior that may be prevented by calling Event.preventDefault

    The object that dispatched the event

    type: string

    The type of event. This is the same string you pass as first parameter when calling method on() of any object implementing EventDispatcher interface

    value: Object

    For streamAudioVolumeChange event:

    • {newValue: number, oldValue: number}: new and old audio volume values. These values are between -100 (silence) and 0 (loudest possible volume). They are not exact and depend on how the browser is managing the audio track, but -100 and 0 can be taken as limit values.

    For streamPlaying event undefined

    Methods

    • Prevents the default behavior of the event. The following events have a default behavior:

      • sessionDisconnected: dispatched by Session object, automatically unsubscribes the leaving participant from every Subscriber object of the session (this includes closing the RTCPeerConnection and disposing all MediaStreamTracks) and also deletes any HTML video element associated to each Subscriber (only those created by OpenVidu Browser, either by passing a valid parameter as targetElement in method Session.subscribe or by calling Subscriber.createVideoElement). For every video removed, each Subscriber object will also dispatch a videoElementDestroyed event.

      • streamDestroyed:

        • If dispatched by a Publisher (you have unpublished): automatically stops all media tracks and deletes any HTML video element associated to it (only those created by OpenVidu Browser, either by passing a valid parameter as targetElement in method OpenVidu.initPublisher or by calling Publisher.createVideoElement). For every video removed, the Publisher object will also dispatch a videoElementDestroyed event.
        • If dispatched by Session (other user has unpublished): automatically unsubscribes the proper Subscriber object from the session (this includes closing the RTCPeerConnection and disposing all MediaStreamTracks) and also deletes any HTML video element associated to that Subscriber (only those created by OpenVidu Browser, either by passing a valid parameter as targetElement in method Session.subscribe or by calling Subscriber.createVideoElement). For every video removed, the Subscriber object will also dispatch a videoElementDestroyed event.

      Returns void