CN111405337A - Method, device, equipment and medium for realizing double-screen abnormal sound of android system - Google Patents

Method, device, equipment and medium for realizing double-screen abnormal sound of android system Download PDF

Info

Publication number
CN111405337A
CN111405337A CN202010095390.0A CN202010095390A CN111405337A CN 111405337 A CN111405337 A CN 111405337A CN 202010095390 A CN202010095390 A CN 202010095390A CN 111405337 A CN111405337 A CN 111405337A
Authority
CN
China
Prior art keywords
screen
bluetooth
sound
output
different
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010095390.0A
Other languages
Chinese (zh)
Inventor
刘兴亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuzhou Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN202010095390.0A priority Critical patent/CN111405337A/en
Publication of CN111405337A publication Critical patent/CN111405337A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • H04N21/43637Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The invention provides a method, a device, equipment and a medium for realizing double-screen abnormal sound of an android system, wherein the method comprises two situations: (A) for a double-screen different display mechanism finished by different applications, equipment is connected with Bluetooth, process numbers of applications run by two screens are respectively obtained, and which application enters a sound channel at present is judged, so that whether the application is output by a loudspeaker or output by the Bluetooth is specified according to requirements; (B) for the double-screen abnormal display mechanism finished through the Presentation type, the equipment is connected with the Bluetooth, two universal player examples are created to play different videos, when the abnormal display is triggered, different audio session numbers are set for the two different player examples through the audio session number setting interfaces of the player type so as to distinguish the main screen from the auxiliary screen, and therefore the corresponding playing way is designated to be output by a loudspeaker or output by the Bluetooth according to requirements, and double-screen abnormal sound is achieved.

Description

