Resource sharing method and device based on music host and storage medium

文档序号:1381724 发布日期:2020-08-14 浏览:21次 中文

阅读说明:本技术 一种基于音乐主机的资源共享方法、设备及存储介质 (Resource sharing method and device based on music host and storage medium ) 是由 沈汉标 王妙玉 童威云 吴宁泉 王庆进 于 2020-04-16 设计创作,主要内容包括:本发明公开了一种基于音乐主机的资源共享方法、设备及存储介质,其中资源共享方法由自有服务器、指定客户端、物联网平台和音乐主机共同实现;资源共享方法包括:自有服务器接收由指定客户端发送的音乐更新指令,根据音乐更新指令将自有服务器中现存音乐资源对应的服务器校验码发送至指定客户端中;指定客户端将服务器校验码经物联网平台发送至音乐主机中;音乐主机将接收到的服务器校验码与当前时刻根据音乐主机现存的音乐资源所生成的本机校验码进行比较,判断二者是否一致,若不一致,将音乐主机现存的音乐资源上传至自有服务器中进行资源更新。本发明可让音乐主机的音乐资源共享至自有的服务器中供终端播放和控制,提升用户使用体验感。(The invention discloses a resource sharing method, equipment and a storage medium based on a music host, wherein the resource sharing method is realized by a self-owned server, a specified client, an Internet of things platform and the music host together; the resource sharing method comprises the following steps: the self-owned server receives a music updating instruction sent by the appointed client side, and sends a server check code corresponding to the existing music resource in the self-owned server to the appointed client side according to the music updating instruction; the designated client sends the server check code to the music host through the Internet of things platform; the music host compares the received server check code with a local check code generated according to the existing music resource of the music host at the current moment, judges whether the two are consistent, and uploads the existing music resource of the music host to a self-owned server for resource updating if the two are not consistent. The invention can enable the music resources of the music host to be shared in the own server for the terminal to play and control, thereby improving the use experience of the user.)

1. A resource sharing method based on a music host is characterized by being jointly realized by an owned server, a designated client, an Internet of things platform and the music host, wherein the owned server is connected with the designated client and the music host, and the designated client is connected with the music host through the Internet of things platform; the resource sharing method comprises the following steps:

the self-owned server receives a music updating instruction sent by the appointed client side, and sends a server check code corresponding to the existing music resource in the self-owned server to the appointed client side according to the music updating instruction;

the designated client sends the server check code to the music host through the Internet of things platform;

and the music host compares the received server check code with a local check code generated according to the existing music resource of the music host at the current moment, judges whether the server check code and the local check code are consistent, and uploads the existing music resource of the music host to the own server for resource updating when the server check code and the local check code are not consistent.

2. The method as claimed in claim 1, wherein the server check code corresponding to the existing music resource in the owned server is generated and sent by the music host during the last update process and stored in the owned server.

3. The method as claimed in claim 2, wherein the check code is a hash value generated by the music host according to the existing music resource at the current time.

4. The method according to claim 1, wherein the self-owned server is connected to the user terminal via a wireless network, and the self-owned server generates a corresponding music list according to the existing music resource and sends the music list to the user terminal for display.

5. The method according to claim 4, wherein the user terminal sends a music obtaining instruction to the self-owned server, and the self-owned server sends the corresponding music resource to the user terminal for playing after receiving the music obtaining instruction.

6. The music host-based resource sharing method according to claim 1, wherein after the specified client is connected to the music host via the internet of things platform, the specified client sends account authentication information to the music host via the internet of things platform, the music host authenticates the received account authentication information, and when the music host is successfully authenticated, a transmission channel for receiving the server check code is established with the client.

7. An electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for sharing resources based on a music host according to any one of claims 1 to 6 when executing the computer program.

8. A storage medium having stored thereon a computer program which, when executed, implements the music host-based resource sharing method according to any one of claims 1 to 6.

Technical Field

The invention relates to the field of smart home, in particular to a resource sharing method and device based on a music host and a storage medium.

Background

At present, in a background music host in an intelligent home, because song resources of the music host are located in a server of a third-party manufacturer, the manufacturer does not open a resource interface to the outside, which causes that the resources of the host music cannot be displayed at a client and the music cannot be controlled to be played at the client. In addition, because the existing internet of things platform has the limitation of an upper limit in resource storage, the display cannot be acquired through the internet of things platform.

Disclosure of Invention

In order to overcome the defects of the prior art, an object of the present invention is to provide a resource sharing method based on a music host, which can display and control music resources on the music host on a client, and can share the music resources of the music host with a server, so as to improve the user experience.

Another object of the present invention is to provide an electronic device.

It is a further object of the present invention to provide a storage medium.

One of the purposes of the invention is realized by adopting the following technical scheme:

a resource sharing method based on a music host is realized by a self-owned server, a designated client, an Internet of things platform and the music host together, wherein the self-owned server is connected with the designated client and the music host, and the designated client is connected with the music host through the Internet of things platform; the resource sharing method comprises the following steps:

the self-owned server receives a music updating instruction sent by the appointed client side, and sends a server check code corresponding to the existing music resource in the self-owned server to the appointed client side according to the music updating instruction;

the designated client sends the server check code to the music host through the Internet of things platform;

and the music host compares the received server check code with a local check code generated according to the existing music resource of the music host at the current moment, judges whether the server check code and the local check code are consistent, and uploads the existing music resource of the music host to the own server for resource updating when the server check code and the local check code are not consistent.

Further, the server check code corresponding to the existing music resource in the self-owned server is generated and sent by the music host in the last updating process and stored in the self-owned server.

Further, the check code is a hash value generated by the music host according to the existing music resource at the current moment.

Furthermore, the self-owned server is connected with a user terminal through a wireless network, generates a corresponding music list according to the existing music resources in the self-owned server, and sends the music list to the user terminal for display.

Further, the user terminal sends a music obtaining instruction to the self-owned server, and the self-owned server sends the corresponding music resource to the user terminal for playing after receiving the music obtaining instruction.

Further, after the designated client is connected with the music host through the internet of things platform, the designated client sends account verification information to the music host through the internet of things platform, the music host verifies the received account verification information, and when the music host is successfully verified, a transmission channel for receiving the server check code is established with the client.

The second purpose of the invention is realized by adopting the following technical scheme:

an electronic device comprises a processor, a memory and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the above-mentioned resource sharing method based on the music host.

The third purpose of the invention is realized by adopting the following technical scheme:

a storage medium having stored thereon a computer program which, when executed, implements the above-described music-host-based resource sharing method.

Compared with the prior art, the invention has the beneficial effects that:

the music host and the server realize the sharing of the music resources of the host, so that the music resources on the music host can be displayed on the client, the playing of the music resources can be controlled through the client, and meanwhile, the upper limit of resource storage is avoided, and the use experience of a user is improved.

Drawings

FIG. 1 is a flowchart illustrating a resource sharing method based on a music host according to the present invention.

Detailed Description

The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:视频播放进度控制方法、装置、存储介质及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类