CN112860938B - Multi-sound-source control method of vehicle-mounted multimedia, storage medium and electronic equipment - Google Patents

Multi-sound-source control method of vehicle-mounted multimedia, storage medium and electronic equipment Download PDF

Info

Publication number
CN112860938B
CN112860938B CN201911181887.8A CN201911181887A CN112860938B CN 112860938 B CN112860938 B CN 112860938B CN 201911181887 A CN201911181887 A CN 201911181887A CN 112860938 B CN112860938 B CN 112860938B
Authority
CN
China
Prior art keywords
sound source
played
priority
playing
list
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.)
Active
Application number
CN201911181887.8A
Other languages
Chinese (zh)
Other versions
CN112860938A (en
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.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Ecarx Hubei Tech 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 Ecarx Hubei Tech Co Ltd filed Critical Ecarx Hubei Tech Co Ltd
Priority to CN201911181887.8A priority Critical patent/CN112860938B/en
Publication of CN112860938A publication Critical patent/CN112860938A/en
Application granted granted Critical
Publication of CN112860938B publication Critical patent/CN112860938B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/638Presentation of query results
    • G06F16/639Presentation of query results using playlists

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)

Abstract

The invention discloses a multi-sound-source control method for vehicle-mounted multimedia, which comprises the following steps: receiving a playing control instruction of a sound source to be played in real time, and acquiring the sound source to be played from an application process of the sound source to be played based on the playing control instruction; judging whether a current playing sound source exists in a playing list stored in a memory; if the current playing sound source exists, judging whether the priority of the sound source to be played is higher than that of the current playing sound source; if so, adding the sound source to be played to the play list, setting the playing priority of the play list as the priority of the sound source to be played, playing the sound source to be played, stopping playing the current sound source, and transferring the current sound source to a pause list stored in a memory. The invention also discloses a storage medium and electronic equipment. By adopting the method and the device, the plurality of sound sources of the vehicle-mounted multimedia can be played or paused reasonably and orderly, and the use experience of a user can be improved.

Description