Method, device, equipment and medium for realizing double-screen abnormal sound of android system
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device, equipment and a medium for realizing double-screen abnormal sound of an android system.
Background
The dual-screen different display is that one device is provided with two display screens which respectively display different contents. For example, WiFiDisplay is supported at the beginning of Android4.2, at the moment, the Android has a Presentation class, the interface is called in the APK and can be used for displaying the content different from the main screen on the second screen, and if the second screen is not connected on the platform, the function of simulating the second screen can be opened in Settings, and the APK running the Presentation interface displays a small window on the upper left corner to display the display content of the second screen, so that the double-screen different display function is realized.
At present, the double-screen differential display has two sets of implementation mechanisms:
the first set of implementation mechanism is completed through two applications, wherein a double-screen differential display scheme (RKDualScreen for short) of a Swiss microelectronic Android platform is taken as a main representative, and the double-screen differential display mechanism is completed through the two applications, and the contents of the two different applications are respectively displayed on the two screens.
The second set of realization mechanism is completed through Presentation type, wherein Google Presentation is taken as a main representative, the dual-screen abnormal display is realized through the Presentation type, the application needs to be automatically developed by adopting the mode, two different display blocks are created in the application, and when the abnormal display is triggered, the contents of the two different display blocks are respectively displayed on different screens, so that the dual-screen abnormal display function is realized.
However, although the Android system can realize the dual-screen different display function at present, in many cases, it is not enough to realize the dual-screen different display function, and it is also necessary to realize dual-screen different sound, that is, the display contents are different, and the audio output correspondingly is also different.
However, the available data of the current scheme for dual-screen abnormal sound is very little, google aosp only contains Presentation code for realizing multi-screen abnormal display, and there is no strategy for outputting sound of each screen during multi-screen abnormal display in AudioPolicy. The known solutions are based on the machine multiple sound card case, for example: HDMI and Codec. However, if the Android device does not support multiple sound cards and only supports one sound card, it is obvious that the scheme cannot realize double-screen different sound.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, an apparatus, a device and a medium for implementing a dual-screen abnormal sound of an Android system, in which a bluetooth device is used as an Android device supporting only one sound card for playing and supplementing, so that sounds of two screens can be output from a bluetooth and a speaker respectively according to requirements, thereby implementing sound separation.
In a first aspect, the present invention provides a method for implementing a double-screen abnormal sound of an android system, including the following two situations:
(A) if the dual-screen different display mechanism is completed through different applications, the implementation process of the dual-screen different sound is as follows: connecting the equipment with Bluetooth to enable the equipment to have two paths of playing ways of loudspeaker output and Bluetooth output; respectively acquiring process numbers of applications run by two screens, and judging which application currently enters a sound channel according to the application process numbers, so as to specify whether a playing path of the currently entering sound channel is output by a loudspeaker or Bluetooth according to requirements;
(B) if the dual-screen different display mechanism is completed through Presentation, the implementation process of the dual-screen different sound is as follows: connecting the equipment with Bluetooth to enable the equipment to have two paths of playing ways of loudspeaker output and Bluetooth output; the method comprises the steps of creating two player examples to play different videos, displaying the two videos on different screens respectively when the different displays are triggered, setting different session numbers for the two different player examples through corresponding audio session number setting interfaces of the two player types, and distinguishing a main screen from an auxiliary screen through the session numbers, so that whether a corresponding playing path is output by a loudspeaker or output by Bluetooth is designated according to requirements.
In a second aspect, the present invention provides an apparatus for implementing a dual-screen abnormal sound of an android system, including the following two cases:
(A) if the dual-screen different display mechanism is completed through different applications, the dual-screen different sound device comprises:
the Bluetooth module is used for connecting the equipment with Bluetooth so that the equipment has two paths of playing ways of loudspeaker output and Bluetooth output;
the application process number acquisition module is used for respectively acquiring the process numbers of the applications run by the two screens;
the sound playing appointing module is used for judging which application enters the sound channel currently according to the process number of the application, so that whether the playing path of the sound channel entering the current sound channel is output by a loudspeaker or Bluetooth is appointed according to the requirement;
(B) if the dual-screen abnormal sound device is a dual-screen abnormal display mechanism finished through Presentation, the dual-screen abnormal sound device comprises:
the Bluetooth module is used for connecting the equipment with Bluetooth so that the equipment has two paths of playing ways of loudspeaker output and Bluetooth output;
the video playing application creation module is used for creating two playing type instances to play different videos, and when the different display is triggered, the two videos are respectively displayed on different screens;
the session control ID setting module is used for setting different session numbers for two different player instances through audio session number setting interfaces corresponding to two playing classes;
and the sound playing designation module is used for distinguishing the main screen and the auxiliary screen through the session number, so that whether the corresponding playing path is output by a loudspeaker or output by Bluetooth is designated according to the requirement.
In a third aspect, the present invention provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of the first aspect when executing the program.
In a fourth aspect, the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method of the first aspect.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages: according to the invention, the Bluetooth equipment is played and supplemented as the Android equipment which only supports one sound card, so that the sound of two screens can be output from the Bluetooth and the loudspeaker respectively according to the requirement, and the sound separation is realized. The double-screen different sound realization mechanism is respectively carried out aiming at the double-screen different display mechanism finished by different applications and the double-screen different display mechanism finished by Presentation types, so that flexible adaptation can be carried out according to the specific body condition of the equipment.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
FIG. 1 is a schematic block diagram of the system of the present invention;
fig. 2a is a flowchart of a dual-screen different sound method corresponding to a first dual-screen different display mechanism in a method according to an embodiment of the present invention;
fig. 2b is a flowchart of a specific implementation process of a dual-screen different sound method corresponding to a first dual-screen different display mechanism in the method according to the first embodiment of the present invention;
fig. 3a is a flowchart of a dual-screen different sound method corresponding to a second dual-screen different display mechanism in the method according to the first embodiment of the present invention;
fig. 3b is a flowchart of a specific implementation process of a dual-screen different sound method corresponding to a second dual-screen different display mechanism in the method according to the first embodiment of the present invention;
fig. 4a is a schematic structural diagram of a device corresponding to a first dual-screen differential display mechanism according to a second embodiment of the present invention;
fig. 4b is a schematic structural diagram of a device corresponding to a second dual-screen differential display mechanism in the second embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a third embodiment of the invention;
fig. 6 is a schematic structural diagram of a medium according to a fourth embodiment of the present invention.
Detailed Description
The embodiment of the application provides a method, a device, equipment and a medium for realizing double-screen abnormal sound of an Android system, and takes a Bluetooth device as a playing supplement way of an Android device only supporting one sound card, so that sound of two screens can be output from a Bluetooth and a loudspeaker respectively according to requirements, and sound separation is realized.
The technical scheme in the embodiment of the application has the following general idea: a method for generating double-screen different sound is provided for two different display mechanisms, for the different double-screen different display mechanisms completed by different applications, the equipment is connected with Bluetooth, the process numbers (namely process ID, PID for short) of the applications run by the two screens are respectively obtained, and the current application entering the sound channel is judged, so that whether the sound channel is output by a loudspeaker or output by the Bluetooth is appointed according to requirements. To the two-screen different display mechanism that accomplishes through Presentation class, connect the bluetooth with equipment, establish two player instances and play different videos, when triggering different display, set up different session numbers for two different player instances through the audio frequency session number setting interface of player class to distinguish the primary and secondary screen, thereby appoint the corresponding broadcast route according to the demand and be exported by loudspeaker or export by the bluetooth:
before describing the specific embodiment, a system framework corresponding to the method of the embodiment of the present application is described, and as shown in fig. 1, the system is roughly divided into two parts:
the Android equipment has a double-screen different display function, but only has one audio output function, namely, the audio is output by a loudspeaker;
and the Bluetooth equipment is connected with the Android equipment through Bluetooth, so that the Bluetooth equipment is used as Android equipment which only supports one sound card for playing and supplementing.
Example one
The embodiment provides a method for realizing double-screen abnormal sound of an android system, which includes the following two situations:
(A) for the dual-screen different display mechanism completed by different applications, as shown in fig. 2a, the implementation process of the dual-screen different sound is as follows: connecting the equipment with Bluetooth to enable the equipment to have two paths of playing ways of loudspeaker output and Bluetooth output; the method comprises the steps of respectively obtaining process numbers of applications run by two screens, and judging which application enters a sound channel currently according to the process numbers of the applications, so that whether a playing path of the sound channel currently entering is output by a loudspeaker or Bluetooth is specified according to requirements. As shown in fig. 2b, the implementation process specifically includes:
step 11, the equipment is connected with Bluetooth, so that the equipment has two paths of playing ways of loudspeaker output and Bluetooth output (if the Bluetooth is not connected, sound is output from the loudspeaker by default);
step 12, in the state of double-screen simultaneous display, the main screen opens a first application (namely application A) to play a video, the main screen and the auxiliary screen both display the content of the first application, and the sound of the main screen and the sound of the auxiliary screen are both output from the Bluetooth; this is because the Android system defaults to bluetooth with the highest priority, and sound is output from bluetooth;
step 13, triggering the dual-screen different display, and setting the process number of the first application into a custom attribute, wherein the value of the custom attribute is set to be-1 in the state of the same display; the main screen returns to the desktop in the abnormal display conversion state, the auxiliary screen displays the content of the first application, and at the moment, the audio system can automatically recreate and automatically store the process number of the caller; comparing the process number with the value of the self-defined attribute, if the process number is equal to the value of the self-defined attribute, indicating that the current caller is the first application, and outputting appointed sound from Bluetooth, namely outputting auxiliary screen sound from Bluetooth;
and 14, in the abnormal display state, the main screen opens a second application (namely application B) to play the video, the process number of the second application is compared with the value of the custom attribute, if the process number is not equal to the value of the custom attribute, the current audio caller is the second application on the main screen, and the appointed sound is output from the loudspeaker.
(B) For the dual-screen different display mechanism completed by the Presentation class, as shown in fig. 3a, the implementation process of the dual-screen different sound is: connecting the equipment with Bluetooth to enable the equipment to have two paths of playing ways of loudspeaker output and Bluetooth output; creating two player instances (for example: MediaPlayer) to play different videos, respectively displaying the two videos on different screens when the abnormal display is triggered, setting different session numbers (sessionids) for the two different player instances through corresponding audio session number setting interfaces (setaudiosessionids) of the two player classes, and then distinguishing a main screen from a sub screen through the session numbers, thereby specifying whether a corresponding playing path is output by a loudspeaker or by bluetooth according to requirements. As shown in fig. 3b, the implementation process specifically includes:
step 21, the device is connected with Bluetooth, so that the device has two paths of playing ways of loudspeaker output and Bluetooth output (if the Bluetooth is not connected, sound is output from the loudspeaker by default);
step 22, in the dual-screen simultaneous display state, the main screen opens the Presentation application, instantiates a player class, namely the first player class, sets the session number ID1 through the session number setting interface of the first player class, and plays the first video (namely video a), because the dual-screen separate display is not triggered at this time, the main screen and the auxiliary screen both display the content of the first video, and the sound of the main screen and the sound of the auxiliary screen are both output from the bluetooth;
step 23, triggering double-screen different display, continuously displaying the content of the first video on the auxiliary screen, and determining the output direction of the sound by the audio system by judging the value of the Session ID; if the SessionID is equal to ID1, indicating that the current caller is from the secondary screen, designating that the sound of the first video is output from bluetooth; at this time, the Presentation application creates a player instance, i.e., a second player instance, sets the session number ID2 through the session number setting interface of the second player instance, and plays the content of the second video (i.e., video B), at this time, it is determined whether the session ID of the audio system is equal to ID2, and if so, the sound of the second video is designated to be output from the speaker.
Based on the same inventive concept, the application also provides a device corresponding to the method in the first embodiment, which is detailed in the second embodiment.
Example two
In this embodiment, an apparatus for implementing a dual-screen abnormal sound of an android system is provided, which includes the following two cases:
(A) for the dual-screen different display mechanism completed by different applications, as shown in fig. 4a, the dual-screen different sound device includes:
the Bluetooth module is used for connecting the equipment with Bluetooth so that the equipment has two paths of playing ways of loudspeaker output and Bluetooth output;
the application process number acquisition module is used for respectively acquiring the process numbers of the applications run by the two screens;
the sound playing appointing module is used for judging which application enters the sound channel currently according to the process number of the application, so that whether the playing path of the sound channel entering the current sound channel is output by a loudspeaker or Bluetooth is appointed according to the requirement;
(B) for the dual-screen abnormal display mechanism completed by the Presentation class, as shown in fig. 4b, the dual-screen abnormal sound device includes:
the Bluetooth module is used for connecting the equipment with Bluetooth so that the equipment has two paths of playing ways of loudspeaker output and Bluetooth output;
the video playing application creation module is used for creating two player instances to play different videos, and when the different display is triggered, the two videos are respectively displayed on different screens;
the session control ID setting module is used for setting different session numbers for two different player instances through audio session number setting interfaces corresponding to two playing classes;
and the sound playing designation module is used for distinguishing the main screen and the auxiliary screen through the session number, so that whether the corresponding playing path is output by a loudspeaker or output by Bluetooth is designated according to the requirement.
Since the apparatus described in the second embodiment of the present invention is an apparatus used for implementing the method of the first embodiment of the present invention, based on the method described in the first embodiment of the present invention, a person skilled in the art can understand the specific structure and the deformation of the apparatus, and thus the details are not described herein. All the devices adopted in the method of the first embodiment of the present invention belong to the protection scope of the present invention.
Based on the same inventive concept, the application provides an electronic device embodiment corresponding to the first embodiment, which is detailed in the third embodiment.
EXAMPLE III
The embodiment provides an electronic device, as shown in fig. 5, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, any one of the first embodiment modes may be implemented.
Since the electronic device described in this embodiment is a device used for implementing the method in the first embodiment of the present application, based on the method described in the first embodiment of the present application, a specific implementation of the electronic device in this embodiment and various variations thereof can be understood by those skilled in the art, and therefore, how to implement the method in the first embodiment of the present application by the electronic device is not described in detail herein. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the application provides a storage medium corresponding to the fourth embodiment, which is described in detail in the fourth embodiment.
Example four
The present embodiment provides a computer-readable storage medium, as shown in fig. 6, on which a computer program is stored, and when the computer program is executed by a processor, any one of the embodiments can be implemented.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages: according to the method, the device, the equipment and the medium, the Bluetooth equipment is played and supplemented as the Android equipment which only supports one sound card, so that the sound of two screens can be output from the Bluetooth and the loudspeaker respectively according to the requirement, and the sound separation is realized. The double-screen different sound realization mechanism is respectively carried out aiming at the double-screen different display mechanism finished by different applications and the double-screen different display mechanism finished by Presentation types, so that flexible adaptation can be carried out according to the specific body condition of the equipment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.

