Video Playback Progress Update Interval Adaptation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing video playback applications experience performance degradation and frequent freezes when displaying long videos due to fixed callback intervals for progress updates, which affects device performance.
Innovation Solution
A method and apparatus for displaying a video playback page that updates progress at intervals based on a target duration determined by the screen size and total video duration, dynamically adjusting the callback frequency to avoid performance issues.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If fixed callback intervals are used for progress updates, then progress display consistency is maintained, but device performance deteriorates and video freezes occur during long video playback
Solution Approach 1:
The patent applies dynamics by making the callback interval adaptive rather than fixed. The system dynamically adjusts the callback interval based on the video duration, using a longer interval for longer videos and a shorter interval for shorter videos. This dynamic adjustment resolves the contradiction by maintaining playback stability while preventing performance deterioration through context-aware timing.
Solution Approach 2:
The patent changes the parameter of callback interval from a fixed value to a variable value determined by video duration. By calculating the callback interval as a function of video duration (e.g., using formulas like max(2, duration/10) or similar adaptive logic), the system optimizes performance across different video lengths while maintaining reliable progress tracking.
2Measurement precision
If callback intervals are shortened to improve update frequency, then progress display precision is improved, but device performance deteriorates due to excessive callbacks
Solution Approach 1:
The patent changes the callback interval parameter based on video duration to achieve optimal precision without excessive updates. By setting the interval as an adaptive parameter rather than a fixed small value, the system maintains sufficient progress tracking precision for each video length while avoiding the performance penalty of uniformly short intervals across all videos.
Solution Approach 2:
The patent applies partial action by using shorter callback intervals only when necessary (for shorter videos) and longer intervals when sufficient (for longer videos). This avoids the excessive action of using consistently short intervals that would degrade performance, while still achieving adequate precision for each specific video context.
Data Source
AI summary
Embodiments of the present disclosure disclose a method and apparatus for displaying a video playback page, an electronic device, and a medium. A specific implementation of the method includes: displaying the video playback page, where the video playback page includes a video playback view and a progress adjustment control for adjusting video playback progress; and updating a progress displayed in the progress adjustment control based on a playback progress of a currently played video in the video playback view at intervals of a target duration, where the target duration is determined based on a size of a screen of a video playback device and a total duration of the currently played video. This implementation realizes differentiation of callback duration for videos of different durations, thereby avoiding a video freeze caused by setting a fixed callback duration.