Multi-sound-source control method of vehicle-mounted multimedia, storage medium and electronic equipment
Technical Field
The invention relates to a multi-sound-source control method, in particular to a multi-sound-source control method for vehicle-mounted multimedia, and further relates to a storage medium and electronic equipment.
Background
With the continuous development of automotive electronic technology, more and more multimedia technologies are added to a vehicle-mounted intelligent terminal platform, and the vehicle-mounted intelligent terminal can also be called a vehicle-mounted multimedia system or a vehicle-mounted information entertainment system or a vehicle-mounted navigation terminal.
The existing vehicle-mounted multimedia system can be compatible with a plurality of application programs simultaneously, has various audio and video effects, and can realize functions such as navigation function, bluetooth communication, broadcasting or audio and video playing in the using process. In actual use, these functions may be used simultaneously. If the user is listening to the broadcast, the navigation function needs a voice broadcasting path, or a call is input during voice navigation.
In the current vehicle-mounted multimedia system, the Android system is used for playing various sound sources such as navigation voice, incoming call prompt tone, broadcast or audio/video playing sound and the like. When the encountered sound source scene is complex, for example, when a plurality of sound sources need to be played, a certain strategy needs to be adopted to select which sound source to play or stop, so that the problems of auditory confusion and unclear hearing, which affects the audio playing effect, and inconvenience for users are avoided.
Disclosure of Invention
In order to solve the above technical problem, in a first aspect, the present invention provides a multi-sound source control method for vehicle-mounted multimedia, where the control method includes:
receiving a playing control instruction of a sound source to be played in real time, and acquiring the sound source to be played from an application process of the sound source to be played based on the playing control instruction;
judging whether a current playing sound source exists in a playing list stored in a memory;
if the current playing sound source exists, judging whether the priority of the sound source to be played is higher than that of the current playing sound source;
if the priority of the sound source to be played is higher than that of the current sound source to be played, adding the sound source to be played to the play list, setting the priority of the play list as the priority of the sound source to be played so as to play the sound source to be played, stopping playing the current sound source to be played, and transferring the current sound source to a pause list stored in a memory.
Further, the control method further includes:
if the priority of the sound source to be played is judged to be not higher than the priority of the current sound source, further judging whether the priority of the sound source to be played is lower than the priority of the current sound source;
if the priority of the sound source to be played is lower than that of the currently played sound source, the sound source to be played is not played, the sound source to be played is moved to the pause list stored in the memory, and the sound sources in the pause list are reordered according to the priority.
Further, the control method further includes:
if the priority of the sound source to be played is judged to be not lower than that of the current sound source, further judging whether the sound source to be played and the current sound source are allowed to be played simultaneously;
if the sound source to be played and the current sound source are allowed to be played simultaneously, adding the sound source to be played into the play list, and simultaneously playing the sound source to be played and the current sound source.
Further, the control method further includes:
if the sound source to be played and the current sound source are judged not to be allowed to be played simultaneously, judging whether the sound source to be played and the current sound source are mutually exclusive sound sources or not;
if the sound source to be played and the current sound source are mutually exclusive sound sources, the sound source to be played is not played, and the sound source to be played is not added into the pause list;
and if the sound source to be played and the current sound source are not mutually exclusive, adding the sound source to be played to the pause list, and reordering the sound sources in the pause list according to the priority.
Further, the control method further includes:
receiving a playing stopping instruction of the sound source to be stopped playing in real time, and acquiring the sound source to be stopped playing from an application process of the sound source to be stopped playing based on the playing stopping instruction;
judging whether the sound source to be stopped playing is in the play list or not;
and if the sound source to be stopped playing is in the play list, releasing the focus of the sound source to be stopped playing.
Further, the control method further includes:
judging whether the sound source to be stopped playing is the only sound source to be played in the play list;
if the sound source to be stopped playing is the only sound source to be played in the play list, judging whether the pause list is empty;
and if the pause list is not empty, moving the sound source with the highest priority in the pause list to the play list as a sound source to be played, and reordering the sound sources in the pause list according to the priority of the sound sources in the pause list from high to low.
Further, the control method further includes:
if the pause list is judged not to be empty, further judging whether the priority of the sound source with the highest priority in the reordered pause list is the same as the priority of the sound source to be played;
if the priority of the sound source with the highest priority in the reordered pause list is the same as the priority of the sound source to be played, further judging whether the sound source with the highest priority in the reordered pause list and the sound source to be played are allowed to be played simultaneously;
if the sound source with the highest priority in the reordered pause list and the sound source to be played are allowed to be played simultaneously, the sound source with the highest priority is moved to the play list and played together with the sound source to be played.
Further, the control method further includes:
if the sound source to be stopped is not the only sound source in the play list,
or, if the suspend list is empty,
or, if the priority of the sound source with the highest priority in the reordered pause list is different from the priority of the sound source to be played,
or, if the sound source with the highest priority in the reordered pause list and the sound source to be played are not allowed to be played simultaneously,
and stopping playing the sound source to be stopped, and deleting the sound source to be stopped from playing the playlist.
Further, the control method further includes:
if the sound source to be stopped is judged not to be in the play list, further judging whether the sound source to be stopped is in the pause list;
and if the sound source to be stopped playing is in the pause list, deleting the sound source to be stopped playing from the pause list.
In a second aspect, the present invention further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded by a processor and executes the multi-sound-source control method for vehicle multimedia according to any one of the above aspects.
In a third aspect, the present invention further provides an electronic device, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the multi-sound-source control method for vehicle-mounted multimedia according to any one of the above aspects.
By adopting the technical scheme, the invention has the following beneficial effects:
through the priority preset by the system or the user, a plurality of sound sources of the vehicle-mounted multimedia can be played or paused reasonably and orderly, and the use experience of the user can be improved. By arranging the pause list and the play list, the sound sources can be arranged in the corresponding list to control the playing or pausing of the sound sources.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a method for controlling a vehicle-mounted multimedia multi-sound source according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating another method for controlling a multimedia multi-sound source in a vehicle according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating another method for controlling a multimedia multi-sound source in a vehicle according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating another control method for a multimedia multi-sound source in a vehicle according to an embodiment of the present invention;
fig. 5 is a control device for a vehicle-mounted multimedia multi-sound source according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. It should be apparent that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive efforts based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
Reference herein to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic may be included in at least one implementation of the invention. In the description of the present invention, it is to be understood that the terms "upper", "lower", "top", "bottom", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, are only for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. Moreover, the terms "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
Example (b):
the existing vehicle-mounted multimedia can be compatible with a plurality of application programs simultaneously, and each application program can output corresponding audio, such as audio with functions of navigation, conversation, broadcasting or video playing. In actual use, these applications may be used simultaneously, for example, when listening to a broadcast, the navigation function needs to voice-broadcast the navigation path, or when a call is made while voice-navigating.
The embodiment of the invention provides a multi-sound-source control method of vehicle-mounted multimedia, as shown in figure 1, the control method comprises the following steps:
s101: and receiving a playing control instruction of the sound source to be played in real time, and acquiring the sound source to be played from the application process of the sound source to be played based on the playing control instruction.
It can be understood that there are a plurality of applications, and there are only 1 service process corresponding to the system, and when each application is started, a corresponding application process ID is generated in the service process, and an object is constructed in the service process by using the application process ID as a parameter to record application-related information. In the embodiment of the present invention, the application-related information includes a stream type and a callback function into which the application is registered. And when judging that a certain application needs to be played, the service program informs the application through a callback function registered by the application.
S102: and judging whether the current playing sound source exists in the play list stored in the memory.
S103: if the current playing sound source exists, judging whether the priority of the sound source to be played is higher than that of the current playing sound source.
It can be understood that, the priority of the sound source to be played and the priority of the sound source currently played can be determined according to the application process ID to which the sound source to be played belongs and the application process ID to which the sound source currently played belongs, and then the priority of the sound source to be played and the priority of the sound source currently played can be determined.
Further, the priority of the sound source to be played may be set by default or by the user.
Specifically, the sound source includes a telephone sound source, a ring tone sound source, a voice interaction sound source, a media sound source, and a navigation sound source. Therefore, the priority of the telephone type sound source is set to be 4, the priority of the call ring type sound source is set to be 3, the priority of the voice interaction type sound source is set to be 2, and the priority of the media type sound source and the navigation type sound source is set to be 1; the priority of the above grades is reduced from 4 grades to 1 grade.
It can be understood that, according to the priority setting, when the voice interaction application runs in the background and the foreground plays music, if voice interaction is required, the sound of the music will stop. When the voice interaction is finished, the music playing can be automatically recovered. If a Bluetooth telephone calls in the voice interaction process, the sound source playing of the voice interaction can be automatically stopped.
In practical operation, the system can assign priorities to the stream types of the audio streams, so that different types of sound sources can be configured with corresponding priorities. Specifically, an array is pre-constructed in the memory, the index of the array item corresponds to the stream type, and the value of the array item corresponds to the priority of the stream type.
For example, the priority of the media class and the navigation class is defined to be 1, i.e. value is 1, the STREAM types corresponding to the STREAM types can include media STREAM _ MUSIC, synthesized voice STREAM _ TTS, FM STREAM _ FM navigation STREAM _ NAV, AM STREAM _ AM, BLUETOOTH MUSIC STREAM _ BLUETOOTH _ MUSIC, etc.; the priority of the VOICE interaction class is 2, namely, the value is 2, and the corresponding STREAM type can have a VOICE STREAM _ VOICE; the priority of the incoming call RING class is 3, namely, the value is 3, and the corresponding STREAM type can have an incoming call RING STREAM _ RING; the phone class has a priority of 4, i.e., value of 4, and the corresponding STREAM types may be TBOX STREAM _ TBOX _ SCO, BLUETOOTH STREAM _ BLUETOOTH _ SCO, and STREAM _ VOICE _ CALL. In conjunction with the above, the larger the value, the higher its corresponding priority.
S104: if the priority of the sound source to be played is higher than that of the current sound source to be played, adding the sound source to be played to the play list, setting the priority of the play list as the priority of the sound source to be played so as to play the sound source to be played, stopping playing the current sound source to be played, and transferring the current sound source to a pause list stored in a memory.
When the sound source to be played is played, the sound source to be played can be added to the playlist, and the priority of playing of the playlist is set to the priority of the sound source to be played, so that the sound source to be played can be played.
Furthermore, when the currently played sound source is moved to the pause list, the sound sources in the pause list can be reordered according to the priority. Therefore, the currently played sound source is set at the top of the pause list, and when the playing of the sound source to be played is finished, the currently played sound source can be moved to the play list to continue playing.
It is understood that the priority of the audio source to be played may be higher than the priority of the currently played audio source, may be lower than the priority of the currently played audio source, and may be the same as the priority of the currently played audio source. There are different implementations corresponding to different comparison results, and the details will be described below.
In some possible implementations, the playlist and the pause list may be lists in the background of the system.
Specifically, the system builds two container types ArrayList in memory. One of the sound sources is a play list, and the members in the sound source list represent the sound source which is playing; the other is a pause list, the members in the pause list represent sound sources which are not played at present, but when the play list is empty, the system can resume the playing of the members in the pause list. Correspondingly, when a sound source needs to be played, the system can also construct a corresponding class object FocusRequester in the memory: and the client identifier of the application is formed by the package name information of the application, the audio manager information held by the application and the monitoring object information of the application. The packet name information is acquired from an application, and the audio manager information held by the application and the monitoring object information of the application are distinguished through a memory address. The class object FocusRequester corresponds to the sound source type, so that the system can distinguish whether the sound sources come from the same application or not through the client identification in the subsequent processing process. And subsequently, the data placed in the list is the FocusRequester object constructed in the method.
In other possible embodiments, the playlist and the pause list may be displayed on an interface of the vehicle multimedia system, so that the user can know which sound sources are playing or which sound sources are paused through the playlist or pause list. Meanwhile, if the user actively selects a certain sound source, the sound source is directly played beyond the limitation of priority, so that the user can obtain better use experience. Whether the user actively selects a certain sound source can be judged by acquiring the operation of the user on the multimedia interface.
And the play list and the pause list can be divided into two lists for displaying, and can also exist in the same list for marking and displaying.
In some possible embodiments, as shown in fig. 2, in step S103, if it is determined that the priority of the sound source to be played is not higher than the priority of the currently played sound source; then, steps S105-S106 are performed,
s105: judging whether the priority of the sound source to be played is lower than the priority of the current sound source to be played;
s106: if the priority of the sound source to be played is lower than that of the current sound source to be played, the sound source to be played is not played, the sound source to be played is moved to the pause list stored in the memory, and the sound sources in the pause list are reordered according to the priority.
In some possible embodiments, as shown in fig. 2, in step S105, if it is determined that the priority of the audio source to be played is not lower than the priority of the currently played audio source, steps S107-S108 are executed,
s107: judging whether the sound source to be played and the current sound source are allowed to be played simultaneously or not;
s108: if the sound source to be played and the current sound source are allowed to be played simultaneously, adding the sound source to be played into the play list, and simultaneously playing the sound source to be played and the current sound source.
For example, when a media sound source is playing in the playlist, and a navigation sound source needs to be played at the moment, if the priority of the navigation sound source is judged to be the same as the priority of the media sound source and the navigation sound source is allowed to be played at the same time, the navigation sound source is added to the playlist, and the media sound source and the navigation sound source are played at the same time. Further, when the media sound source and the navigation sound source are played simultaneously, the media sound source and the navigation sound source can be played in a mixed sound mode, or in a mode that the volume of one sound source is greater than that of the other sound source, which is not limited specifically.
In other possible embodiments, as shown in fig. 2, in step S107, if the audio source to be played and the currently played audio source are not allowed to be played simultaneously, steps S109-S111 are executed,
s109: judging whether the sound source to be played and the current sound source are mutually exclusive sound sources or not;
s110: if the sound source to be played and the current sound source are mutually exclusive sound sources, the sound source to be played is not played, and the sound source to be played is not added into a pause list;
s111: and if the sound source to be played and the current sound source are not mutually exclusive sound sources, adding the sound source to be played to a pause list, and reordering the pause list according to the priority.
The mutually exclusive sound source refers to a sound source corresponding to the application with the same attribute, for example, the application of the QQ music and the application of the Internet Excellent cloud music belong to the application with the same attribute. When the applications with the same attribute are defined, the priorities of the applications are generally the same, when the applications need to play the corresponding sound sources at the same time, the applications and the sound sources belong to mutually exclusive sound sources, and after one sound source is played, the other sound source is not played. For example, the sound source being played is a sound source in QQ music, and the sound source to be played is a sound source in internet music. When the sound source of the internet cloud music is played, the QQ music stops playing the sound source; after the sound source in the internet music is played, the QQ music can not be played again.
Certainly, the sound source to be played is obtained from the application process of the sound source to be played for playing, and the system can select any one sound source as the sound source to be played; the sound sources to be played can also be compared in priority first, and the priority is sequentially decreased to carry out corresponding sorting and playing.
In some possible embodiments, as shown in fig. 3, the method for controlling a car multimedia multi-sound source further includes:
s201: and receiving a playing stopping instruction of the sound source to be stopped playing in real time, and acquiring the sound source to be stopped playing from the application process of the sound source to be stopped playing based on the playing stopping instruction.
It is understood that the control information may also include pause information for any one or more application sound sources. In addition, the sound source to be stopped playing may be a sound source actively paused by the user. For example, when the user is listening to a song or the like using the media sound source, the navigation sound source needs to be played for navigation prompt, and the user can select to pause playing the navigation sound source according to the user's will. The foregoing is merely illustrative of one scenario for purposes of understanding and the present invention is capable of accommodating the above and further scenarios.
S202: and judging whether the sound source to be stopped playing is in the play list.
S203: and if the sound source to be stopped playing is in the play list, releasing the focus of the sound source to be stopped playing.
It will be appreciated that the application may be notified to play or pause by an incoming listening object passed by the application. Wherein the listening object may be a call back object that an application program has come in.
In some possible embodiments, as shown in fig. 4, the method for controlling the in-vehicle multimedia multi-sound source may further include:
s204: judging whether the sound source to be stopped playing is the only sound source to be played in the play list;
s205: if the sound source to be stopped playing is the only sound source to be played in the play list, further judging whether the pause list is empty;
s206: and if the pause list is not empty, moving the sound source with the highest priority in the pause list to the play list as a sound source to be played, and reordering the sound sources in the pause list according to the priority of the sound sources in the pause list from high to low.
It is understood that, in the embodiment of the present invention, the sound sources in the pause list are arranged in order from high to low according to the priority. Thus the highest priority source will be ranked at the very front of the pause list, followed by the next highest or even lowest priority source. Of course, in other embodiments, the sort rules in the pause list may have other arrangements.
In some possible embodiments, as shown in fig. 4, the S206 may further include:
s207: judging whether the priority of the sound source with the highest priority in the reordered pause list is the same as the priority of the sound source to be played;
s208: if the priority of the sound source with the highest priority in the reordered pause list is the same as the priority of the sound source to be played, further judging whether the sound source with the highest priority in the reordered pause list and the sound source to be played are allowed to be played simultaneously;
s209: if the sound source with the highest priority in the reordered pause list and the sound source to be played are allowed to be played simultaneously, the sound source with the highest priority is moved to the play list and played together with the sound source to be played.
It is understood that in some implementation scenarios, there may be multiple sound sources with the same priority in the pause list, and after the sound source with the highest priority in the pause list moves into the play list as the sound source to be played, the pause list is rearranged according to the priority; if the sound source with the highest priority in the reordered pause list has the same priority as the sound source to be played, if the two sound sources are allowed to be played simultaneously, the sound source with the highest priority in the reordered pause list can be moved to a play list for playing. Correspondingly, in other implementation scenarios, the sound sources corresponding to the highest priority may be moved to the playlist at the beginning at the same time, and it may be determined whether the sound sources can be played at the same time. The specific situation is not limited.
In some possible embodiments, as shown in fig. 4, the control method further includes:
if the sound source to be stopped is not the only sound source in the play list in step S204,
or, if the suspend list is empty in step S205,
or, if the sound source with the highest priority in the reordered pause list has a priority different from the priority of the sound source to be played in step S207,
or, if in step S208, the sound source with the highest priority in the reordered pause list and the sound source to be played are not allowed to be played simultaneously,
step S212 is executed: and stopping playing the sound source to be stopped, and deleting the sound source to be stopped from playing the playlist.
In some possible embodiments, as shown in fig. 4, in step S202, if the to-be-stopped audio source is not in the playlist, steps S210-S211 are executed,
s210: further judging whether the sound source to be stopped playing is in the pause list or not;
s211: and if the sound source to be stopped playing is in the pause list, deleting the sound source to be stopped playing from the pause list.
Further, if in the step S210, the to-be-stopped sound source is not in the pause list, then step S213 is executed: and stopping playing the sound source to be stopped.
Therefore, the sound source to be stopped from being played in the subsequent playing process due to being stored in the pause list is avoided, and the occupation of the memory can be reduced.
In some possible embodiments, as shown in fig. 5, an embodiment of the present invention further provides a multi-source control device 100 for vehicle multimedia, where the control device includes:
the playing control instruction receiving module 101 is configured to receive a playing control instruction of a sound source to be played in real time, and acquire the sound source to be played from an application process of the sound source to be played based on the playing control instruction;
a current playing sound source judgment module 102, configured to judge whether a current playing sound source exists in a play list stored in the memory;
a priority determination module 103, configured to determine whether the priority of the sound source to be played is higher than the priority of the current sound source if the current sound source exists;
the playing processing module 104 is configured to add the sound source to be played to the playlist if the priority of the sound source to be played is higher than the priority of the currently played sound source, set the priority of playing of the playlist as the priority of the sound source to be played, play the sound source to be played, stop playing the currently played sound source, and transfer the currently played sound source to a pause list stored in a memory.
The embodiment of the present invention further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded by a processor and executes the multi-sound-source control method for vehicle-mounted multimedia according to any one of the above descriptions.
The embodiment of the present invention further provides an electronic device, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the multi-sound-source control method for vehicle-mounted multimedia according to any one of the above embodiments.
It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the apparatus, system and server embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the scope of the present invention, which is intended to cover any modifications, equivalents, improvements, etc. within the spirit and scope of the present invention.