Claims (6)

1. A method for realizing double-screen abnormal sound of an android system is characterized by comprising the following steps: the following two cases are included:
(A) if the dual-screen different display mechanism is completed through different applications, the implementation process of the dual-screen different sound is as follows: connecting the equipment with Bluetooth to enable the equipment to have two paths of playing ways of loudspeaker output and Bluetooth output; respectively acquiring process numbers of applications run by two screens, and judging which application currently enters a sound channel according to the application process numbers, so as to specify whether a playing path of the currently entering sound channel is output by a loudspeaker or Bluetooth according to requirements;
(B) if the dual-screen different display mechanism is completed through Presentation, the implementation process of the dual-screen different sound is as follows: connecting the equipment with Bluetooth to enable the equipment to have two paths of playing ways of loudspeaker output and Bluetooth output; the method comprises the steps of creating two player examples to play different videos, displaying the two videos on different screens respectively when the different displays are triggered, setting different session numbers for the two different player examples through corresponding audio session number setting interfaces of the two player types, and distinguishing a main screen from an auxiliary screen through the session numbers, so that whether a corresponding playing path is output by a loudspeaker or output by Bluetooth is designated according to requirements.
2. The method for realizing the double-screen abnormal sound of the android system according to claim 1, comprising: in the case (a), the implementation process of the double-screen abnormal sound is specifically as follows:
step 11, the equipment is connected with the Bluetooth, so that the equipment has two paths of playing ways of loudspeaker output and Bluetooth output;
step 12, in the state of double-screen simultaneous display, the main screen opens the first application to play video, the main screen and the auxiliary screen both display the content of the first application, and the sound of the main screen and the sound of the auxiliary screen are both output from the Bluetooth;
step 13, triggering the dual-screen different display, and setting the process number of the first application into a custom attribute, wherein the value of the custom attribute is set to be-1 in the state of the same display; the main screen returns to the desktop in the abnormal display state, the auxiliary screen still displays the content of the first application, and at the moment, the audio system can automatically recreate and automatically store the process number of the caller; comparing the process number with the value of the custom attribute, if the process number is equal to the value of the custom attribute, indicating that the current caller is the first application, and then designating sound to be output from Bluetooth, namely, sound of an auxiliary screen is output from Bluetooth;
and 14, in the state of double-screen different display, opening a second application on the main screen to play the video, comparing the process number of the second application with the value of the custom attribute, and if the process number is not equal to the value of the custom attribute, indicating that the current audio caller is the second application on the main screen, and then outputting the designated sound from the loudspeaker.
3. The method for realizing the double-screen abnormal sound of the android system according to claim 1, comprising: in the case (B), the implementation process of the double-screen abnormal sound is specifically as follows:
step 21, the equipment is connected with Bluetooth, so that the equipment has two paths of playing ways of loudspeaker output and Bluetooth output;
step 22, in the dual-screen simultaneous display state, the main screen opens the Presentation application, instantiates a first player class, sets a session number ID1 through a session number setting interface of the first player class, and plays a first video, so that the main screen and the auxiliary screen both display the content of the first video, and the sound of the main screen and the sound of the auxiliary screen are both output from the bluetooth;
step 23, triggering double-screen different display, continuously displaying the content of the first video on the auxiliary screen, and determining the output direction of the sound by the audio system by judging the value of the Session ID; if the SessionID is equal to ID1, indicating that the current caller is from the secondary screen, designating that the sound of the first video is output from bluetooth; at this time, the Presentation application creates a second player instance, sets a session number ID2 through a session number setting interface of the second player instance, and plays the content of the second video, and at this time, determines whether the session ID of the audio system is equal to ID2, and if so, designates the sound of the second video to be output from the speaker.
4. The utility model provides a realization device of two screens different sound of tall and erect system of ann which characterized in that: the following two cases are included:
(A) if the dual-screen different display mechanism is completed through different applications, the dual-screen different sound device comprises:
the Bluetooth module is used for connecting the equipment with Bluetooth so that the equipment has two paths of playing ways of loudspeaker output and Bluetooth output;
the application process number acquisition module is used for respectively acquiring the process numbers of the applications run by the two screens;
the sound playing appointing module is used for judging which application enters the sound channel currently according to the process number of the application, so that whether the playing path of the sound channel entering the current sound channel is output by a loudspeaker or Bluetooth is appointed according to the requirement;
(B) if the dual-screen abnormal sound device is a dual-screen abnormal display mechanism finished through Presentation, the dual-screen abnormal sound device comprises:
the Bluetooth module is used for connecting the equipment with Bluetooth so that the equipment has two paths of playing ways of loudspeaker output and Bluetooth output;
the video playing application creation module is used for creating two playing type instances to play different videos, and when the different display is triggered, the two videos are respectively displayed on different screens;
the session control ID setting module is used for setting different session numbers for two different player instances through audio session number setting interfaces corresponding to two playing classes;
and the sound playing designation module is used for distinguishing the main screen and the auxiliary screen through the session number, so that whether the corresponding playing path is output by a loudspeaker or output by Bluetooth is designated according to the requirement.
5. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 3 when executing the program.
6. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 3.
CN202010095390.0A 2020-02-17 2020-02-17 Method, device, equipment and medium for realizing double-screen abnormal sound of android system Pending CN111405337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010095390.0A CN111405337A (en) 2020-02-17 2020-02-17 Method, device, equipment and medium for realizing double-screen abnormal sound of android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010095390.0A CN111405337A (en) 2020-02-17 2020-02-17 Method, device, equipment and medium for realizing double-screen abnormal sound of android system

