CN113067858A - Method, device and equipment for providing universal media service in vehicle machine - Google Patents

Method, device and equipment for providing universal media service in vehicle machine Download PDF

Info

Publication number
CN113067858A
CN113067858A CN202110276191.4A CN202110276191A CN113067858A CN 113067858 A CN113067858 A CN 113067858A CN 202110276191 A CN202110276191 A CN 202110276191A CN 113067858 A CN113067858 A CN 113067858A
Authority
CN
China
Prior art keywords
media
media service
service
service module
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110276191.4A
Other languages
Chinese (zh)
Inventor
郭杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Volkswagen Mobvoi Beijing Information Technology Co Ltd
Original Assignee
Volkswagen Mobvoi Beijing Information Technology 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 Volkswagen Mobvoi Beijing Information Technology Co Ltd filed Critical Volkswagen Mobvoi Beijing Information Technology Co Ltd
Priority to CN202110276191.4A priority Critical patent/CN113067858A/en
Publication of CN113067858A publication Critical patent/CN113067858A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a method, a device and equipment for providing a universal media service in a vehicle machine. The method for providing the universal media service in the vehicle machine comprises the following steps: responding to a media service calling request of a target media service module by a target vehicle machine application, and sending the media service calling request to the target media service module; identifying service requirement information included in the media service calling request through the target media service module, and executing the media service matched with the service requirement information; the system comprises a vehicle machine and a target vehicle application, wherein at least one media service module is arranged in the vehicle machine, and each target media service module is shared by each vehicle application in a mode of providing a common calling interface. According to the technical scheme of the embodiment of the invention, each media vehicle machine application realizes corresponding functions by calling the media service module built in the vehicle machine, so that the code volume can be reduced, and the code maintenance cost can be reduced.

Description

