Video Screen Projection Switching Between Mirroring and DLNA
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing wireless projection technologies in electronic devices often suffer from issues such as freezing, screen distortion, and audio-visual unsynchronization during system-mirrored screen projection, leading to a poor projection experience.
Innovation Solution
The method involves automatically switching from system-mirrored screen projection to Digital Living Network Alliance (DLNA) screen projection by obtaining device information like IP address, MAC address, UUID, and device name, ensuring seamless and high-quality video streaming without user intervention.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If system-mirrored screen projection is used, then the display interface can be projected to another device, but video playback quality deteriorates with freezing, screen distortion, and audio-visual unsynchronization
Solution Approach 1:
The system dynamically switches between system-mirrored screen projection and DLNA screen projection based on the content being displayed. When video playback is detected, the system automatically transitions from mirroring mode to DLNA mode, which is optimized for media streaming. This dynamic adaptation resolves the contradiction by selecting the appropriate projection mode for each scenario.
Solution Approach 2:
The invention changes the projection protocol parameter from Miracast (system-mirrored) to DLNA based on content type detection. By detecting video playback and changing the projection protocol parameter, the system achieves high-quality video streaming without the distortion and synchronization issues inherent in system-mirrored projection.
2Speed
If system-mirrored screen projection is used, then real-time display projection is achieved, but screen projection effect deteriorates with black borders and poor image quality
Solution Approach 1:
The system dynamically adjusts the projection mode based on content detection. For video content, it switches to DLNA projection which handles media formatting and resolution optimization automatically, eliminating black borders and improving image quality while maintaining fast projection response.
Solution Approach 2:
The invention introduces an intermediary content detection mechanism that identifies video playback and triggers a protocol switch to DLNA. This intermediary layer mediates between the user's projection request and the actual projection execution, selecting the optimal protocol to achieve both fast response and high image quality.
Data Source
Figure 1A
Figure 1B
Figure 1C
AI summary
Embodiments of this application provide a screen projection method for an electronic device and an electronic device. The method includes: receiving an operation that the electronic device plays back a video, and obtaining a state identifier of the electronic device, where the state identifier indicates whether the electronic device is in a state of system-mirrored screen projection; determining, based on the state identifier, that the electronic device is not in the state of the system-mirrored screen projection; receiving a screen projection operation by a user, and obtaining first device information of a screen projection device; and performing DLNA screen projection from the electronic device to the screen projection device based on the first device information. In the method, when the electronic device plays back the video, if the electronic device is not in the state of the system-mirrored screen projection, the electronic device may receive an operation that the user enables a function of the system-mirrored screen projection, projection to the screen projection device may be performed in a manner of the DLNA screen projection. This resolves problems such as black borders, freezing, screen distortion, and audio-visual unsynchronization on an image. A video image that is played back is clear and smooth. This effectively improves screen projection effect, and improves viewing experience of the user without another operation performed by the user.