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

Tizen: don't directly seek over discontinuity on tizen #1587

Merged
merged 1 commit into from
Oct 25, 2024
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
9 changes: 8 additions & 1 deletion src/main_thread/init/utils/rebuffering_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

import isSeekingApproximate from "../../../compat/is_seeking_approximate";
import config from "../../../config";
import type { IBufferType } from "../../../core/types";
import { MediaError } from "../../../errors";
Expand Down Expand Up @@ -179,7 +180,11 @@ export default class RebufferingController extends EventEmitter<IRebufferingCont

playbackRateUpdater.startRebuffering();

if (this._manifest === null) {
if (
this._manifest === null ||
(isSeekingApproximate &&
getMonotonicTimeStamp() - rebuffering.timestamp <= 1000)
) {
this.trigger("stalled", stalledReason);
return;
}
Expand Down Expand Up @@ -235,6 +240,8 @@ export default class RebufferingController extends EventEmitter<IRebufferingCont
positionBlockedAt,
);
if (
(!isSeekingApproximate ||
getMonotonicTimeStamp() - rebuffering.timestamp > 1000) &&
this._speed.getValue() > 0 &&
nextBufferRangeGap < BUFFER_DISCONTINUITY_THRESHOLD
) {
Expand Down
Loading