Skip to content

Commit

Permalink
Revert "feat(FEC-13492): add support for prevent seek"
Browse files Browse the repository at this point in the history
This reverts commit 5549b7d.
  • Loading branch information
lianbenjamin committed Mar 14, 2024
1 parent 5549b7d commit ce0d313
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
19 changes: 1 addition & 18 deletions src/kaltura-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ import {
SourcesConfig,
KPEventTypes,
HEVCConfigObject,
MediaCapabilitiesObject,
PreventSeekOptions
MediaCapabilitiesObject
} from './types';

export class KalturaPlayer extends FakeEventTarget {
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
4 changes: 0 additions & 4 deletions src/types/prevent-seek-options.ts

This file was deleted.

0 comments on commit ce0d313

Please sign in to comment.