import MediaStreamTrack from '../../nodes/html-media-element/MediaStreamTrack.js'; import Event from '../Event.js'; import IMediaQueryListEventInit from './IMediaQueryListEventInit.js'; /** * Media Stream Track Event. */ export default class MediaStreamTrackEvent extends Event { public readonly track: MediaStreamTrack | null; /** * Constructor. * * @param type Event type. * @param [eventInit] Event init. */ constructor(type: string, eventInit: IMediaQueryListEventInit | null = null) { super(type, eventInit); this.track = eventInit?.track ?? null; } }