Method, device and equipment for providing universal media service in vehicle machine
Technical Field
The embodiment of the invention relates to computer technology, in particular to a method, a device and equipment for providing a universal media service in a vehicle machine.
Background
The media application is an important component in the vehicle-mounted system, the user utilization rate is very high, and almost all vehicle enterprises design the vehicle central control system and comprise media applications, such as online radio stations, online music, news and the like.
Different vehicle enterprises often design different central control interface interaction forms and different business logics, developers often need to write a plurality of different application programs to meet the requirements of different vehicle enterprises when developing the applications of different vehicle enterprises, and the development cycle is long, the efficiency is low, and the cost is high.
Disclosure of Invention
The embodiment of the invention provides a method, a device and equipment for providing a universal media service in a vehicle, wherein each media vehicle application realizes corresponding functions by calling a media service module built in a vehicle, so that the code volume can be reduced, and the code maintenance cost can be reduced.
In a first aspect, an embodiment of the present invention provides a method for providing a universal media service in a vehicle, where the method includes:
responding to a media service calling request of a target media service module by a target vehicle machine application, and sending the media service calling request to the target media service module;
identifying service requirement information included in the media service calling request through the target media service module, and executing the media service matched with the service requirement information;
the system comprises a vehicle machine and a target vehicle application, wherein at least one media service module is arranged in the vehicle machine, and each target media service module is shared by each vehicle application in a mode of providing a common calling interface.
In a second aspect, an embodiment of the present invention further provides a device for providing a universal media service in a vehicle, where the device includes:
the calling request sending module is used for responding to a media service calling request of the target vehicle machine application for the target media service module and sending the media service calling request to the target media service module;
the media service execution module is used for identifying service requirement information included in the media service calling request through the target media service module and executing the media service matched with the service requirement information;
the system comprises a vehicle machine and a target vehicle application, wherein at least one media service module is arranged in the vehicle machine, and each target media service module is shared by each vehicle application in a mode of providing a common calling interface.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for providing the universal media service in the in-vehicle machine provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements a method for providing a universal media service in a vehicle provided in any embodiment of the present invention.
The technical scheme of the embodiment of the invention responds to a media service calling request of a target vehicle machine application for a target media service module, sends the media service calling request to the target media service module, further identifies service requirement information included in the media service calling request through the target media service module, and executes media service matched with the service requirement information, wherein at least one media service module is arranged in a vehicle machine, each target media service module is shared by each vehicle machine application in a mode of providing a common calling interface, the problems of high development cost, large code volume and high maintenance cost caused by the fact that different codes need to be compiled aiming at different media vehicle machine applications in the prior art are solved, each media vehicle machine application can realize corresponding functions by calling the media service module arranged in the vehicle machine, the development workload is effectively reduced, and the code volume is reduced, and the code maintenance cost is reduced.
Drawings
Fig. 1a is a flowchart of a method for providing a universal media service in a vehicle in an embodiment of the present invention;
fig. 1b is a schematic diagram of an existing in-vehicle application development mode in the first embodiment of the present invention;
fig. 1c is a schematic diagram of developing a car application based on a media service module according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for providing a universal media service in a vehicle in an embodiment of the present invention;
fig. 3 is a flowchart of a method for providing a universal media service in a vehicle in an embodiment of the present invention;
fig. 4 is a flowchart of a method for providing a universal media service in a vehicle in an embodiment of the present invention;
fig. 5 is a schematic diagram of a device for providing a universal media service in a vehicle in accordance with a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1a is a flowchart of a method for providing a general media service in a car machine according to an embodiment of the present invention, where the technical solution of this embodiment is suitable for a case where a basic function of a media application is implemented by calling a media service module built in the car machine, and the method may be executed by a device for providing a general media service in a car machine, where the device may be implemented by software and/or hardware, and may be integrated in various general computer devices, and specifically includes the following steps:
and step 110, responding to a media service calling request of the target vehicle-mounted machine application for the target media service module, and sending the media service calling request to the target media service module.
The target vehicle machine application is a media vehicle machine application built in a vehicle machine central control system, and illustratively, the target vehicle machine application may be an online music application, an online radio application, a news application and the like.
In the prior art, when a developer develops different car applications, different function codes need to be written respectively according to interface interaction forms and business logics actually required by the applications to realize various media functions, as shown in fig. 1b, a set of function modules including a play control module, a download module and a cache module are written for an online music application, and when an online radio station application and a news application are developed, a set of basic function modules also need to be written. In this embodiment, at least one media service module is built in a central control system of a vehicle, as shown in fig. 1c, a media playing management service module, a media file caching service module, a media file downloading service module, and a steering wheel control service module are preset, and these service modules are all shared by each vehicle application by providing a calling interface, and these service modules can implement some basic functions related to media applications, and when a developer develops a vehicle application, the developer can directly call these media service modules to implement a basic control logic, and multiple vehicle applications (e.g., online music, online radio, news, etc.) can call the media service modules, thereby implementing multiplexing of the media service modules, and reducing development and maintenance costs.
In this embodiment, the target car machine application calls a target media service module corresponding to the media control operation in response to the media control operation of the user, and when detecting a media service call request of the target car machine application for the target media service module, the car machine sends the media service call request to the target media service module, so that the target media service module executes a related media control operation, where the media service call request includes information such as a URL (Uniform Resource Locator) or a storage path that is required to execute the related operation.
For example, when the currently running application in the car machine is an online music application, a user clicks a "play" button on a foreground interface of the online music, the online music application may initiate a media service call request for the media play management service module, where the call request includes a URL to acquire music to be played, and the car machine may send the media service call request to the media play management service module, so that the media play management service module executes a music play operation according to the URL in the call request.
Step 120, identifying service requirement information included in the media service calling request through the target media service module, and executing the media service matched with the service requirement information;
the system comprises a vehicle machine and a target media service module, wherein at least one media service module is arranged in the vehicle machine, and each target media service module is shared by each vehicle machine application in a mode of providing a common calling interface.
In this embodiment, after the target media service module receives the media service invocation request, the service requirement information included in the media service invocation request is identified, and then a corresponding media service operation is executed according to the service requirement information. Illustratively, the target media service module is a media playing management service module, and the media playing management service module identifies the URL of the acquired media file included in the media service calling request after receiving the media service calling request, so as to access the URL of the acquired file to acquire and play the media file.
Optionally, the target media service module includes a steering wheel control service module;
identifying service requirement information included in the media service call request through the target media service module, and executing the media service matched with the service requirement information, wherein the method comprises the following steps:
identifying a steering wheel control instruction included in the media service calling request through a steering wheel control service module, and performing playing control on a currently played media file according to the steering wheel control instruction;
the steering wheel control command is generated by the operation of the steering wheel in the vehicle responding to the pressing of the steering wheel key by the user.
In this optional embodiment, the target media service module includes a steering wheel control service module, and accordingly, after the car machine sends the target car machine application to the steering wheel control service module for sending the media service call request initiated by the steering wheel control service module, the steering wheel control service module identifies a steering wheel control instruction included in the media service call request, and controls playing of the currently played media file according to the steering wheel control instruction, where the steering wheel control instruction is generated by a user pressing a key set on the steering wheel, for example, a key set on the steering wheel for music switching, a key set on the steering wheel for volume control, and the like. Illustratively, after a user presses a music switching key on a steering wheel, an online music application currently playing calls a steering wheel control service module, the service calling request includes key identification information pressed by the user, and the steering wheel control service module executes corresponding music switching operation according to the key identification information in the service calling request, thereby realizing music switching.
Optionally, the target media service module includes a custom service module, and the custom service module is a service module established by a developer according to an operation requirement.
In this optional embodiment, the target media service module further includes a custom service module, and the custom service module is a service module established by a developer according to actual requirements. For example, when the online music application on the in-vehicle device calls the media playing management service module to play music, each playing starts from the beginning of the music, the playing starts from the breakpoint when playing next time cannot be realized, and the user requirements cannot be met.
The technical scheme of the embodiment of the invention responds to a media service calling request of a target vehicle machine application for a target media service module, sends the media service calling request to the target media service module, further identifies service requirement information included in the media service calling request through the target media service module, and executes media service matched with the service requirement information, wherein at least one media service module is arranged in a vehicle machine, each target media service module is shared by each vehicle machine application in a mode of providing a common calling interface, the problems of high development cost, large code volume and high maintenance cost caused by the fact that different codes need to be compiled aiming at different media vehicle machine applications in the prior art are solved, each media vehicle machine application can realize corresponding functions by calling the media service module arranged in the vehicle machine, the development workload is effectively reduced, and the code volume is reduced, and the code maintenance cost is reduced.
Example two
Fig. 2 is a flowchart of a method for providing a universal media service in a vehicle in an embodiment of the present invention, which is further detailed based on the above embodiment, and provides specific steps of identifying service requirement information included in a media service invocation request by a target media service module, and executing a media service matched with the service requirement information. A method for providing a universal media service in a vehicle device according to a second embodiment of the present invention is described below with reference to fig. 2, including the following steps:
step 210, responding to the media service call request of the target vehicle-mounted application for the media playing management service module, and sending the media service call request to the media playing management service module.
The media playing management service module is a service module which is arranged in the vehicle and used for realizing media file playing control, when a developer develops media applications, the developer only needs to input the URL of a media file when calling an interface provided by the media playing control service module, the media file playing function can be realized, recoding is not needed, the development cost is reduced, the interface provided by the media playing control service module can be called by a plurality of media applications, and the cost of later code maintenance is reduced through multiplexing of the service module.
In this embodiment, when a user clicks a control key of a target in-vehicle application being played in an in-vehicle central control system interface, the target in-vehicle application initiates a media service call request for the media play management service module, and the in-vehicle machine sends the media service call request to the media play management service module after detecting that the target in-vehicle application initiates the media service call request. Specifically, the control operation of the user on the target car-machine application may include media playing, pausing, playlist management, and selection of a playing mode (e.g., random playing, single-song loop or sequential playing, etc.), and the like.
Illustratively, a user selects music to be played on a control interface of a currently opened online music application, the online music application initiates a media service call request for a media play management service module, wherein the media service call request includes a URL of the music to be played, and the in-vehicle device sends the media service call request to the media play management service module, so that the service module obtains the music to be played according to the URL.
Step 220, identifying the uniform resource locator URL address included in the media service calling request through the media playing management service module, and obtaining the media file from the URL address to play.
In this embodiment, after receiving a media service call request for playing a media file, the media playing management service module identifies a URL address included in the media service call request, and then accesses the URL address, thereby obtaining the media file to be played and playing the media file. Of course, if the local music that needs to be played currently exists, the media management service module may identify the local storage path included in the media service invocation request, and search and play the media file according to the local storage path.
Step 230, identifying a play control instruction included in the media service call request through the media play management service module, and performing play control on the currently played media file according to the play control instruction.
In this embodiment, after receiving a media service call request of a media control type (e.g., pause, playlist management, or play mode selection), the media play management service module identifies a play control instruction related to the media control type included in the media service call request, so as to perform corresponding play control on a currently played media file according to the play control instruction.
Illustratively, after receiving a media service call request for selecting a play mode, the media play management service module executes a random play operation according to a random play mode selected by a user. For another example, after receiving a media service call request for deleting part of music in the playlist, the media playing management service module executes a corresponding deletion operation according to the music to be deleted selected by the user.
According to the technical scheme, the media service calling request is sent to the media playing management service module in response to the media service calling request of the target vehicle-mounted application for the media playing management service module, the Uniform Resource Locator (URL) address included in the media service calling request is identified through the media playing management service module, the media file is obtained from the URL address to be played, finally the playing control instruction included in the media service calling request is identified through the media playing management service module, the currently played media file is played and controlled according to the playing control instruction, the media application can call the media playing management service module built in the vehicle-mounted application to realize control of media playing, multiplexing of the service module, effective reduction of development workload and code volume, and reduction of code maintenance cost.
EXAMPLE III
Fig. 3 is a flowchart of a method for providing a universal media service in a vehicle in an embodiment of the present invention, which is further detailed based on the above embodiment, and provides specific steps of identifying service requirement information included in a media service invocation request by a target media service module, and executing a media service matched with the service requirement information. A method for providing a universal media service in a vehicle device according to a third embodiment of the present invention is described below with reference to fig. 3, including the following steps:
and step 310, responding to a media service calling request of the target vehicle-mounted machine application for the media file cache service module, and sending the media service calling request to the media file cache service module.
The media file cache service module is a service module which is arranged in the vehicle and used for realizing the cache of the played media file, when a developer develops the media application, the developer only needs to input a cache file path when calling an interface provided by the media file cache service module, the media file cache function can be realized, recoding is not needed, the development cost is reduced, the interface provided by the media file cache service module can be called by a plurality of media applications, and the cost of later code maintenance is reduced by multiplexing the service module.
In this embodiment, when the target vehicle-mounted application calls the media playing management service module to play a media file, the vehicle-mounted application also calls the media file cache service module to cache the currently online played media file, and the vehicle-mounted application sends a media service call request to the media file cache service module in response to a media service call request of the target vehicle-mounted application for the media file cache service module, where the media service call request may include a cache file path.
And step 320, identifying a cache file path and a cache threshold included in the media service calling request through the media file cache service module, and storing the currently played media file to the cache file path.
In this embodiment, the media file cache service module identifies a cache file path and a cache threshold included in the media service call request, and then stores the media file currently being played online to the cache file path. Illustratively, when the current online music application plays songs, the media file cache module is called at the same time, and after the media file cache module identifies a cache file path, the playing songs are directly cached in the cache file path.
Step 330, when the cached file exceeds the caching threshold, the cached file is cleared.
In this embodiment, in the process of caching the media file, the media file caching service module may further detect the size of the cached file in the cache file path, and when the cached file exceeds the caching threshold, clear the cached file.
According to the technical scheme of the embodiment of the invention, the media service calling request is sent to the media file cache service module in response to the media service calling request of the target vehicle-mounted machine application for the media file cache service module, the cache file path and the cache threshold value included in the media service calling request are identified through the media file cache service module, the currently played media file is stored under the cache file path, when the cache file exceeds the cache threshold value, the cached file is removed, the media application can complete the cache of the played content by calling the media file cache service module built in the vehicle-mounted machine, the media file cache service module is multiplexed, the development workload is effectively reduced, the code volume is reduced, and the code maintenance cost is reduced.
Example four
Fig. 4 is a flowchart of a method for providing a universal media service in a vehicle in an embodiment of the present invention, which is further detailed based on the foregoing embodiment, and provides specific steps of identifying service requirement information included in a media service invocation request by a target media service module, and executing a media service matched with the service requirement information. A method for providing a universal media service in a vehicle device according to a fourth embodiment of the present invention is described below with reference to fig. 4, including the following steps:
step 410, responding to the media service calling request of the target vehicle-mounted application for the media file downloading service module, and sending the media service calling request to the media file downloading service module.
The media file downloading service module is a service module which is arranged in the vehicle and used for realizing media file downloading, when a developer develops media applications, the developer only needs to input a media file downloading address and a downloading file storage path when calling an interface provided by the media file downloading service module, the media file downloading function can be realized, the development cost is reduced, the interface provided by the media file downloading service module can be called by a plurality of media applications, and the cost of later code maintenance is reduced through multiplexing of the service module.
In this embodiment, when a user clicks a media file download key on a currently opened target vehicle application interface, the target vehicle application may call the media file download service module to download a media file selected by the user, and the vehicle responds to a media service call request of the target vehicle application for the media file download service module, and sends the media service call request to the media file download service module.
And step 420, identifying a media file downloading address and a downloading file saving path included in the media service calling request through the media file downloading service module, acquiring the media file from the media file downloading address, and saving the media file to the downloading file saving path.
In this embodiment, the media file download service module identifies a media file download address and a download file storage path included in the media service call request, accesses the media file download address to obtain a media file selected by the user, and stores the media file in the download file storage path. Illustratively, a user selects a song in an online music application and clicks a download key, at this time, the online music application calls a media file selection module, and after the media file download module identifies a media file download address and a download file storage path, the media file download module acquires a song to be downloaded by the user according to the media file download address and stores the song into the media file download address.
Optionally, when the media file download service module receives at least one media service call request initiated by at least one target car machine application, the media file download service module downloads a file according to a download priority of the target car machine application, which is specifically as follows:
identifying a media file downloading address and a downloading file saving path which are included in at least one media service calling request initiated by at least one target vehicle machine application through a media file downloading service module;
respectively calculating the downloading priority corresponding to at least one target vehicle machine application;
according to the downloading priority corresponding to each target vehicle machine application, sequentially acquiring media files from the media file downloading addresses corresponding to each target vehicle machine application;
and storing the media files to the download file storage paths corresponding to the target vehicle machine applications.
In this optional embodiment, when the media file download service module receives a media service call request initiated by a plurality of target car machine applications, the media file download service module performs a specific operation of downloading a media file: the method comprises the steps that firstly, a media file downloading service module identifies a media file downloading address and a downloading file saving path in each media service calling request initiated by each target vehicle machine application, then the downloading priority of each target vehicle machine application is calculated respectively, finally, according to the downloading priority corresponding to each target vehicle machine application, media files are obtained from the media file downloading address corresponding to each target vehicle machine application in sequence, and the media files are saved to the position under the downloading file saving path corresponding to each target vehicle machine application.
In some cases, simultaneous downloading of a plurality of media files is supported, if the number of the media files to be downloaded is larger than the number of the media files which can be downloaded simultaneously, downloading can be performed according to the priority of the target vehicle application, after the downloading of the media files corresponding to the target vehicle application with higher priority is completed, downloading of the media files corresponding to the target vehicle application with lower priority is started, and the set number of the media files in the downloading list is kept.
For example, when the online music application, the online radio application, the news application, and the map application call the media file download service module to download the media file at the same time, the media file download service module needs to calculate the current download priority of each application, for example, calculate the current download priority of the online music application, first obtain the media file from the media file download address corresponding to each online music application, and store the media file in the download file storage path corresponding to the online music application. The download priority of each application can be calculated according to whether the user operates currently, whether the application is playing and historical use conditions.
Optionally, respectively calculating a download priority corresponding to at least one target car machine application, including:
calculating the current operation score, the current playing score and the historical playing score of each target vehicle machine application;
and carrying out weighted summation on the current operation score, the current playing score and the historical playing score to obtain the downloading priority of each target vehicle-mounted machine application.
In this optional embodiment, a specific scheme for calculating a download priority of each target car-machine application is provided, where a current operation score of each target car-machine application is calculated first, for example, an online news application is presented in a current system interface, the current operation score of the online news application is 1, and other applications are regarded as operation scores 0, then a current play score of each target car-machine application is calculated, for example, the current play score of the current play application is acquired as an online music application, the current play score of the online music application is 1, the current play scores of other applications are 0, further, a historical play score of each target car-machine application is calculated, for example, a historical play duration of each target car-machine application is acquired, the target car-machine applications are sorted according to time from long to short, and a ratio of a serial number of each target car-machine application to a total number of the applications is used as the historical play score, for example, 10 media applications in the in-vehicle machine are sorted according to the historical playing time length, the online music application is ranked at 7 th, and the historical playing score corresponding to the online music is 7/10-0.7.
And after the current operation score, the current playing score and the historical playing score of each target vehicle-mounted machine application are obtained through calculation, weighting and summing are carried out on the scores to obtain the downloading priority of each target vehicle-mounted machine application. Illustratively, the weight of the current operation score is set to 5, the weight of the current play score is set to 4, the weight of the historical play score is set to 1, the application presented on the current interface is an online news application, the application currently playing is an online music application, the online music application is ranked at 7 th among 10 media applications, and finally the download priority corresponding to the online music application is calculated to be 0+1 × 4+0.7 — 4.7.
According to the technical scheme, the media service calling request is sent to the media file downloading service module in response to the media service calling request of the target vehicle-mounted application for the media file downloading service module, the media file downloading address and the downloading file storage path included in the media service calling request are identified through the media file downloading service module, the media file is obtained from the media file downloading address and stored under the downloading file storage path, the media application can complete downloading of media contents by calling the media file downloading service module built in the vehicle-mounted application, multiplexing of the media file downloading service module is achieved, development workload is effectively reduced, code volume is reduced, and code maintenance cost is reduced.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a device for providing a universal media service in a vehicle, provided in an embodiment of the present invention, where the device for providing a universal media service in a vehicle includes: a call request transmission module 510 and a media service execution module 520.
A call request sending module 510, configured to respond to a media service call request of a target media service module by a target car machine application, and send the media service call request to the target media service module;
a media service execution module 520, configured to identify, by the target media service module, service requirement information included in the media service invocation request, and execute a media service matching the service requirement information;
the system comprises a vehicle machine and a target vehicle application, wherein at least one media service module is arranged in the vehicle machine, and each target media service module is shared by each vehicle application in a mode of providing a common calling interface.
The technical scheme of the embodiment of the invention responds to a media service calling request of a target vehicle machine application for a target media service module, sends the media service calling request to the target media service module, further identifies service requirement information included in the media service calling request through the target media service module, and executes media service matched with the service requirement information, wherein at least one media service module is arranged in a vehicle machine, each target media service module is shared by each vehicle machine application in a mode of providing a common calling interface, the problems of high development cost, large code volume and high maintenance cost caused by the fact that different codes need to be compiled aiming at different media vehicle machine applications in the prior art are solved, each media vehicle machine application can realize corresponding functions by calling the media service module arranged in the vehicle machine, the development workload is effectively reduced, and the code volume is reduced, and the code maintenance cost is reduced.
Optionally, the target media service module includes a media playing management service module;
the media service execution module 520 includes:
a media file obtaining unit, configured to identify, by the media playing management service module, a Uniform Resource Locator (URL) address included in the media service invocation request, and obtain a media file from the URL address for playing; and/or
And the playing control unit is used for identifying a playing control instruction included in the media service calling request through the media playing management service module and controlling the playing of the currently played media file according to the playing control instruction.
Optionally, the target media service module includes a media file cache service module;
the media service execution module 520 includes:
the media file caching unit is used for identifying a caching file path and a caching threshold value included in the media service calling request through the media file caching service module and storing the currently played media file to the caching file path;
and the cache file clearing unit is used for clearing the cached files when the cached files exceed the cache threshold.
Optionally, the target media service module includes a media file download service module;
the media service execution module 520 includes:
and the media file downloading unit is used for identifying a media file downloading address and a downloading file saving path which are included in the media service calling request through the media file downloading service module, acquiring a media file from the media file downloading address, and saving the media file to the downloading file saving path.
Optionally, the media service execution module 520 further includes:
the request information acquisition unit is used for identifying a media file downloading address and a downloading file saving path which are included in at least one media service calling request initiated by at least one target vehicle machine application through the media file downloading service module;
the download priority calculating unit is used for respectively calculating the download priority corresponding to the at least one target vehicle machine application;
the media file acquisition unit is used for sequentially acquiring media files from media file download addresses corresponding to the target vehicle applications according to the download priorities corresponding to the target vehicle applications;
and the media file storage unit is used for storing the media files to the download file storage paths corresponding to the target vehicle machine applications.
Optionally, the download priority calculating unit is specifically configured to:
calculating the current operation score, the current playing score and the historical playing score of each target vehicle machine application;
and carrying out weighted summation on the current operation score, the current playing score and the historical playing score to obtain the downloading priority of each target vehicle-mounted machine application.
Optionally, the target media service module includes a steering wheel control service module;
the media service execution module 520 is specifically configured to:
identifying a steering wheel control instruction included in the media service calling request through the steering wheel control service module, and performing playing control on a currently played media file according to the steering wheel control instruction;
the steering wheel control instruction is generated by the steering wheel in the vehicle in response to the operation of pressing a steering wheel key by a user.
Optionally, the target media service module includes a custom service module, and the custom service module is a service module established by a developer according to an operation requirement.
The device for providing the universal media service in the vehicle machine provided by the embodiment of the invention can execute the method for providing the universal media service in the vehicle machine provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention, as shown in fig. 6, the electronic device includes a processor 60 and a memory 61; the number of processors 60 in the device may be one or more, and one processor 60 is taken as an example in fig. 6; the processor 60 and the memory 61 in the device may be connected by a bus or other means, as exemplified by the bus connection in fig. 6.
The memory 61 is used as a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a method for providing a universal media service in a vehicle (for example, the call request sending module 510 and the media service executing module 520 in a device for providing a universal media service in a vehicle). The processor 60 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 61, so as to implement the method for providing the universal media service in the car machine.
The method comprises the following steps:
responding to a media service calling request of a target media service module by a target vehicle machine application, and sending the media service calling request to the target media service module;
identifying service requirement information included in the media service calling request through the target media service module, and executing the media service matched with the service requirement information;
the system comprises a vehicle machine and a target vehicle application, wherein at least one media service module is arranged in the vehicle machine, and each target media service module is shared by each vehicle application in a mode of providing a common calling interface.
The memory 61 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 61 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 61 may further include memory located remotely from the processor 60, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
EXAMPLE seven
An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, where the computer program is used for executing a method for providing a universal media service in a vehicle, when executed by a computer processor, the method including:
responding to a media service calling request of a target media service module by a target vehicle machine application, and sending the media service calling request to the target media service module;
identifying service requirement information included in the media service calling request through the target media service module, and executing the media service matched with the service requirement information;
the system comprises a vehicle machine and a target vehicle application, wherein at least one media service module is arranged in the vehicle machine, and each target media service module is shared by each vehicle application in a mode of providing a common calling interface.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the above embodiment of the device for providing a general media service in a vehicle, each unit and each module included in the device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for providing a universal media service in a vehicle, comprising:
responding to a media service calling request of a target media service module by a target vehicle machine application, and sending the media service calling request to the target media service module;
identifying service requirement information included in the media service calling request through the target media service module, and executing the media service matched with the service requirement information;
the system comprises a vehicle machine and a target vehicle application, wherein at least one media service module is arranged in the vehicle machine, and each target media service module is shared by each vehicle application in a mode of providing a common calling interface.
2. The method of claim 1, wherein the target media service module comprises a media play management service module;
identifying, by the target media service module, service requirement information included in the media service invocation request, and executing a media service matched with the service requirement information, including:
identifying a Uniform Resource Locator (URL) address included in the media service calling request through the media playing management service module, and acquiring a media file from the URL address to play the media file; and/or
And identifying a playing control instruction included in the media service calling request through the media playing management service module, and controlling the playing of the currently played media file according to the playing control instruction.
3. The method of claim 1, wherein the target media service module comprises a media file caching service module;
identifying, by the target media service module, service requirement information included in the media service invocation request, and executing a media service matched with the service requirement information, including:
identifying a cache file path and a cache threshold value included in the media service calling request through the media file cache service module, and storing the currently played media file to the cache file path;
and when the cached file exceeds the caching threshold value, clearing the cached file.
4. The method of claim 1, wherein the target media service module comprises a media file download service module;
identifying, by the target media service module, service requirement information included in the media service invocation request, and executing a media service matched with the service requirement information, including:
and identifying a media file downloading address and a downloading file saving path included in the media service calling request through the media file downloading service module, acquiring a media file from the media file downloading address, and saving the media file to the downloading file saving path.
5. The method of claim 4, wherein identifying, by the target media service module, service requirement information included in the media service invocation request and executing the media service matching the service requirement information further comprises:
identifying a media file downloading address and a downloading file saving path which are included in at least one media service calling request initiated by at least one target vehicle machine application through the media file downloading service module;
respectively calculating the downloading priority corresponding to the at least one target vehicle machine application;
according to the downloading priority corresponding to each target vehicle machine application, sequentially acquiring media files from the media file downloading addresses corresponding to each target vehicle machine application;
and storing the media file to a download file storage path corresponding to each target vehicle machine application.
6. The method according to claim 5, wherein calculating the download priority corresponding to the at least one target car-machine application respectively comprises:
calculating the current operation score, the current playing score and the historical playing score of each target vehicle machine application;
and carrying out weighted summation on the current operation score, the current playing score and the historical playing score to obtain the downloading priority of each target vehicle-mounted machine application.
7. The method of claim 1, wherein the target media service module comprises a steering wheel control service module;
identifying, by the target media service module, service requirement information included in the media service invocation request, and executing a media service matched with the service requirement information, including:
identifying a steering wheel control instruction included in the media service calling request through the steering wheel control service module, and performing playing control on a currently played media file according to the steering wheel control instruction;
the steering wheel control instruction is generated by the steering wheel in the vehicle in response to the operation of pressing a steering wheel key by a user.
8. The method of claim 1, wherein the target media service module comprises a custom service module, and the custom service module is a service module established by a developer according to operation requirements.
9. The utility model provides a general media service's provides device in car machine which characterized in that includes:
the calling request sending module is used for responding to a media service calling request of the target vehicle machine application for the target media service module and sending the media service calling request to the target media service module;
the media service execution module is used for identifying service requirement information included in the media service calling request through the target media service module and executing the media service matched with the service requirement information;
the system comprises a vehicle machine and a target vehicle application, wherein at least one media service module is arranged in the vehicle machine, and each target media service module is shared by each vehicle application in a mode of providing a common calling interface.
10. An electronic device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for providing the universal media service in the in-vehicle machine according to any one of claims 1 to 8.
CN202110276191.4A 2021-03-15 2021-03-15 Method, device and equipment for providing universal media service in vehicle machine Pending CN113067858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110276191.4A CN113067858A (en) 2021-03-15 2021-03-15 Method, device and equipment for providing universal media service in vehicle machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110276191.4A CN113067858A (en) 2021-03-15 2021-03-15 Method, device and equipment for providing universal media service in vehicle machine

