Method and equipment for realizing unified playing of multimedia resources of vehicle-mounted terminal, and medium
By building a NAS private cloud server and developing a unified media playback application, the problem of cumbersome resource switching in the vehicle's multimedia system was solved, and the user experience was improved, along with storage flexibility and privacy.
Patent Information
- Application Number
- CN202410879860.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-11-15
AI Technical Summary
In existing in-vehicle multimedia systems, different types of multimedia resources require switching between different manufacturers' apps, resulting in cumbersome operation and a poor user experience.
Set up a private NAT cloud server, establish a media library, and use NAT traversal technology to achieve file synchronization and sharing. Develop a unified media playback application, allowing users to access various external multimedia resources through a single application.
It enables users to access different types of multimedia resources through a single application, reducing operations, improving user experience, and providing flexible and reliable storage and high privacy.
Smart Images

Figure CN118972450A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of vehicle-mounted multimedia systems, and in particular relates to a method, a device and a medium for realizing unified playback of vehicle-mounted multimedia resources. Background Art
[0002] At present, in the process of using vehicle multimedia systems, users' types and demands for multimedia resources are constantly increasing. Different types of multimedia resources in existing vehicle computers often come from different manufacturers. At present, most manufacturers on the market build their own servers and develop their own application APPs. Users access the manufacturer's own servers through network connections to obtain data for playback, and server resources are obtained through copyright authorization and other methods. If users want to obtain different types of external multimedia resources, they need to install APPs from different manufacturers in the multimedia system. During the use process, they need to switch different APPs to obtain different external multimedia resources, which increases the user's operations and poor user experience. Summary of the invention
[0003] The purpose of the present invention is to provide a method for realizing unified playback of multimedia resources in a vehicle. The system built by using this method can enable users to obtain all external multimedia resources using one media playback application, thereby solving the problem that users need to frequently switch applications when using a multimedia system. The second object of the present invention is to provide a terminal device, which can implement a method for unified playback of multimedia resources on a vehicle when executing its own program; The third object of the present invention is to provide a computer-readable storage medium for storing a corresponding computer program for realizing a method for unified playback of multimedia resources on a vehicle.
[0004] In order to achieve the above object, the technical solution adopted by the present invention is as follows: A method for realizing unified playback of multimedia resources on a vehicle computer comprises the following steps: S1. Build the NAS private cloud server on the vehicle side and set up the NAS private cloud media library; S2, realize file synchronization and sharing between Nas private cloud server and vehicle terminal users; S3. Develop a media playback application corresponding to the Nas private cloud server, and connect the media playback application to the Nas private cloud media library; S4. Obtain the copyrights of various external multimedia resources on the vehicle terminal, and use the media player application developed in step S3 to play the various external multimedia resources.
[0005] As a limitation, step S1 includes: Hardware selection: Select the hardware of the Nas private cloud server, including CPU, memory, and hard disk; Select and install the operating system: Select the operating system of the NAS private cloud server and install it on the hardware of the NAS server; Define the file system and data structure of the NAS private cloud server based on the operating system, and determine the metadata stored on the file system; Hard disk configuration: configure the hard disk on the Nas private cloud server, including creating a storage pool, setting the RAID level, and formatting the hard disk; Data backup: formulate backup strategies and back up data regularly; Configure the network: Connect the NAS private cloud server to the network and configure the network settings, including IP address, subnet mask, and gateway; Security settings: configure firewalls and set access rights through access control lists; Build the operating environment: Build the operating environment of the application container; Sharing settings: Set up sharing protocols between the server and the terminal; Monitoring and maintenance: Set up a monitoring system to monitor server status and perform system maintenance and updates regularly; Set up NAS private cloud media library: Install the private cloud storage network disk project and set up NAS private cloud media library.
[0006] As a second limitation, the method used in step S2 is to apply for a public network IP, penetrate the intranet, or use NAT penetration technology using a P2P file tool.
[0007] As a third limitation, step S3 includes: Install the media service system on the NAS private cloud server; Conduct secondary customized development on Nas private cloud server based on media service system; Connect the media playback application obtained through secondary customized development to the NAS private cloud media library.
[0008] As a further limitation, the steps of the secondary customized development are: Step 1: Demand analysis, clarify the target group for secondary customization of Jellyfin, and determine the functions and uses of Jellyfin based on the user portrait of this group; Step 2: UI design, design the interface for secondary development, including determining the layout, fonts, color values and other elements to create an interface that better suits the user portrait; Step 3: Get the source code, select the source code that suits the platform and download and save it to the local hard disk; Step 4: Function development: modify the source code according to demand analysis to realize the function of secondary development; Step 5: Test verification: analyze according to needs, write test cases, self-test and pass all test cases to ensure the stability of secondary development.
[0009] As a limitation of the media playback application, the media playback application includes a resource download module and a resource encryption module; The resource download module is used to download the multimedia resources played by the media player application to the Nas private cloud media library; The resource encryption module is used to encrypt the multimedia resources downloaded to the NAS private cloud media library.
[0010] A terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for realizing unified playback of multimedia resources on a vehicle is implemented.
[0011] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program is used to implement the above-mentioned method for realizing unified playback of multimedia resources on a vehicle.
[0012] Due to the adoption of the above technical solution, the present invention has the following technical advances compared with the prior art: (1) The present invention builds a vehicle multimedia system based on the NAS private cloud server and develops a matching multimedia application. Users can uniformly obtain multiple external multimedia resources of different types that they need through one application, avoiding the need for users to switch applications between different manufacturers to obtain different external multimedia resources, reducing user operations and improving user experience; (2) The present invention builds a Nas private cloud server on the vehicle side, which is more flexible and reliable, has more efficient and convenient storage, and provides users with a high privacy experience compared to traditional servers of various manufacturers; (3) The present invention establishes a NAS private cloud media library on the vehicle side. Even if the user turns off the network flow, he can still watch the multimedia resources downloaded to the NAS private cloud media library, which increases the user's usage options.
[0013] The present invention belongs to the technical field of vehicle-mounted multimedia systems, and can enable a user to uniformly obtain a variety of external multimedia resources of different types required by the user through an application program, thereby reducing user operations and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.
[0015] In the attached picture: Figure 1 This is a flow chart of Example 1 of the present invention; Figure 2 A topology diagram of the communication between the NAS private cloud server and the user using intranet penetration in Example 1 of the present invention; Figure 3 A topology diagram of the communication between the NAS private cloud server and the user using NAT penetration technology in Example 1 of the present invention; Figure 4 This is a processing flow chart of a media playback application when used by a user in Example 1 of the present invention. DETAILED DESCRIPTION
[0016] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0017] Embodiment 1 A method for realizing unified playback of multimedia resources in a vehicle like Figure 1 As shown, this embodiment includes the following steps performed in sequence: S100, build the NAS private cloud server on the car side and set up the NAS private cloud media library.
[0018] In order to enable users to uniformly obtain various external multimedia resources of different types that they need through one application, this embodiment needs to first build a NAS private cloud server. The specific process of building is as follows: First, according to user needs, select the appropriate CPU, memory, and hard disk as the hardware of the Nas private cloud server; then, select the Ubuntu system as the operating system of the Nas private cloud server, prepare an 8G USB disk, use the Lao Maotao tool to make a system USB disk, copy the downloaded Ubuntu system image to the USB disk, enter the BIOS of Nas to adjust it to USB boot, and install the Ubuntu system on the hardware of the Nas server; After the operating system is installed, define the file system used to store and organize data in the NAS private cloud server, define the organizational structure of the data, and determine the metadata stored on the file system. This metadata includes: file size, file creation date, file modification date, file permission information, and file owner information; Then, configure the hard disks on the NAS private cloud server by creating a storage pool, setting the RAID level, and formatting the hard disks. Next, formulate a data backup strategy to ensure data security and reliability: regularly back up data to storage media or use RAID technology to provide data redundancy. Next, connect the NAS private cloud server to the network and configure the network settings, including IP address, subnet mask, and gateway; then configure the firewall and set access rights through the access control list; To facilitate cross-platform and cross-server and realize seamless cross-platform application integration, we will build the operating environment of the application container and install and start Doctor by updating the software list, installing dependencies, adding the official GPG key of Doctor, setting the APT source of Doctor, installing Doctor CE, and verifying the installation of Doctor. After installing Doctor, you need to use Samba service to set up a sharing protocol between the server and the terminal, then install the Home Assistant home automation platform to set up a monitoring system to monitor the server status and perform regular system maintenance and updates; finally, install NextCloud private cloud storage network disk on Doctor and set up a Nas private cloud media library on the network disk.
[0019] S200, use Resilio Sync, a P2P file synchronization tool, to achieve file synchronization and sharing between NAS private cloud servers and users through NAT penetration technology.
[0020] Resilio Sync is a powerful P2P file synchronization tool that can directly synchronize files between different devices, supports cross-platform use, provides a simple interface and easy-to-use functions, and is suitable for realizing file synchronization and sharing between NAS private cloud servers and users. In addition to the method used in this embodiment, file synchronization and sharing between NAS private cloud servers and users can also be realized by applying for public network IP or intranet penetration. Among them, the difference between intranet penetration and NAT penetration is as follows Figure 2 and Figure 3 As shown, intranet penetration needs to be opened using a transit server, and the network speed will be limited by the bandwidth of the transit server. In order to achieve point-to-point connection between the NAS private cloud server and the user, so that the user can play multimedia resources more smoothly, this embodiment uses NAT penetration technology, first opens the firewall between the terminal and the server through the transit server, and then allows the terminal and the server to communicate directly through NAT penetration technology.
[0021] S300: Develop a media playback application corresponding to the Nas private cloud server, and connect the media playback application to the Nas private cloud media library.
[0022] To interact with the NAS private cloud server, you need to develop a corresponding media playback application. The steps for developing the application are as follows: Install the Jellyfin media service system on the Doctor of the NAS private cloud server, then perform secondary customized development on the NAS private cloud server based on the Jellyfin media service system, and finally connect the media playback application obtained from the secondary customized development to the NAS private cloud media library.
[0023] The steps of the above secondary customized development are as follows: Step 1: Demand analysis, clarify the target group for secondary customization of Jellyfin, and determine the functions and uses of Jellyfin based on the user portrait of this group; Step 2: UI design, design the interface for secondary development, including determining the layout, fonts, color values and other elements to create an interface that better suits the user portrait; Step 3: Get the source code, select the source code that suits the platform and download and save it to the local hard disk; Step 4: Function development: modify the source code according to demand analysis to realize the function of secondary development; Step 5: Test verification: analyze according to needs, write test cases, self-test and pass all test cases to ensure the stability of secondary development.
[0024] S400. Acquire the copyrights of various external multimedia resources on the vehicle terminal, and use the developed media player application to play the various external multimedia resources.
[0025] After the media player application is developed, if you want to play related multimedia resources, you first need to obtain the copyright of the multimedia resources, so that users can uniformly obtain the various types of external multimedia resources they need through the media player application. The media player application is connected to the NAS private cloud media library, and users can download the multimedia resources to be played to the NAS private cloud media library. In this way, even if the network stream is turned off, you can still watch the multimedia resources downloaded to the NAS private cloud media library. At the same time, the media player application will encrypt the downloaded multimedia resources, improving the user's privacy experience.
[0026] The operating system of this embodiment is the Ubuntu system, which can be replaced with FreeNAS, OpenMediaVault or other user-specified operating systems according to actual conditions; the method of installing the operating system is to boot it through a USB disk, which can be adjusted according to actual conditions as long as the operating system can be installed.
[0027] like Figure 4As shown, when a user uses the in-vehicle multimedia system in this embodiment, he first starts the media playback application and logs in to his account. The media playback application will first check the data protocol, then connect to the NAS private cloud server to obtain the resource list, then perform data analysis on the resources, and finally display the relevant UI. The content displayed in the UI includes playback history, favorites list, media classification, and media preview.
[0028] Embodiment 2 A terminal device This embodiment includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it is used to implement a method for realizing unified playback of multimedia resources on a vehicle machine in embodiment 1.
[0029] Embodiment 3 A computer readable storage medium The computer-readable storage medium in this embodiment stores a computer program, and when the computer program is executed by the processor, it is used to implement a method for realizing unified playback of multimedia resources on a vehicle machine in embodiment 1.
[0030] Among them, the computer-readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a computer-readable storage medium is coupled to a processor so that the processor can read information from the computer-readable storage medium and write information to the computer-readable storage medium. Of course, the computer-readable storage medium can also be a component of the processor. The processor and the computer-readable storage medium can be located in an application-specific integrated circuit (ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the computer-readable storage medium can also exist in a communication device as discrete components. Specifically, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk or an optical disk, etc. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
Claims
1. A method for realizing unified playback of multimedia resources on a vehicle, characterized in that: The following steps are involved: S1. Build the NAS private cloud server on the vehicle side and set up the NAS private cloud media library; S2, realize file synchronization and sharing between Nas private cloud server and vehicle terminal users; S3. Develop a media playback application corresponding to the Nas private cloud server, and connect the media playback application to the Nas private cloud media library; S4. Obtain the copyrights of various external multimedia resources on the vehicle terminal, and use the media player application developed in step S3 to play the various external multimedia resources.
2. The method for realizing unified playback of multimedia resources on a vehicle according to claim 1, characterized in that: The step S1 comprises: Hardware selection: Select the hardware of the Nas private cloud server, including CPU, memory, and hard disk; Select and install the operating system: Select the operating system of the NAS private cloud server and install it on the hardware of the NAS server; Define the file system and data structure of the NAS private cloud server based on the operating system, and determine the metadata stored on the file system; Hard disk configuration: configure the hard disk on the Nas private cloud server, including creating a storage pool, setting the RAID level, and formatting the hard disk; Data backup: formulate backup strategies and back up data regularly; Configure the network: Connect the NAS private cloud server to the network and configure the network settings, including IP address, subnet mask, and gateway; Security settings: configure firewalls and set access rights through access control lists; Build the operating environment: Build the operating environment of the application container; Sharing settings: Set up sharing protocols between the server and the terminal; Monitoring and maintenance: Set up a monitoring system to monitor server status and perform system maintenance and updates regularly; Set up NAS private cloud media library: Install the private cloud storage network disk project and set up NAS private cloud media library.
3. The method for realizing unified playback of multimedia resources on a vehicle according to claim 1, characterized in that: The method used in step S2 is to apply for a public network IP, penetrate the intranet, or use NAT penetration technology using a P2P file tool.
4. The method for realizing unified playback of multimedia resources on a vehicle according to claim 1, characterized in that: The step S3 comprises: Install the media service system on the NAS private cloud server; Conduct secondary customized development on Nas private cloud server based on media service system; Connect the media playback application obtained through secondary customized development to the NAS private cloud media library.
5. The method for realizing unified playback of multimedia resources on a vehicle according to claim 4, characterized in that: The steps of the secondary customized development are: Step 1: Demand analysis, clarify the target group for secondary customization of Jellyfin, and determine the functions and uses of Jellyfin based on the user portrait of this group; Step 2: UI design, design the interface for secondary development, including determining the layout, fonts, color values and other elements to create an interface that better suits the user portrait; Step 3: Get the source code, select the source code that suits the platform and download and save it to the local hard disk; Step 4: Function development: modify the source code according to demand analysis to realize the function of secondary development; Step 5: Test verification: analyze according to needs, write test cases, self-test and pass all test cases to ensure the stability of secondary development.
6. A method for realizing unified playback of multimedia resources on a vehicle according to any one of claims 1 to 5, characterized in that: The media playback application includes a resource download module and a resource encryption module; The resource download module is used to download the multimedia resources played by the media player application to the Nas private cloud media library; The resource encryption module is used to encrypt the multimedia resources downloaded to the NAS private cloud media library.
7. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for realizing unified playback of vehicle multimedia resources as described in any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it is used to implement a method for realizing unified playback of multimedia resources on a vehicle as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Vehicle-mounted multimedia resources acquisition method and device, vehicle and storage medium
CN114065026A
