Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(FEC-9086): the screen blinking and endless spinner displayed when replay is ended #10

Merged
merged 1 commit into from
May 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/ima-dai.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import './assets/style.css';

const ADS_CONTAINER_CLASS: string = 'playkit-dai-ads-container';
const ADS_COVER_CLASS: string = 'playkit-dai-ads-cover';
const FIRST_FRAME_LENGTH: number = 0.5;

/**
* The ima-dai plugin.
Expand Down Expand Up @@ -275,7 +274,7 @@ class ImaDAI extends BasePlugin implements IAdsControllerProvider, IEngineDecora
});
if (currentCuePoint) {
this.logger.debug('Ad already played - skipped');
this.player.currentTime += FIRST_FRAME_LENGTH;
this._engine.currentTime = currentCuePoint.end;
}
});
if (this.player.config.playback.preferNative.hls) {
Expand Down