Multimedia playing method and device, electronic equipment and vehicle
By introducing non-memory and memory playback focus types into multimedia playback devices, the problem that multimedia playback devices cannot restore previous content when switching sources is solved, playback flexibility and user experience are improved, and driving safety is ensured.
Patent Information
- Application Number
- CN202410583530.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-08-30
AI Technical Summary
Existing multimedia playback devices cannot effectively restore the previous playback content when switching multimedia sources, which affects the user experience and is not conducive to driving safety.
Two types of playback focus are adopted, non-memory type and memory type. By receiving multimedia playback requests, the playback focus is released or restored to ensure continuous playback of multimedia content.
The flexibility of multimedia playback is improved. Users can resume previous playback content without manual operations, which improves user experience and ensures driving safety.
Smart Images

Figure CN118574097A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of multimedia playback technology, and in particular to a multimedia playback method, device, electronic equipment and vehicle. Background Art
[0002] Existing multimedia playback devices can often support the playback of content from multiple multimedia sources, and these multimedia sources often switch between each other for playback. After switching, the playback permission is released, and sometimes there will be permission control problems. For example, in the in-car entertainment system, Bluetooth music and in-car music can be switched for playback. Among them, the Bluetooth music application in the in-car entertainment system can obtain the audio information of the mobile phone through the Bluetooth connection between the mobile phone and the in-car entertainment system using the Bluetooth protocol, and initiate playback when the user enters the Bluetooth music application. If the in-car entertainment system is playing in-car music at this time, then in the Bluetooth connection state, the mobile phone can directly seize the audio focus of the in-car entertainment system and play Bluetooth music. After the mobile phone seizes the audio focus, the previous playback content of the in-car entertainment system cannot be restored. If a social media short message appears on the mobile phone, it will seize the audio focus. After the Bluetooth message ends, the in-car entertainment system cannot be restored to the previous playback content, and the user needs to perform manual operation, which not only affects the user experience but also is not conducive to driving safety. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to provide a multimedia playback method, device, electronic device and vehicle, aiming to improve the flexibility of multimedia playback.
[0004] To achieve the above-mentioned purpose, one aspect of an embodiment of the present application proposes a multimedia playback method, including: receiving a multimedia playback request; if the multimedia playback request originates from a first multimedia service and the playback focus is not occupied, playing the multimedia content of the first multimedia service based on the first playback focus type; if the multimedia playback request originates from a second multimedia service and the playback focus is occupied by the first multimedia service, releasing the first playback focus type, and playing the multimedia content of the second multimedia service based on the second playback focus type; if the second multimedia service requests to release the playback focus, restoring the playback focus to the first playback focus type, and continuing to play the multimedia content of the first multimedia service based on the first playback focus type; wherein, the first playback focus type is a non-memory playback type, and the second playback focus type is a memory playback type.
[0005] In some embodiments, the multimedia playback method further includes: if the first multimedia service requests to release the playback focus, stopping playback of the multimedia content of the first multimedia service.
[0006] In some embodiments, playing the multimedia content of the second multimedia service based on the second playback focus type also includes: determining whether a timely playback switch is turned on; if the timely playback switch is on, adding a second playback focus type upon receiving a playback request from the second multimedia service; and assigning the second playback focus type to the second multimedia service.
[0007] In some embodiments, restoring the playback focus to the first playback focus type includes: releasing the second playback focus type; and switching the playback focus back to the first playback focus type.
[0008] In some embodiments, playing the multimedia content of the first multimedia service based on the first play focus type includes: playing content in vehicle online multimedia, local multimedia or vehicle radio based on the first play focus type.
[0009] In some embodiments, playing the multimedia content of the second multimedia service based on the second play focus type includes: playing the multimedia content of the Bluetooth application based on the second play focus type.
[0010] In some embodiments, the multimedia content of the second multimedia service originates from a terminal, and the playing of the multimedia content of the second multimedia service is controlled by the terminal.
[0011] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application proposes a multimedia playback device, which includes: a receiving module for receiving a multimedia playback request; a first playback module for playing the multimedia content of the first multimedia service based on a first playback focus type when the multimedia playback request originates from the first multimedia service and the playback focus is not occupied; a second playback module for releasing the first playback focus type and playing the multimedia content of the second multimedia service based on the second playback focus type when the multimedia playback request originates from the second multimedia service and the playback focus is occupied by the first multimedia service; a third playback module for restoring the playback focus to the first playback focus type when the second multimedia service requests to release the playback focus, and continuing to play the multimedia content of the first multimedia service based on the first playback focus type; wherein, the first playback focus type is a non-memory playback type, and the second playback focus type is a memory playback type.
[0012] To achieve the above objectives, another aspect of an embodiment of the present application provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the multimedia playback method described in the above embodiment is implemented.
[0013] To achieve the above objective, another aspect of an embodiment of the present application provides a vehicle, wherein the vehicle includes a multimedia playback device of the above embodiment or an electronic device of the above embodiment.
[0014] The embodiments of the present application include at least the following beneficial effects:
[0015] The present application provides a multimedia playback method, device, electronic device and vehicle, the multimedia playback method comprising: receiving a multimedia playback request; if the multimedia playback request originates from a first multimedia service and the playback focus is not occupied, playing the multimedia content of the first multimedia service based on a first playback focus type; if the multimedia playback request originates from a second multimedia service and the playback focus is occupied by the first multimedia service, releasing the first playback focus type, and playing the multimedia content of the second multimedia service based on the second playback focus type; if the second multimedia service requests to release the playback focus, restoring the playback focus to the first playback focus type, and continuing to play the multimedia content of the first multimedia service based on the first playback focus type, thereby improving the flexibility of multimedia playback and further enhancing the user experience.
[0016] It can be understood that the beneficial effects of the device, electronic device and vehicle disclosed in the present application are the same as the beneficial effects of the multimedia playback method, and will not be repeated here.
[0017] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0019] Figure 1 is a flowchart of a multimedia playback method provided by an embodiment of the present application;
[0020] Figure 2 is a flowchart of a first play focus type play method provided in an embodiment of the present application;
[0021] Figure 3 is a flowchart of a second playback focus type playback method provided in an embodiment of the present application;
[0022] Figure 4 is another flowchart of the second play focus type play method provided in an embodiment of the present application;
[0023] Figure 5 is another flow chart of the multimedia playback method provided in the embodiment of the present application;
[0024] Figure 6 is a schematic block diagram of modules of a multimedia playback device provided in an embodiment of the present application;
[0025] Figure 7 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the reference to "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of this phrase in various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0027] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0028] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0030] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0031] In order to make the inventive concept of the present application easy to understand, before describing the embodiments of the present application in detail, the English abbreviations (terms) / related concepts involved in the embodiments of the present application are first described. The English abbreviations (terms) / related concepts involved in the embodiments of the present application are subject to the following explanations.
[0032] Car computer: The full name is In-Vehicle Infotainment (IVI), which refers to an intelligent system installed inside the car that integrates touch screen, voice recognition, navigation, music playback, Bluetooth communication and other functions. It provides convenient information and entertainment services for drivers and passengers through integration with other vehicle systems. With the advancement of technology, car computer systems have gradually evolved into integrated intelligent car computer systems, which are not limited to traditional entertainment functions, but more integrated with intelligent driving assistance systems, vehicle management systems and Internet services. Modern car computer systems can be seamlessly connected with smartphones, providing map services such as AutoNavi and Baidu, real-time traffic information, and rich content such as online music, news, and videos.
[0033] Audio focus: Audio focus is a mechanism for managing multiple applications playing audio at the same time. When two or more applications can play audio to the same output stream, the system will mix all audio streams together for playback. Although this technology is excellent, it can cause trouble for users because it may lead to degraded sound quality and poor user experience. To avoid this situation, the concept of audio focus is introduced, which stipulates that only one application can obtain the focus of sound at any time and thus be able to make sound. When an application needs to play audio, it must first request to obtain audio focus, and when it does not need to play audio, it should give up audio focus.
[0034] Play focus: Play focus is similar to audio focus. In this application, audio focus is a specific instance of play focus. Play focus refers to a mechanism for managing multiple applications to play multimedia simultaneously, which can also be called multimedia focus.
[0035] Various multimedia software are often installed in today's multimedia systems. When two or more applications play multimedia content to the same output stream, the system will use a mechanism to control the multimedia playback permissions. The existing multimedia control technology mainly uses the audio focus technology. For example, in the audio switching control of the car computer, the audio focus service is used as the switching control between audios. However, when the Bluetooth application seizes the audio focus and releases it, the current car computer system cannot restore the playback content before the Bluetooth application seized it.
[0036] In view of this, the present application proposes a multimedia playback method, device, electronic device and vehicle. By setting two playback focus types, the solution enables the service that uses the second focus type to restore to the content of the first focus type after releasing the playback focus and continue to play based on the previously played content, thereby improving the flexibility of multimedia playback and further enhancing the user experience.
[0037] The following will describe in detail the implementation steps of a multimedia playback method provided by an embodiment of the present application in conjunction with the accompanying drawings.
[0038] The method provided in the embodiment of the present invention can be applied to a vehicle computer, a terminal, or a server, and can also be software running in a vehicle computer, a terminal, or a server. The vehicle computer system can be an Android system, a WinCE system, a Linux system, CarPlay, or YunOS, etc., and the terminal can be a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, big data, and artificial intelligence platforms.
[0039] Please refer to Figure 1 , Figure 1 A flowchart of a multimedia playback method provided for an embodiment of the present application; it should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.
[0040] The method of the embodiment of the present application comprises the following steps:
[0041] Step 1: First, receive a multimedia playback request;
[0042] Step 2: If the multimedia playback request comes from the first multimedia service, and the playback focus is not occupied and is in an idle state, the first playback focus type can be used to play the multimedia content to be played in the first multimedia service;
[0043] Step 3: If the multimedia playback request comes from the second multimedia service, and the playback focus is already occupied by the first multimedia service, the first playback focus type will be released, and the multimedia content to be played in the second multimedia service will be played through the second playback focus type;
[0044] Step 4: If the second multimedia service sends a request to release the currently occupied play focus, then the current play focus will be restored to the first play focus type, and the multimedia content that was previously interrupted in the first multimedia service will continue to be played through the first play focus type.
[0045] The first play focus type is a non-memory play type, and the second play focus type is a memory play type.
[0046] In steps 1 to 4 shown in the embodiment of the present application, when a playback request for a second multimedia service is received, the playback focus occupied by the first multimedia service is released and a second playback focus (second playback focus type) is allocated to the second multimedia service, and the content in the second multimedia service is played based on the second playback focus. When the second multimedia service releases the playback focus, the playback focus will be restored to the first playback focus (first playback focus type), and the content of the first multimedia service that was interrupted will continue to be played, thereby improving the flexibility of multimedia playback. After the second multimedia service releases the playback focus, it can automatically switch to the previous playback content, eliminating the user's manual operation and improving the user's experience.
[0047] In step 1 of some embodiments, a multimedia playback request is received, and the multimedia playback request may be sent to the multimedia playback system in the form of an instruction. The multimedia content may include text, graphic images, audio, and video, but is not limited thereto. Exemplarily, the multimedia playback request may be received by the vehicle computer, and the multimedia may be audio playback, that is, the audio playback request is received by the vehicle computer.
[0048] The embodiment provided in the present application receives a multimedia playback request and can determine the playback mode of the multimedia content according to the service type of the received playback request.
[0049] In step 2 of some embodiments, if the multimedia playback request comes from the first multimedia service, and the playback focus is not occupied and is in an idle state, then the first playback focus type can be used to play the multimedia content that needs to be played in the first multimedia service. Optionally, the content in the vehicle-mounted online multimedia, local multimedia or vehicle-mounted radio station can be played based on the first playback focus type.
[0050] Optionally, the first multimedia service may be some services with a lower priority level. For example, the first multimedia service may be some audio or video services provided by the vehicle equipment, such as in-vehicle online music, online video, online radio, local music, local video, music and video in mobile storage, etc. This application does not impose any restrictions on this.
[0051] In some embodiments, taking the audio playback of the car computer as an example, when the car computer does not have any audio source to play, the online radio is triggered to play, and the online radio application applies for audio focus from the audio focus service. At this time, the audio focus is not occupied, and the audio focus service assigns it to the online radio application audio focus type 1. When the online radio application obtains focus type 1, it directly plays the content of the radio station. It should be noted that audio focus type 1 (the first playback focus type) is a non-memory playback type, that is, the return strategy of the first playback focus type is not to remember the last playback content, and not to restore other playback content after the playback ends.
[0052] In some embodiments, if the first multimedia service sends a request to release the current play focus, then the multimedia content in the first multimedia service is stopped from playing. For example, if the car radio application requests to release the audio focus from the audio focus service, at this time, the car radio occupies the first play focus type, then the car will stop playing the content in the car radio, and will not play the content of other applications until the play request is received again. For another example, when the car does not have any audio playback content, click to play the radio, and when the radio is playing, choose to play the online radio again. After the online radio ends / pauses, the multimedia audio is paused, and the previous radio will not resume playing.
[0053] Please refer to Figure 2 , Figure 2 This is a flowchart of the first play focus type playback method provided by an embodiment of the present application. For example, the radio and online radio both belong to the first multimedia service. When they issue a play request, they will play through the first play focus type. When the radio issues a play request and the audio focus is idle, the first play focus type will be assigned to the radio. The radio plays through the first play focus type. After that, the online radio application is triggered. The online radio issues a play request, and the online radio obtains the play permission. The content of the online radio is played through the first play focus type. When the online radio is paused or ended, the play focus is released, and the sound stops being output.
[0054] The embodiment provided in the present application simplifies multimedia playback operations by allocating a first playback focus type to a first multimedia service, and playback applications in the first multimedia service can be switched with each other, and the previous content will not be restored after the playback ends, which can meet the playback requirements of some multimedia playback applications.
[0055] In step 3 of some embodiments, if the multimedia playback request comes from the second multimedia service, and the playback focus is already occupied by the first multimedia service, the first playback focus type will be released, and the multimedia content to be played in the second multimedia service will be played through the second playback focus type.
[0056] Optionally, the second multimedia service may be a service with a higher priority level. For example, the second multimedia service may be a Bluetooth application service, including a Bluetooth music application app, wherein the Bluetooth application service is integrated in the in-vehicle entertainment system, and can monitor the connection status of the in-vehicle Bluetooth. When entering the Bluetooth music application, it automatically initiates the playback of the Bluetooth audio content, displays the singer, lyrics and other content of the Bluetooth audio on the interface, and supports controls such as switching to the previous / next song. The second multimedia service may also be a video call application service. For example, when the user is watching a local video, it can monitor the video call service, automatically initiate a video call connection request and play it after confirmation. This application does not impose any restrictions on this.
[0057] In some embodiments, since the second multimedia service often involves the privacy of the user, an enabling switch needs to be set to control the playback of the second multimedia service. For example, the content transmitted via Bluetooth often involves the privacy of the user, and the vehicle environment is not a completely private environment. Therefore, in the vehicle environment, the content transmitted via Bluetooth will not be played directly by default. Usually, the user needs to enter the Bluetooth music application in the vehicle computer to trigger the playback of the content transmitted via Bluetooth in the vehicle computer. In order to facilitate user operation, the playback of the second multimedia service can also be controlled by setting an instant playback switch. For example, the switch is closed by default. When the user chooses to turn on the instant playback switch, the user needs to be reminded. The reminder content can be "turning on this switch will automatically seize the audio focus of the vehicle computer". The reminder method can be a text display reminder method, a voice prompt method, or an animation reminder method. This application does not limit this. The instant playback switch can be turned on by a button, by sliding the touch screen or clicking the touch screen, or by voice or gesture. This application does not limit this.
[0058] In some embodiments, when the instant play switch is turned on, the application of the second multimedia service will directly seize the play focus and play the content therein. Figure 3 , Figure 3This is a flow chart of the second playback focus type playback method provided by the embodiment of the present application. When the instant playback switch is turned on, even if the car computer is currently playing the content of the radio, when the Bluetooth music application sends a request to play music, the Bluetooth music will directly seize the playback focus of the car computer and play the Bluetooth music. For example, when the instant playback switch is turned on, the car computer is currently playing online music. If the mobile phone and the car computer maintain a Bluetooth connection, when the mobile phone plays a social message, the sound will be directly broadcast through the car computer, and the online music playback will be paused.
[0059] In some embodiments, when a playback request is received from a second multimedia service, if the playback focus is already occupied by the first multimedia service at this time, then it is necessary to first determine whether the timely playback switch is turned on; if the timely playback switch is in the on state, then a second playback focus type can be added, and the added second playback focus type can be assigned to the second multimedia service. Afterwards, the first playback focus type will be released, and the multimedia content that needs to be played in the second multimedia service will be played through the second playback focus type. It should be noted that the second playback focus type is a memory-type playback type, that is, the second playback focus type will remember the multimedia content played before, and when the second playback focus type is released, the multimedia content played in the first playback focus type will be automatically restored.
[0060] Exemplarily, first, turn on the timely play switch so that the Bluetooth music has the ability to seize the car computer's audio focus at any time; when the car computer has no audio source playing, the playback radio application is triggered, and the radio application applies for audio focus from the playback focus service. At this time, the audio focus is not occupied, and the playback focus service gives the first playback focus type to the radio application, and the radio application plays in the car computer; afterwards, the car computer is connected to the mobile phone's Bluetooth, the mobile phone plays a WeChat text message, and the car computer's Bluetooth music application applies for playback focus. The playback focus service receives the application for use of focus, adds a second playback focus type, and gives the second playback focus type to the Bluetooth music application. Afterwards, the car computer plays the WeChat text message, and at the same time, notifies the playing radio application that it has lost the first playback focus type, that is, it has lost the qualification to play.
[0061] In the embodiment provided by the present application, when it is determined that the multimedia playback request comes from the second multimedia service, if the playback focus is already occupied by the first multimedia service at this time, the multimedia content that needs to be played in the second multimedia service will be played directly through the second playback focus type, and the first playback focus type will be automatically released, so as to ensure that the content with higher priority is played in a timely manner, avoiding the user from missing important messages. The user only needs to turn on the timely playback switch to achieve direct playback of the content with higher priority, which facilitates the user's operation.
[0062] In step 4 of some embodiments, if the second multimedia service sends a request to release the currently occupied playback focus, then the current playback focus will be restored to the first playback focus type, and the multimedia content that was previously interrupted in the first multimedia service will continue to be played through the first playback focus type.
[0063] Exemplarily, first, turn on the timely play switch so that the Bluetooth music has the ability to seize the car computer audio focus at any time; when the car computer has no audio source playing, the playback radio application is triggered, and the radio application applies for audio focus from the playback focus. At this time, the audio focus is not occupied, and the playback focus service gives the first playback focus type to the radio application, and the radio application plays in the car computer; afterwards, the car computer is connected to the mobile phone Bluetooth, the mobile phone plays a WeChat text message, and the car computer Bluetooth music application applies for playback focus. The playback focus service receives the application for using the focus, adds a second playback focus type, and gives the second playback focus type to the Bluetooth music application. After that, the car computer plays the WeChat text message, and at the same time, notifies the playing radio application to lose the first playback focus type, that is, loses the qualification to play. After the WeChat text message on the mobile phone is played, the Bluetooth music application applies to the playback focus service to give up the focus. After receiving the application, the playback focus service executes according to the second playback focus type strategy assigned to the Bluetooth music application, gives up the playback focus, notifies the radio application to obtain the playback focus, and remembers and continues to play the previously played content.
[0064] Exemplarily, since the car computer includes multiple types of audio services, in order to avoid mixing, a multimedia audio channel of the system will be used. Therefore, when switching between different audio services, the judgment of the playback focus type is involved. The focus preemption and recovery logic between multiple services is determined by the judgment of the playback focus type. The embodiment of the present application provides two focus types, including: a first playback focus type: the first playback focus type does not remember the last audio content, and does not restore the last audio content after the playback ends. A second playback focus type: the second playback focus type remembers the last audio content, and restores the last audio content played after the playback ends. For example: you can refer to Figure 4 , Figure 4 This is another flow chart of the second playback focus type playback method provided in an embodiment of the present application. When the car computer does not have any audio playback content, click to play the radio. When the radio is playing, the Bluetooth music takes over the playback focus. After that, the Bluetooth music is played. When the Bluetooth music playback ends / pauses, the radio content playback will be resumed and the radio content will continue to be played.
[0065] In some embodiments, the multimedia content of the second multimedia service comes from the terminal, and the terminal can be used to control the playback of the multimedia content of the second multimedia service. For example, the mobile phone can be used to control the playback of Bluetooth applications, that is, the mobile phone can be used to control the car computer to play WeChat short messages or music in the mobile phone.
[0066] In the embodiment provided by the present application, when the second multimedia service issues a request to release the play focus, the current play focus will be restored to the first play focus type, and the multimedia content that was previously interrupted in the first multimedia service will continue to be played through the first play focus type, thereby improving the flexibility of multimedia playback. When a high-priority play request is connected and released, it can also automatically restore to the previous play content, eliminating the user's operation and improving the user's experience. When this function is used in a vehicle, it can enable the user to concentrate on driving, eliminating some operations, thereby ensuring driving safety.
[0067] Please refer to Figure 5 , Figure 5 This is another flow chart of the multimedia playback method provided in the embodiment of the present application. Figure 5 In the figure, the other in-car audio applications shown in the upper left corner are examples of the first multimedia service in the embodiment of the present application, Bluetooth music is an example of the second multimedia service in the embodiment of the present application, and the media focus service is equivalent to the playback focus service. Among them, Bluetooth music refers to the Bluetooth music application app, which is integrated in the in-car entertainment system, can monitor the connection status of the in-car Bluetooth, can automatically initiate the playback of Bluetooth audio content, and display the singer, lyrics and other content of the Bluetooth audio on the car interface; other in-car audio applications include in-car online music, online radio and other applications; the media focus service is responsible for the management and distribution of multimedia playback focus, and is executed according to the playback focus allocation principle, and makes logical judgments on whether the decision application obtains the playback focus, loses the playback focus, and can recover after losing the playback focus. Figure 5 In the process, first, other in-car audio applications request audio focus from the media focus service. The media focus service determines that the focus is not occupied and can be obtained, then notifies other in-car audio applications to obtain audio focus 1 (the first playback focus type); then, Bluetooth music requests audio focus, and the media focus service adds audio focus 2 (the second playback focus type). Bluetooth music obtains audio focus 2, and other in-car audio applications lose audio focus 1; when the Bluetooth content playback ends, audio focus 2 is abandoned. At this time, the media focus service receives the message sent by Bluetooth music to abandon audio focus 2, then releases audio focus 2, and notifies audio focus 1 to resume; then, other in-car audio applications regain audio focus 1 and continue to play the previous content.
[0068] The implementation of the multimedia playback device provided in the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0069] For the multimedia playback method provided in the above embodiment, the present application embodiment also provides a multimedia playback device for implementing the above method, such as Figure 6 As shown, Figure 6 This is a schematic block diagram of a module of a multimedia playback device according to an embodiment of the present application. The multimedia playback device includes:
[0070] A receiving module, used for receiving a multimedia playback request;
[0071] A first playback module, configured to play multimedia content of the first multimedia service based on a first playback focus type when a multimedia playback request originates from the first multimedia service and the playback focus is not occupied;
[0072] A second playback module, configured to release the first playback focus type and play multimedia content of the second multimedia service based on the second playback focus type when the multimedia playback request originates from the second multimedia service and the playback focus is occupied by the first multimedia service;
[0073] A third playing module, configured to restore the playing focus to the first playing focus type when the second multimedia service requests to release the playing focus, and continue to play the multimedia content of the first multimedia service based on the first playing focus type;
[0074] Among them, the first play focus type is a non-memory play type, and the second play focus type is a memory play type.
[0075] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0076] The present application also provides an electronic device, such as Figure 7 As shown, the electronic device includes a memory, a communication interface, and one or more processors ( Figure 7 Only one is shown) and a computer program stored in the memory and executable on the processor (the processor, the memory and the communication interface are connected via a bus). Wherein: the memory is used to store software programs and units, and the processor executes various functional applications and data processing by running the software programs and units stored in the memory to obtain the resources corresponding to the above-mentioned preset events. Optionally, the processor implements the above-mentioned embodiment of the multimedia playback method by running the above-mentioned computer program stored in the memory.
[0077] The memory, as a non-transitory computer-readable medium, can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network.
[0078] It can be understood that the contents of the above method embodiments are all applicable to the electronic device embodiment, the functions specifically implemented by the electronic device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0079] The embodiment of the present application also provides a vehicle, which includes the above-mentioned multimedia playback device or the electric drive assembly of the above-mentioned electronic device. Specifically, the vehicle can be a private car, such as a sedan, SUV, MPV or pickup truck. The vehicle can also be an operating vehicle, such as a van, bus, small truck or large trailer. The vehicle can be a gasoline vehicle or a new energy vehicle. When the vehicle is a new energy vehicle, it can be a hybrid vehicle or a pure electric vehicle.
[0080] It can be understood that the contents of the above method embodiments are all applicable to the present vehicle embodiment, the functions specifically implemented by the present vehicle embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0081] The embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by one or more processors, it can implement the steps of the multimedia playback method.
[0082] It can be understood that the contents of the above method embodiments are all applicable to the present computer program product, the functions specifically implemented by the present computer program product embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0083] The multimedia playback method, device, electronic device, vehicle and computer program product provided in the embodiments of the present application change the Bluetooth music return focus strategy. When the vehicle computer plays online music, after the mobile phone Bluetooth message / audio takes the focus, the Bluetooth message ends or pauses, and the original playback content of the vehicle computer can be restored, thereby improving the user experience.
[0084] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0085] Although specific embodiments are described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are also within the scope of the present disclosure. For example, any of the functions and / or processing capabilities described in conjunction with a particular device or component may be performed by any other device or component. In addition, although various exemplary implementations and architectures have been described according to embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are also within the scope of the present disclosure.
[0086] Some aspects of the present disclosure are described above with reference to the block diagram and flow chart of the system, method, system and / or computer program product according to the exemplary embodiments.It should be understood that the combination of one or more blocks in the block diagram and the flow chart and the blocks in the block diagram and the flow chart can be realized by executing computer executable program instructions respectively.Equally, according to some embodiments, some blocks in the block diagram and the flow chart may not need to be executed in the order shown, or may not need to be executed in full.In addition, additional components and / or operations beyond those components and / or operations shown in the blocks in the block diagram and the flow chart may be present in certain embodiments.
[0087] Therefore, the blocks in the block diagrams and flow charts support the combination of devices for performing the specified functions, the combination of elements or steps for performing the specified functions, and the program instruction devices for performing the specified functions. It should also be understood that each block in the block diagrams and flow charts and the combination of blocks in the block diagrams and flow charts can be implemented by a special-purpose hardware computer system or a combination of special-purpose hardware and computer instructions that performs a specific function, element or step.
[0088] The program modules, applications, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functionality described herein (e.g., one or more operations of the illustrative methods described herein) to be performed.
[0089] Software components can be encoded with any of various programming languages. An exemplary programming language can be a low-level programming language, such as an assembly language associated with a specific hardware architecture and / or an operating system platform. The software component comprising assembly language instructions may need to be converted to executable machine code by an assembler before being executed by hardware architecture and / or platform. Another exemplary programming language can be a higher-level programming language, which can be transplanted across multiple architectures. The software component comprising a higher-level programming language may need to be converted to an intermediate representation by an interpreter or a compiler before execution. Other examples of programming languages include but are not limited to macro languages, shells or command languages, job control languages, scripting languages, database queries or search languages or report writing languages. In one or more exemplary embodiments, the software component comprising the instruction of one of the above-mentioned programming language examples can be directly executed by an operating system or other software components, without first being converted into another form.
[0090] Software components may be stored as files or other data storage structures. Software components of similar type or related functions may be stored together, such as in a specific directory, folder, or library. Software components may be static (e.g., preset or fixed) or dynamic (e.g., created or modified at execution time).
[0091] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present application.
Claims
1. A multimedia playback method, characterized in that: include: Receiving multimedia playback request; If the multimedia play request originates from the first multimedia service and the play focus is not occupied, playing the multimedia content of the first multimedia service based on the first play focus type; If the multimedia play request originates from a second multimedia service and the play focus is occupied by the first multimedia service, releasing the first play focus type, and playing the multimedia content of the second multimedia service based on the second play focus type; If the second multimedia service requests to release the play focus, restoring the play focus to the first play focus type, and continuing to play the multimedia content of the first multimedia service based on the first play focus type; Among them, the first play focus type is a non-memory play type, and the second play focus type is a memory play type.
2. The multimedia playback method according to claim 1, characterized in that: Also includes: If the first multimedia service requests to release the play focus, the multimedia content of the first multimedia service is stopped from being played.
3. The multimedia playing method according to claim 1, characterized in that: The playing of the multimedia content of the second multimedia service based on the second play focus type also includes: Determine whether the timely playback switch is turned on; If the timely play switch is in the on state, upon receiving a play request of a second multimedia service, adding a second play focus type; The second playback focus type is assigned to the second multimedia service.
4. The multimedia playing method according to claim 1, characterized in that: The restoring the play focus to the first play focus type includes: releasing the second play focus type; Switch the play focus back to the first play focus type.
5. The multimedia playing method according to claim 1, characterized in that: The playing of the multimedia content of the first multimedia service based on the first play focus type includes: The contents in the in-vehicle online multimedia, local multimedia or in-vehicle radio are played based on the first play focus type.
6. The multimedia playing method according to claim 1, characterized in that: The playing of the multimedia content of the second multimedia service based on the second play focus type includes: The multimedia content of the Bluetooth application is played based on the second play focus type.
7. The multimedia playing method according to any one of claims 1 to 6, characterized in that: The multimedia content of the second multimedia service comes from a terminal, and the playing of the multimedia content of the second multimedia service is controlled by the terminal.
8. A multimedia playback device, characterized in that: The device comprises: A receiving module, used for receiving a multimedia playback request; A first playback module, configured to play multimedia content of the first multimedia service based on a first playback focus type when the multimedia playback request originates from the first multimedia service and the playback focus is not occupied; A second playback module, configured to release the first playback focus type and play multimedia content of the second multimedia service based on a second playback focus type when the multimedia playback request originates from a second multimedia service and the playback focus is occupied by the first multimedia service; A third playing module, configured to restore the playing focus to the first playing focus type when the second multimedia service requests to release the playing focus, and continue to play the multimedia content of the first multimedia service based on the first playing focus type; Among them, the first play focus type is a non-memory play type, and the second play focus type is a memory play type.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the multimedia playback method according to any one of claims 1 to 7 when executing the computer program.
10. A vehicle, characterized in that: The vehicle comprises the multimedia playback device as claimed in claim 8 or the electronic device as claimed in claim 9.
Citation Information
Cited By
Vehicle multimedia audio recovery method, device, equipment, medium and program
CN120447860A
