Media Playback Delay Prevention via Unified Timestamp Measurement
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing media playback technologies in web browsers face delays due to network, decoding, and rendering issues, particularly in non-plug-in environments, where conventional delay determination methods are cumbersome and unsuitable.
Innovation Solution
A media playback apparatus and method that includes a receiving unit, a decoder implemented in script, a renderer, and a delay detecting unit to measure playback delay by comparing timestamps, allowing for single-measurement delay determination and profile changes to prevent stuttering, suitable for non-plug-in environments.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If a JavaScript decoder is used to decode media in a web browser without plug-ins, then compatibility with various codec formats is improved, but playback delay increases due to the dynamic nature of JavaScript
Solution Approach 1:
The system performs preliminary actions by pre-calculating delay values using a delay determination expression that combines network delay, decoding delay, and rendering delay. The delay detecting unit proactively measures these delays before they cause playback stuttering, and the delay preventing unit pre-adjusts the playback timing to compensate for the predicted delay, thus maintaining smooth playback despite using JavaScript decoding
Solution Approach 2:
The system implements a feedback mechanism where the delay detecting unit continuously monitors actual playback delay, and this information is fed back to the delay preventing unit which adjusts the delay compensation in real-time. This closed-loop control ensures that the playback delay is dynamically optimized based on actual system performance
2Measurement precision
If delay time is measured in each step of networking, decoding and rendering, then delay determination accuracy is improved, but system complexity increases
Solution Approach 1:
The system merges the measurement of network delay, decoding delay, and rendering delay into a single unified delay determination expression. Instead of treating each delay component separately, the patent combines them into one comprehensive calculation that produces a total delay value, thereby maintaining measurement accuracy while reducing system complexity
Solution Approach 2:
The delay determining unit performs multiple functions simultaneously: it calculates network delay, decoding delay, and rendering delay, then synthesizes them into a single delay compensation value. This multi-functional approach eliminates the need for separate measurement systems for each delay component
3Adaptability or versatility
If high resolution video is decoded using a JavaScript decoder, then codec format flexibility is improved, but decoding performance drops dramatically causing playback delay
Solution Approach 1:
The system performs preliminary delay calculation and compensation before high-resolution video decoding begins. By pre-determining the expected decoding delay based on the delay determination expression, the system can proactively adjust playback timing to compensate for the reduced decoding performance of JavaScript, thereby maintaining smooth playback without sacrificing codec flexibility
Solution Approach 2:
The system dynamically adjusts playback parameters such as buffer size, prefetch duration, and delay compensation values based on the detected decoding performance. When JavaScript decoder performance drops for high-resolution video, the system changes these parameters to maintain optimal playback timing, thus balancing codec flexibility with decoding performance
Data Source
AI summary
A media playback apparatus and a method including a system for preventing a playback delay are provided. The media playback apparatus may include a delay detecting module to detect a playback delay. The playback delay detection may determine a delay caused by a network, decoding and rendering through a single measurement. When the playback delay occurs, it may be possible to eliminate the playback delay by requesting that a server provide media data having a changed profile. Since the playback delay can be determined through a single measurement of a plurality of playback delay factors, it may be possible to simply and stably perform media playback in a manner suitable for a non-plug-in environment.


