Screen Projection Audio Routing via Device ID Tracking
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In screen projection scenarios, PC devices connected to audio devices like headsets often fail to output sound when a large-screen device is selected as the sound output device, leading to inconsistent audio behavior and user expectations.
Innovation Solution
A method where the screen projection transmit end identifies and records the current audio device's identification number, allowing it to switch seamlessly between built-in speakers and external headsets, ensuring that audio data is sent to the correct device based on user selection, and updates the audio status accordingly to match user expectations.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If the PC device uses a screen projection application to project audio and video content onto a large-screen device, then screen projection function is implemented, but the large-screen device cannot output sound when selected as the sound output device if the PC device is connected to another audio device like a headset
Solution Approach 1:
The system performs preliminary actions by capturing and storing the audio data from the PC device's sound channel before projecting it to the large-screen device. This ensures that the audio data is readily available and can be output by the large-screen device regardless of the PC device's current audio device connections, thus resolving the contradiction between adaptability and reliability
Solution Approach 2:
The screen projection application acts as an intermediary by intercepting the audio data from the PC device's sound channel and re-routing it to the large-screen device. This mediator approach allows the large-screen device to output sound independently of the PC device's audio device connections, resolving the contradiction between versatile device selection and consistent audio output
2Adaptability or versatility
If the PC device switches between different audio devices (speaker and headset), then audio device adaptability is improved, but the audio output behavior becomes inconsistent with user expectations during screen projection
Solution Approach 1:
The system implements feedback by monitoring the PC device's audio device switching status and automatically adjusting the audio projection behavior accordingly. When the PC device switches between speaker and headset, the screen projection application receives feedback about this change and maintains appropriate audio output to the large-screen device, ensuring predictable audio behavior that matches user expectations
Solution Approach 2:
The screen projection application performs self-service by automatically managing the audio data capture and transmission process without requiring user intervention. It continuously monitors the sound channel and adapts to audio device changes autonomously, maintaining consistent audio output behavior that aligns with user expectations while preserving audio device switching flexibility
Data Source
AI summary
This application provides a screen projection method, a device, and a storage medium. The method is applied to a screen projection transmit end on which a screen projection application is installed. In a screen projection scenario, an audio device currently used by the screen projection transmit end is obtained, and an identification number corresponding to the audio device is recorded in an audio device table. In this way, when it is determined that a sound output device selected by a user is a screen projection receive end, audio data is obtained from the audio device identified by the identification number and is sent to the screen projection receive end for play, to ensure that when the screen projection receive end is a sound output device, the screen projection receive end can always obtain the audio data and then play the audio data to output a sound.


