Fragmented MP4 Playback for Seamless Web Resolution Switching
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing technologies cannot play MP4 files in a network by switching resolution without format conversion, leading to increased storage space requirements and complexity due to the need for parallel storage of original and transcoded files.
Innovation Solution
A method and device that convert media data in a non-streaming media format into a fragmented media file, allowing seamless playback by requesting and constructing fragmented media files based on resolution switching events, which are then sent to a media element through a media source expansion interface for decoding and playback.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If format conversion is performed to enable streaming playback of MP4 files, then playback flexibility is improved, but storage space requirements increase due to parallel storage of original and transcoded files
Solution Approach 1:
The patent segments the MP4 file into fragmented media files (fMP4) that can be independently decoded and played. Each fragment contains a complete media presentation, allowing the player to request and play specific fragments without needing the entire file downloaded, thus enabling streaming playback of original format files without requiring separate transcoded versions
Solution Approach 2:
The patent changes the packaging format parameter of the media file from traditional MP4 to fragmented MP4 (fMP4). This parameter change enables the file to support random access and incremental playback while maintaining the original encoding, resolving the contradiction by allowing streaming playback without format conversion while avoiding the need for parallel storage of multiple format versions
2Adaptability or versatility
If resolution switching is implemented during playback, then user experience is improved, but system complexity increases due to need for multiple format versions
Solution Approach 1:
The patent implements dynamic resolution switching by allowing the player to request fragments at different resolutions based on real-time network conditions and device capabilities. The system dynamically adjusts the resolution of fragments being requested without requiring pre-configured multiple format versions, reducing system complexity while maintaining adaptability
Solution Approach 2:
The fragmented media file structure serves multiple functions: it enables streaming playback, supports random access, and allows resolution switching all within a single file format. This multi-functionality eliminates the need for separate transcoded files for different resolutions, reducing storage and service complexity while maintaining high adaptability
3Reliability
If traditional MP4 playback is used in webpages, then compatibility is maintained, but streaming playback capability is lost requiring complete file download
Solution Approach 1:
By segmenting the MP4 file into independently decodable fragments, the patent enables the webpage player to request and play only the necessary fragments incrementally rather than requiring complete file download. This maintains compatibility with standard media players while enabling streaming playback, thus reducing download time without sacrificing reliability
Data Source
AI summary
The disclosure relates to a method and a device for playing a media file while switching resolution in a webpage and a storage medium, the method includes: receiving a resolution switching event when the player embedded in the webpage plays the original resolution media file; requesting media data in the target resolution media file to be switched to in response to the resolution switching event; wherein the original resolution media file and the target resolution media file adopt a non-streaming media packaging format; constructing a fragmented media file for independent decoding on the basis of the requested media data; sending the fragmented media file to a media element of the webpage through a media source expansion interface of the webpage. The fragmented media file is used for playing the media element in succession with the playing point where the resolution switching event occurs.


