Web Browser Media Playback and Backup Using Web Workers
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing web browsers face challenges in simultaneously playing and storing media without affecting each other due to their single-threaded nature, particularly when using JavaScript for decoding, which limits the ability to perform media playback and backup concurrently.
Innovation Solution
The implementation of a media playback apparatus and method that utilizes web workers to create multiple threads for video, audio, and backup processes, allowing for simultaneous media playback and storage without the need for plug-ins, using a web worker generator to separate and multiplex video and audio data within a web browser environment.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If JavaScript is used for media decoding in a web browser, then media playback can be achieved without plug-ins, but simultaneous playback and backup cannot be performed due to single-threaded execution
Solution Approach 1:
The patent segments the media processing workflow into distinct web workers: a first web worker handles video decoding and playback, a second web worker handles audio decoding and playback, and a third web worker handles backup operations. This segmentation allows each worker to execute independently on separate threads, resolving the single-threaded limitation of JavaScript while maintaining plug-in-free operation.
Solution Approach 2:
The patent introduces web workers as intermediary components between the main browser thread and the media processing tasks. These web workers act as mediators that enable parallel execution of media decoding and backup operations without requiring traditional plug-ins, thus bridging the gap between JavaScript's single-threaded nature and the need for concurrent operations.
2Productivity
If traditional plug-ins are used for media playback, then simultaneous playback and backup can be performed, but security vulnerabilities and compatibility issues arise
Solution Approach 1:
The patent extracts the media decoding and processing functionality from traditional browser plug-ins and relocates it to web workers, which are native JavaScript components supported by modern browsers. This extraction eliminates security vulnerabilities and compatibility issues associated with plug-ins while preserving the ability to perform simultaneous playback and backup operations through multi-threaded web worker execution.
3Ease of operation
If a single thread is used for JavaScript execution, then simple code execution is maintained, but concurrent media processing operations cannot be performed
Solution Approach 1:
The patent segments concurrent media processing tasks into multiple independent web workers that each handle specific functions (video decoding, audio decoding, backup). This segmentation allows the browser to maintain simple single-threaded JavaScript execution within each worker while achieving concurrent processing across multiple workers, thus preserving ease of operation while enabling productivity.
Data Source
AI summary
The present disclosure relates to an apparatus and method for simultaneously playing back and storing media without a plug-in in a web browser. In the present disclosure, since restoration of video, restoration of audio, and backup of media are performed in a multi-threaded manner using a web worker, it is possible to simultaneously perform playback and storage of media. To this end, interworking is performed between a video web worker performing restoration of video, an audio web worker performing restoration of audio, and a backup web worker performing backup of media. According to the present disclosure, it is possible to simultaneously perform playback and backup of media, and it is also possible to stop backup of media and then resume the backup.