Claims (8)

1. A multi-sound source control method for vehicle-mounted multimedia is characterized by comprising the following steps:
receiving a playing control instruction of a sound source to be played in real time, and acquiring the sound source to be played from an application process of the sound source to be played based on the playing control instruction;
judging whether a current playing sound source exists in a playing list stored in a memory;
if the current playing sound source exists, judging whether the priority of the sound source to be played is higher than that of the current playing sound source;
if the priority of the sound source to be played is higher than that of the current sound source to be played, adding the sound source to be played to the play list, setting the priority of the play list as the priority of the sound source to be played, playing the sound source to be played, stopping playing the current sound source, transferring the current sound source to a pause list stored in a memory, and reordering the sound sources in the pause list according to the priority; wherein the playlist and the pause list are lists in a system background;
receiving a playing stopping instruction of the sound source to be stopped playing in real time, and acquiring the sound source to be stopped playing from the application process of the sound source to be stopped playing based on the playing stopping instruction;
judging whether the sound source to be stopped playing is in the play list or not;
if the sound source to be stopped playing is in the play list, releasing the focus of the sound source to be stopped playing;
if the to-be-stopped playing sound source is the only playing sound source in the playing list, and if the pause list is not empty, moving the sound source with the highest priority in the pause list to the playing list as the to-be-played sound source, and reordering the sound sources in the pause list from high to low according to the priority of the sound sources in the pause list;
if the sound source to be stopped is not in the play list, further judging whether the sound source to be stopped is in the pause list;
and if the sound source to be stopped playing is in the pause list, deleting the sound source to be stopped playing from the pause list.
2. The multi-sound-source control method for vehicle-mounted multimedia according to claim 1, further comprising:
if the priority of the sound source to be played is judged to be not higher than the priority of the current sound source, further judging whether the priority of the sound source to be played is lower than the priority of the current sound source;
if the priority of the sound source to be played is lower than that of the currently played sound source, the sound source to be played is not played, the sound source to be played is moved to the pause list stored in the memory, and the sound sources in the pause list are reordered according to the priority.
3. The multi-sound-source control method of in-vehicle multimedia according to claim 2, further comprising:
if the priority of the sound source to be played is judged to be not lower than that of the current sound source, further judging whether the sound source to be played and the current sound source are allowed to be played simultaneously;
if the sound source to be played and the current sound source are allowed to be played simultaneously, adding the sound source to be played into the play list, and simultaneously playing the sound source to be played and the current sound source.
4. The multi-sound-source control method for vehicle-mounted multimedia according to claim 3, further comprising:
if the sound source to be played and the current sound source are judged not to be allowed to be played simultaneously, further judging whether the sound source to be played and the current sound source are mutually exclusive sound sources;
if the sound source to be played and the current sound source are mutually exclusive sound sources, the sound source to be played is not played, and the sound source to be played is not added into the pause list;
and if the sound source to be played and the current sound source are not mutually exclusive, adding the sound source to be played to the pause list, and meanwhile, reordering the sound sources in the pause list according to the priority.
5. The multi-sound-source control method for vehicle-mounted multimedia according to claim 1, further comprising:
if the pause list is not empty, further judging whether the priority of the sound source with the highest priority in the reordered pause list is the same as the priority of the sound source to be played;
if the priority of the sound source with the highest priority in the reordered pause list is the same as the priority of the sound source to be played, further judging whether the sound source with the highest priority in the reordered pause list and the sound source to be played are allowed to be played simultaneously;
if the sound source with the highest priority in the reordered pause list and the sound source to be played are allowed to be played simultaneously, the sound source with the highest priority is moved to the play list and played together with the sound source to be played.
6. The multi-sound-source control method for vehicle-mounted multimedia according to claim 5, further comprising:
if the sound source to be stopped is not the only sound source in the play list,
or, if the suspend list is empty,
or, if the priority of the sound source with the highest priority in the reordered pause list is different from the priority of the sound source to be played,
or, if the sound source with the highest priority in the reordered pause list and the sound source to be played are not allowed to be played simultaneously,
and stopping playing the sound source to be stopped and deleting the sound source to be stopped from the play list.
7. A computer-readable storage medium, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded by a processor and executes the multi-tone source control method for in-vehicle multimedia according to any one of claims 1 to 6.
8. An electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the multi-source control method of multimedia in vehicle according to any one of claims 1 to 6.
CN201911181887.8A 2019-11-27 2019-11-27 Multi-sound-source control method of vehicle-mounted multimedia, storage medium and electronic equipment Active CN112860938B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911181887.8A CN112860938B (en) 2019-11-27 2019-11-27 Multi-sound-source control method of vehicle-mounted multimedia, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911181887.8A CN112860938B (en) 2019-11-27 2019-11-27 Multi-sound-source control method of vehicle-mounted multimedia, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112860938A CN112860938A (en) 2021-05-28
CN112860938B true CN112860938B (en) 2023-04-11