Publications (1)

Publication Number Publication Date
CN111405337A true CN111405337A (en) 2020-07-10

Family

ID=71413887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010095390.0A Pending CN111405337A (en) 2020-02-17 2020-02-17 Method, device, equipment and medium for realizing double-screen abnormal sound of android system

Country Status (1)

Country Link
CN (1) CN111405337A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114501126A (en) * 2021-12-25 2022-05-13 深圳市广和通无线股份有限公司 Video playing method, system and storage medium
WO2023124173A1 (en) * 2021-12-31 2023-07-06 晶晨半导体(上海)股份有限公司 Audio and video synchronization method and apparatus, electronic device and computer-readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040095514A1 (en) * 2002-11-18 2004-05-20 Sharp Laboratories Of America, Inc. Plural-source, selectable, combined image/text single-screen display
KR20050047608A (en) * 2003-11-18 2005-05-23 주식회사 대우일렉트로닉스 System for hearing simultaneously main screen audio and sub screen audio in the picture in picture system
CN106131322A (en) * 2016-06-30 2016-11-16 努比亚技术有限公司 Dual-screen mobile terminal plays the method and device of sound
CN106250083A (en) * 2016-07-31 2016-12-21 上海普览智能科技有限公司 Double screen dual control intelligent terminal and implementation method
CN106454506A (en) * 2016-11-15 2017-02-22 四川长虹电器股份有限公司 Audio route control method in multi-window environment of intelligent television
CN108132769A (en) * 2017-01-03 2018-06-08 中兴通讯股份有限公司 A kind of audio data play method and dual-screen mobile terminal
CN108958693A (en) * 2018-06-22 2018-12-07 联想(北京)有限公司 A kind of audio control method and electronic equipment
CN109445740A (en) * 2018-09-30 2019-03-08 Oppo广东移动通信有限公司 Audio frequency playing method, device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040095514A1 (en) * 2002-11-18 2004-05-20 Sharp Laboratories Of America, Inc. Plural-source, selectable, combined image/text single-screen display
KR20050047608A (en) * 2003-11-18 2005-05-23 주식회사 대우일렉트로닉스 System for hearing simultaneously main screen audio and sub screen audio in the picture in picture system
CN106131322A (en) * 2016-06-30 2016-11-16 努比亚技术有限公司 Dual-screen mobile terminal plays the method and device of sound
CN106250083A (en) * 2016-07-31 2016-12-21 上海普览智能科技有限公司 Double screen dual control intelligent terminal and implementation method
CN106454506A (en) * 2016-11-15 2017-02-22 四川长虹电器股份有限公司 Audio route control method in multi-window environment of intelligent television
CN108132769A (en) * 2017-01-03 2018-06-08 中兴通讯股份有限公司 A kind of audio data play method and dual-screen mobile terminal
CN108958693A (en) * 2018-06-22 2018-12-07 联想(北京)有限公司 A kind of audio control method and electronic equipment
CN109445740A (en) * 2018-09-30 2019-03-08 Oppo广东移动通信有限公司 Audio frequency playing method, device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114501126A (en) * 2021-12-25 2022-05-13 深圳市广和通无线股份有限公司 Video playing method, system and storage medium
CN114501126B (en) * 2021-12-25 2024-03-15 深圳市广和通无线股份有限公司 Video playing method, system and storage medium
WO2023124173A1 (en) * 2021-12-31 2023-07-06 晶晨半导体(上海)股份有限公司 Audio and video synchronization method and apparatus, electronic device and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN101448149B (en) Computer and method for playing animations during startup process thereof
CN114302193B (en) Display device and protocol detection method
CN111405337A (en) Method, device, equipment and medium for realizing double-screen abnormal sound of android system
CN107786735A (en) Music display methods, mobile terminal and computer-readable recording medium
US11123635B2 (en) Game application launch system and method
CN105446675A (en) Split-screen displaying method and electronic device
CN107450874B (en) Multimedia data double-screen playing method and system
KR20070037919A (en) Method of guiding menu and picture processing apparatus thereof
WO2020133372A1 (en) Video subtitle processing method and broadcast direction system
WO2021190319A1 (en) Interface access method, display apparatus, and electronic device
CN109889877A (en) Car multi-screen display control method and device
EP2778900B1 (en) Information processing device, information processing method, program, and information storage medium
CN111198666A (en) Multi-screen starting animation linkage method based on Hypervisor and related equipment
CN109525899A (en) The method and device that subtitle and audio video synchronization are presented
CN113010075B (en) Multi-signal source window interaction method and system, readable storage medium and electronic device
JP2013161205A (en) Information processing device, information processing method and program
WO2013089202A1 (en) Language teaching material customization system, language teaching material customization method, and storage medium
CN106507213A (en) Date storage method and data storage device
JP2013077159A (en) Test automation system
CN109819329B (en) Window display method and smart television
CN111475801A (en) Authority management method and system
CN112218140A (en) Video synchronous playing method, device, system and storage medium
CN111045631A (en) Method and device for realizing double-screen different display and different sound and storage medium
CN115437723A (en) Application scene fast switching method and device, electronic equipment and storage medium
CN109474857B (en) Image processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200710