Publications (1)

Publication Number Publication Date
CN113067858A true CN113067858A (en) 2021-07-02

Family

ID=76560727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110276191.4A Pending CN113067858A (en) 2021-03-15 2021-03-15 Method, device and equipment for providing universal media service in vehicle machine

Country Status (1)

Country Link
CN (1) CN113067858A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945232A (en) * 2014-03-17 2014-07-23 深圳创维-Rgb电子有限公司 Television resource scheduling method and device
US20150281308A1 (en) * 2012-12-13 2015-10-01 Tencent Technology (Shenzhen) Company Limitead Method and system for downloading and playing media file, client, server, and storage medium
US9372716B1 (en) * 2013-09-23 2016-06-21 Amazon Technologies, Inc. Download prioritization
CN105868304A (en) * 2016-03-24 2016-08-17 金蝶软件(中国)有限公司 A file processing method, device and system
CN110366118A (en) * 2019-07-05 2019-10-22 广州市百果园信息技术有限公司 A kind of radio station, application program and the method for realizing radio station function

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150281308A1 (en) * 2012-12-13 2015-10-01 Tencent Technology (Shenzhen) Company Limitead Method and system for downloading and playing media file, client, server, and storage medium
US9372716B1 (en) * 2013-09-23 2016-06-21 Amazon Technologies, Inc. Download prioritization
CN103945232A (en) * 2014-03-17 2014-07-23 深圳创维-Rgb电子有限公司 Television resource scheduling method and device
CN105868304A (en) * 2016-03-24 2016-08-17 金蝶软件(中国)有限公司 A file processing method, device and system
CN110366118A (en) * 2019-07-05 2019-10-22 广州市百果园信息技术有限公司 A kind of radio station, application program and the method for realizing radio station function