Family

ID=75985667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911181887.8A Active CN112860938B (en) 2019-11-27 2019-11-27 Multi-sound-source control method of vehicle-mounted multimedia, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112860938B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778371B (en) * 2021-09-16 2023-04-07 东风电子科技股份有限公司 System, method and device for realizing multi-module sound management control for vehicle-mounted computer system, processor and computer storage medium thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930889A (en) * 2012-10-26 2013-02-13 北京世纪联成科技有限公司 Sound conflict processing method based on vehicle-mounted information entertainment system
CN106297839A (en) * 2016-09-30 2017-01-04 四川九洲电器集团有限责任公司 A kind of audio-frequence player device
WO2017107427A1 (en) * 2015-12-25 2017-06-29 百度在线网络技术(北京)有限公司 Terminal equipment control method, device, and equipment, and non-volatile computer storage medium
CN108062215A (en) * 2017-11-22 2018-05-22 上海博泰悦臻电子设备制造有限公司 Vehicle source of sound control method and system, vehicle and its car-mounted terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930889A (en) * 2012-10-26 2013-02-13 北京世纪联成科技有限公司 Sound conflict processing method based on vehicle-mounted information entertainment system
WO2017107427A1 (en) * 2015-12-25 2017-06-29 百度在线网络技术(北京)有限公司 Terminal equipment control method, device, and equipment, and non-volatile computer storage medium
CN106297839A (en) * 2016-09-30 2017-01-04 四川九洲电器集团有限责任公司 A kind of audio-frequence player device
CN108062215A (en) * 2017-11-22 2018-05-22 上海博泰悦臻电子设备制造有限公司 Vehicle source of sound control method and system, vehicle and its car-mounted terminal

