Skip to content

Commit

Permalink
Better document the TracksStore
Browse files Browse the repository at this point in the history
  • Loading branch information
peaBerberian committed Aug 22, 2023
1 parent 3a2a62d commit a5cadfb
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/core/api/track_management/tracks_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ export default class TracksStore extends EventEmitter<ITracksStoreEvents> {
*/
private _storedPeriodInfo : ITSPeriodObject[];

/**
* If `true`, the current `TracksStore` instance has been disposed. It
* shouldn't perform side-effects anymore.
*/
private _isDisposed : boolean;

/**
Expand All @@ -88,6 +92,11 @@ export default class TracksStore extends EventEmitter<ITracksStoreEvents> {
/** Tells if trick mode has been enabled by the RxPlayer user */
private _isTrickModeTrackEnabled: boolean;

/**
* In absence of another setting, this is the default "switching mode" for the
* audio track.
* See type documentation.
*/
private _defaultAudioTrackSwitchingMode : IAudioTrackSwitchingMode;

constructor(args : {
Expand Down Expand Up @@ -1197,10 +1206,21 @@ export interface ITSPeriodObject {
* because some audio/video/text buffer still contains data of the given type.
*/
inManifest : boolean;
/**
* Information on the selected audio track and Representations for this Period.
*/
audio : IAudioPeriodInfo;
/**
* Information on the selected text track and Representations for this Period.
*/
text : ITextPeriodInfo;
/**
* Information on the selected video track and Representations for this Period.
*/
video : IVideoPeriodInfo;

/**
* If `true`, this object was since cleaned-up.
*/
isRemoved : boolean;
}

Expand Down

0 comments on commit a5cadfb

Please sign in to comment.