diff --git a/src/kaltura-player.ts b/src/kaltura-player.ts index 3f466d9fc..c57d2a012 100644 --- a/src/kaltura-player.ts +++ b/src/kaltura-player.ts @@ -74,8 +74,7 @@ import { SourcesConfig, KPEventTypes, HEVCConfigObject, - MediaCapabilitiesObject, - PreventSeekOptions + MediaCapabilitiesObject } from './types'; export class KalturaPlayer extends FakeEventTarget { @@ -106,10 +105,6 @@ export class KalturaPlayer extends FakeEventTarget { private _serviceProvider: ServiceProvider; private _isVisible: boolean = false; private _autoPaused: boolean = false; - private _preventSeekOptions: PreventSeekOptions = { - isActive: false, - canSeek: true - }; constructor(options: KalturaPlayerConfig) { super(); @@ -859,10 +854,6 @@ export class KalturaPlayer extends FakeEventTarget { this._reset = false; } }); - this._eventManager.listen(this, 'prevent_seek', (e: FakeEvent) => { - this._preventSeekOptions.isActive = true; - this._preventSeekOptions.canSeek = e.payload?.canSeek; - }); } private _onChangeSourceEnded(): void { @@ -1011,14 +1002,6 @@ export class KalturaPlayer extends FakeEventTarget { this._appPluginConfig = {}; } - /** - * Get prevent seek options. - * @returns {PreventSeekOptions} - */ - public get preventSeekOptions(): PreventSeekOptions { - return this._preventSeekOptions; - } - /** * Set crossOrigin attribute. * @param {?string} crossOrigin - 'anonymous', 'use-credentials' or null to remove attribute diff --git a/src/types/index.ts b/src/types/index.ts index 67596a201..9efa4085c 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -20,4 +20,3 @@ export * from './sources-config'; export * from './thumbnail-config'; export * from './ui-config'; export * from './visibility-config'; -export * from './prevent-seek-options'; diff --git a/src/types/prevent-seek-options.ts b/src/types/prevent-seek-options.ts deleted file mode 100644 index f2eaeff63..000000000 --- a/src/types/prevent-seek-options.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface PreventSeekOptions { - isActive: boolean; - canSeek: boolean; -}