Web Player Sub-Window Segmentation for Seamless Media Playback
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional web players experience significant delays due to page reloading and reinitialization when playing new media files, as they require refreshing the entire web player window each time a new song is played.
Innovation Solution
A method and device that allow a web player window to play a new media file without refreshing the page by determining if the first window is a top-level window, creating a sub-window if necessary, and loading player logic in the top-level window to play the media file, thereby avoiding the need for page reloading and reducing delays.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the web player window is reloaded to play a new media file, then the media file can be played, but the page refreshing and reinitializing causes long time delay
Solution Approach 1:
The patent segments the web player into a top-level window and a sub-window (iframe). The top-level window maintains the player interface and state, while the sub-window handles media file loading and playback. This segmentation allows the sub-window to be reloaded or updated without refreshing the entire top-level window, thereby reducing time delay while maintaining playback capability.
Solution Approach 2:
The patent implements preliminary action by pre-loading the player logic and interface in the top-level window before media playback is needed. The sub-window is pre-configured with the necessary player functionality, so when a new media file needs to be played, the system can quickly switch or update the sub-window content without performing a full page reload, thus reducing time delay.
2Reliability
If the web player window is reloaded to play a new media file, then the media file can be played, but the page structure and resources need to be reinitialized
Solution Approach 1:
The patent divides the web player into separate segments: the top-level window contains the persistent player interface and logic, while the sub-window handles media-specific operations. This segmentation means that only the sub-window needs to be updated for new media files, avoiding the complexity of reinitializing the entire page structure and resources.
Solution Approach 2:
The top-level window is designed with universal player logic that can handle multiple media files without reinitialization. The player interface, controls, and core functionality are implemented once in the top-level window and can serve any media file loaded in the sub-window, reducing the complexity of repeated setup procedures.
3Reliability
If a new web browser window is opened to play a song, then only one web player plays the song, but it causes refreshing a page and reinitializing the player window
Solution Approach 1:
The patent merges the functionality of multiple potential player instances into a single top-level window that maintains persistent state. By using a sub-window within this unified structure, the system ensures that only one player instance is active while avoiding the need to open multiple browser windows or refresh the entire page, thus maintaining single-player control without time delay.
Data Source
AI summary
A media file playing method and device. The method comprises: submitting information about a media file to a first window; judging whether the first window is a browser top window; if so, creating a sub-window in the browser top window, setting the sub-window as the first window, loading player logic in the browser top window, and playing the media file by using the player logic in the browser top window; otherwise, transmitting, by the first window, the information about the media file to the browser top window to which the first window belongs, and playing the media file by using the player logic in the browser top window. By means of the present invention, it can be achieved that a webpage player window can play a new media file without refreshing when playing requests of other webpage browser windows are received.


