export declare type VideoTrack = {
setMute(mute: boolean): Promise<boolean>; //sets the mute state of the track to muted/unmuted
getMediaType(): Promise<Guid>; //UUID representing the underlying media type of this track
getIndex(): Promise<number>; //Index representing the track index of this track within the track group.
isMuted(): Promise<boolean>; //Get mute state of the track
getTrackItems(trackItemType: number, includeEmptyTrackItems: boolean): any; //Returns array of VideoClipTrackItem from the track item type
name: string; //Get the name of the track
id: number; //The ID of the track within the TrackGroup
};
export declare type AudioTrack = {
setMute(mute: boolean): Promise<boolean>; //sets the mute state of the track to muted/unmuted
getMediaType(): Promise<Guid>; //UUID representing the underlying media type of this track
getIndex(): Promise<number>; //Index representing the track index of this track within the track group.
isMuted(): Promise<boolean>; //Get mute state of the track
getTrackItems(trackItemType: number, includeEmptyTrackItems: boolean): any; //Returns array of AudioClipTrackItem from the track item type
name: string; //Get the name of the track
id: number; //The ID of the track within the TrackGroup
};
export declare type CaptionTrack = {
setMute(mute: boolean): Promise<boolean>; //sets the mute state of the track to muted/unmuted
getMediaType(): Promise<Guid>; //UUID representing the underlying media type of this track
getIndex(): Promise<number>; //Index representing the track index of this track within the track group.
isMuted(): Promise<boolean>; //Get mute state of the track
getTrackItems(trackItemType: number, includeEmptyTrackItems: boolean): []; //This returns the track items of the specified media type from the given track
name: string; //Get the name of the track
id: number; //The ID of the track within the TrackGroup
};
This interface is quite confusing to me. Why do captions and video tracks have isMuted
and setMute
? I would prefer to have properties specific to tracks, such as enable/disable, show/hide, rename, synchronize, etc. Even adding a solo
feature would be useful—for example, exporting specific track content.