Similar Documents

Publication Publication Date Title
CN111061484B (en) Code compiling method, device, server, user terminal and readable medium
CN108595207B (en) Gray scale publishing method, rule engine, system, terminal and storage medium
CN103955405B (en) A kind of application management method and its device
CN110096336B (en) Data monitoring method, device, equipment and medium
CN102223416B (en) Method and system for transmitting media file
CN105656688A (en) State control method and device
CN107329750A (en) The recognition methods of advertisement page, jump method and mobile terminal in application program
CN109167820A (en) A kind of method for down loading of application program, device, storage medium and terminal
CN105786839A (en) Application data acquisition method and apparatus
CN108540509B (en) Processing method and device of terminal browser, server and intelligent terminal
CN104967646B (en) Document down loading method and device
CN112988185A (en) Cloud application updating method, device and system, electronic equipment and storage medium
CN112615758A (en) Application identification method, device, equipment and storage medium
CN114138961A (en) Playing processing method of audio electronic book, computing equipment and computer storage medium
CN109151019A (en) A kind of application method for down loading, device, equipment and storage medium
CN113067858A (en) Method, device and equipment for providing universal media service in vehicle machine
CN111475230A (en) Application function configuration method and device and electronic equipment
CN108616576B (en) Method and device for scheduling application server
CN115185658A (en) Task unloading scheduling method based on time and communication reliability and related product
CN114489698A (en) Application program installation method and device
CN114047936A (en) Application program management method and device, electronic equipment and readable storage medium
CN117724852B (en) Cloud computer computing resource allocation method and device
CN116501450B (en) Translation control method, binary translation method, instruction execution method and device
CN112672079B (en) Split screen switching method, device, equipment and storage medium
CN109840156A (en) A kind of data cache method and its equipment, storage medium, terminal

Legal Events

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

Application publication date: 20210702

RJ01 Rejection of invention patent application after publication