Skip to content

Commit

Permalink
Update html5.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yambenari24 committed Feb 25, 2025
1 parent a2cab4b commit 3448e97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/engines/html5/html5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { CapabilityResult, ICapability } from '../../types';
import { PKABRRestrictionObject, PKDrmConfigObject, PKDrmDataObject, PKMediaSourceObject, PKVideoElementStore } from '../../types';
import { IEngine } from '../../types';
import Track from '../../track/track';
import { Env } from '../../../src/playkit';
import Env from '../../../src/utils/env';

const SHORT_BUFFERING_TIMEOUT: number = 200;

Expand Down Expand Up @@ -526,7 +526,6 @@ export default class Html5 extends FakeEventTarget implements IEngine {
const durationMs = Math.round(this._el.duration * 1000);

if (currentTimeMs >= durationMs || this._el.ended) {
this._el.pause();
this._el.currentTime = 0;
}
}
Expand Down

0 comments on commit 3448e97

Please sign in to comment.