CN111541944B - Resource sharing method and device based on music host and storage medium - Google Patents
Resource sharing method and device based on music host and storage medium Download PDFInfo
- Publication number
- CN111541944B CN111541944B CN202010301779.6A CN202010301779A CN111541944B CN 111541944 B CN111541944 B CN 111541944B CN 202010301779 A CN202010301779 A CN 202010301779A CN 111541944 B CN111541944 B CN 111541944B
- Authority
- CN
- China
- Prior art keywords
- music
- server
- host
- resource
- check code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/458—Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
- H04N21/4586—Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/63—Querying
- G06F16/638—Presentation of query results
- G06F16/639—Presentation of query results using playlists
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
- H04N21/4627—Rights management associated to the content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8106—Monomedia components thereof involving special audio data, e.g. different tracks for different languages
- H04N21/8113—Monomedia components thereof involving special audio data, e.g. different tracks for different languages comprising music, e.g. song in MP3 format
Abstract
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 playing and control of the terminal, thereby improving the use experience of the user.
Description
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.
Example one
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 can be connected with the designated client through a network and can also be connected with other user terminals, in addition, the self-owned server is directly connected with the music host under the authorization of the music host, the music host stores music resources in a server of a third party manufacturer, meanwhile, the music host can also generate a corresponding check code according to the existing music resources, the check code is a hash value generated by the music host according to the existing music resources at the current moment, and when the quantity of the music resources changes, the check code can also change along with the change of the music resources.
In addition, the music host is further connected with the appointed client through the Internet of things platform, and the appointed client can establish a transmission channel with the music host through the Internet of things platform.
Referring to fig. 1, the resource sharing method based on a music host includes the following steps:
step S1: 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 server check code is generated and sent by the music host in the last updating process and is stored in the owned server.
When the designated client is connected with the owned server, an account verification link is required, when an administrator enters the designated client, a login account needs to be input, the login account is bound with the owned server in advance, and after the login account is successfully authenticated, the designated client can send a music updating instruction to the owned server, so that the control authority of a common user terminal is limited.
In addition, the appointed client side can also be provided with a timed music updating instruction, the administrator sets the timed sending time after logging in the appointed client side, and at the moment, the appointed client side can automatically send the music updating instruction under the unmanned control, so that the self server can automatically update the music resources at a timed time.
Step S2: and the designated client sends the server check code to the music host through the Internet of things platform.
After the designated client is connected with the music host through the internet of things platform, verification operation is also required, namely the designated client sends account verification information to the music host through the internet of things platform, wherein the account verification information is information of a resource authorization acquisition account and can be a user name and a password bound with the music host. The account information required for verifying the resource authorization acquisition account may be the same as the account information of the login account in step S1, or may be set to be different.
When the music host authorizes other equipment to obtain music resources of the music host, a resource authorization obtaining account bound with the music host is issued, a transmission channel between the music host and the appointed client and between the music host and the self-owned server is established through the resource authorization obtaining account, namely when the appointed client sends the resource authorization obtaining account to the music host through the Internet of things platform, the music host judges the authenticity of the resource authorization obtaining account, if the account is real, the transmission channel is established with the appointed client, and the appointed client is allowed to send the server check code to the music host through the Internet of things platform; similarly, when the self-owned server is connected with the music host, the self-owned server also needs to send a resource authorization acquisition account to the music host, and a transmission channel for downloading music resources from the music host can be established with the server after the music host judges that the account is real, so that the security of signal transmission is improved.
Step S3: 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, if the server check code and the local check code are the same, the music resource in the music host is not updated, and at the moment, the updating operation is not executed; when the server check code is judged to be inconsistent with the local check code, the music resource in the music host is updated, and at the moment, the existing music resource of the music host is uploaded to the own server for resource updating, so that the own server has the latest music resource on the music host.
The self-owned server can be connected with countless user terminals through a wireless network, the self-owned server generates a corresponding music list according to the existing music resources in the self-owned server and sends the music list to the user terminals for displaying, so that a user can indirectly view the music resources of the music host in the user terminals.
The user terminal can also send a music acquisition 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 acquisition instruction, so that the user can realize the indirect control of the music playing of the music host in the user terminal.
In addition, after receiving the music resources updated by the music host, the self-owned server automatically generates a music updating notification and sends the music updating notification to the user terminal with the notification permission opened, so that the user terminal can timely know the music updating message, and the use experience of the user is improved.
Example two
The embodiment provides an electronic device, which 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 resource sharing method based on the music host in the first embodiment; in addition, the present embodiment also provides a storage medium on which a computer program is stored, and the computer program realizes the above-mentioned resource sharing method based on a music host when executed.
The apparatus and the storage medium in this embodiment are based on two aspects of the same inventive concept, and the method implementation process has been described in detail in the foregoing, so that those skilled in the art can clearly understand the structure and implementation process of the system in this embodiment according to the foregoing description, and for the sake of brevity of the description, details are not repeated here.
The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are within the protection scope of the present invention.
Claims (7)
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; after the specified client is connected with the music host through the Internet of things platform, the specified 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 verified successfully, a transmission channel for receiving the server check code is established with the client;
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 to be stored in the owned server during the last update procedure.
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. An electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for resource sharing based on a music host according to any one of claims 1 to 5.
7. 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 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010301779.6A CN111541944B (en) | 2020-04-16 | 2020-04-16 | Resource sharing method and device based on music host and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010301779.6A CN111541944B (en) | 2020-04-16 | 2020-04-16 | Resource sharing method and device based on music host and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111541944A CN111541944A (en) | 2020-08-14 |
CN111541944B true CN111541944B (en) | 2022-05-13 |
Family
ID=71976839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010301779.6A Active CN111541944B (en) | 2020-04-16 | 2020-04-16 | Resource sharing method and device based on music host and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111541944B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103248683A (en) * | 2013-04-28 | 2013-08-14 | 中国地质大学(武汉) | IOT cloud music speaker and audio data play method thereof |
CN103927201A (en) * | 2014-03-25 | 2014-07-16 | 优视科技有限公司 | Method and device for updating game files |
CN104810046A (en) * | 2015-05-07 | 2015-07-29 | 慧锐通智能科技股份有限公司 | Playing system and playing method for background music |
CN204596423U (en) * | 2015-05-07 | 2015-08-26 | 慧锐通智能科技股份有限公司 | A kind of multiple sound resource background music local controller and Play System |
CN107342921A (en) * | 2017-06-15 | 2017-11-10 | 杭州索那声美科技有限公司 | Background music control method and device, computer-readable recording medium |
CN109999489A (en) * | 2019-03-29 | 2019-07-12 | 北京金山安全软件有限公司 | Resource updating method and device and electronic equipment |
CN110569311A (en) * | 2019-10-30 | 2019-12-13 | 上海商魁信息科技有限公司 | Data synchronization method and device for database and computer storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7373643B2 (en) * | 2001-03-06 | 2008-05-13 | Cybersoft, Inc. | Apparatus, methods and articles of manufacture for data transmission |
US10168677B2 (en) * | 2014-11-11 | 2019-01-01 | Weebee Corporation | Systems and methods for smart spaces |
-
2020
- 2020-04-16 CN CN202010301779.6A patent/CN111541944B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103248683A (en) * | 2013-04-28 | 2013-08-14 | 中国地质大学(武汉) | IOT cloud music speaker and audio data play method thereof |
CN103927201A (en) * | 2014-03-25 | 2014-07-16 | 优视科技有限公司 | Method and device for updating game files |
CN104810046A (en) * | 2015-05-07 | 2015-07-29 | 慧锐通智能科技股份有限公司 | Playing system and playing method for background music |
CN204596423U (en) * | 2015-05-07 | 2015-08-26 | 慧锐通智能科技股份有限公司 | A kind of multiple sound resource background music local controller and Play System |
CN107342921A (en) * | 2017-06-15 | 2017-11-10 | 杭州索那声美科技有限公司 | Background music control method and device, computer-readable recording medium |
CN109999489A (en) * | 2019-03-29 | 2019-07-12 | 北京金山安全软件有限公司 | Resource updating method and device and electronic equipment |
CN110569311A (en) * | 2019-10-30 | 2019-12-13 | 上海商魁信息科技有限公司 | Data synchronization method and device for database and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111541944A (en) | 2020-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109712278B (en) | Intelligent door lock identity authentication method and system, readable storage medium and mobile terminal | |
US10708374B2 (en) | Enabling notification from a network resource | |
CN105007280B (en) | A kind of application login method and device | |
CN108540433B (en) | User identity verification method and device | |
KR102001544B1 (en) | Apparatus and method to enable a user authentication in a communication system | |
CN106096343A (en) | Message access control method and equipment | |
CN113285807B (en) | Network access authentication method and system for intelligent equipment | |
CN104104654A (en) | Method and device for setting Wifi access authority and Wifi authentication | |
CN107508822B (en) | Access control method and device | |
CN104092811A (en) | Mobile terminal information download method, system, terminal device and server | |
CN109257365B (en) | Information processing method, device, equipment and storage medium | |
EP3582439A1 (en) | Method for providing an over the air (ota) update to devices of an internet of things (iot) platform | |
CN104348620A (en) | Method for authenticating intelligent household terminals, and corresponding devices | |
CN109996229B (en) | Data transmission method and device based on DHT network, electronic equipment and storage medium | |
US11171964B1 (en) | Authentication using device and user identity | |
CN109726545B (en) | Information display method, equipment, computer readable storage medium and device | |
CN105722072A (en) | Business authorization method, device, system and router | |
CN105099686A (en) | Data synchronization method, server, terminal and system | |
CN111541944B (en) | Resource sharing method and device based on music host and storage medium | |
CN117251837A (en) | System access method and device, electronic equipment and storage medium | |
CN112068854B (en) | Intelligent device algorithm updating system, intelligent device and platform server | |
US11475134B2 (en) | Bootstrapping a device | |
JP2023519650A (en) | Internet-of-Things device registration method, device, device and storage medium | |
CN112417403A (en) | Automatic system authentication and authorization processing method based on GitLab API | |
US20080022004A1 (en) | Method And System For Providing Resources By Using Virtual Path |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |