Skip to content

Commit

Permalink
feat(FEC-13507): disable ts checks for source.duration
Browse files Browse the repository at this point in the history
  • Loading branch information
semarche-kaltura committed Jan 23, 2024
1 parent 079fe79 commit e525a57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/playlist/playlist-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,14 @@ class PlaylistManager {
private _onChangeSourceStarted(): void {
if (this._player.isImage()) {
this._player.configure({
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
sources: { duration: this._options.imageDuration }
});
} else if (this._player.isDocument()) {
this._player.configure({
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
sources: { duration: this._options.documentDuration }
});
}
Expand Down
2 changes: 2 additions & 0 deletions src/common/utils/setup-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,8 @@ function hasImageSource(sources: PKSourcesConfigObject): boolean {
* @returns {boolean} - true if sources contain document source
*/
function hasDocumentSource(sources: PKSourcesConfigObject): boolean {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const source = sources && sources.document;
return !!(source && source[0]);
}
Expand Down

0 comments on commit e525a57

Please sign in to comment.