Also Published As

Publication number Publication date
CN112860938A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN105530171B (en) Method and device for playing instant message voice by vehicle-mounted terminal
CN104618560B (en) Incoming call prompt processing method and device for mobile terminal
CN110505603B (en) Bluetooth phone privacy protection method and vehicle machine
US20070121657A1 (en) Method and communication device for providing a personalized ring-back
CN105704309B (en) Mobile terminal and method for customizing incoming call reminding thereof
EP2046006B1 (en) Ring back tone playing method, device, and system
CN113271380A (en) Audio processing method and device
CN106375581B (en) Method for playing audio during call and mobile terminal
KR20140094951A (en) Supporting Method for Communication Call Rejection and Electronic Device supporting the same
CN112860938B (en) Multi-sound-source control method of vehicle-mounted multimedia, storage medium and electronic equipment
CN111970408A (en) Method, system, electronic equipment and storage medium for playing video color ring
CN108235063A (en) A kind of method for processing video frequency, device, electronic equipment and storage medium
CN112533188B (en) Output processing method and device of play source
CN108234768B (en) Resource switching control method and device and terminal equipment
CN113423007B (en) Control method and device for multi-audio playing, electronic equipment and storage medium
CN116684856A (en) Bluetooth connection method and device
CN105979297A (en) Watching duration statistic method and system
CN111158629A (en) Method and system for seamlessly switching media asset players
CN112689152B (en) Scheduling method, scheduling device, electronic equipment and storage medium
CN113760219A (en) Information processing method and device
CN111182477A (en) Method, system, medium and intelligent terminal for improving mood of user based on picture
CN113495712A (en) Automatic volume adjustment method, apparatus, medium, and device
CN108156302A (en) A kind of control method of mobile terminal, mobile terminal and storage medium
CN109144826A (en) WIFI signal indicating means, device, electronic equipment and storage medium
CN117241253A (en) Multi-audio self-adaptive switching play processing method, system, terminal and medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220330

Address after: 430056 No. b1336, chuanggu startup area, taizihu cultural Digital Creative Industry Park, No. 18, Shenlong Avenue, Wuhan Economic and Technological Development Zone, Hubei Province

Applicant after: Yikatong (Hubei) Technology Co.,Ltd.

Address before: No.c101, chuanggu start up zone, taizihu cultural Digital Industrial Park, No.18 Shenlong Avenue, Wuhan Economic and Technological Development Zone, Hubei Province

Applicant before: HUBEI ECARX TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant