CN107404360B - Audio playing method and device - Google Patents

Audio playing method and device Download PDF

Info

Publication number
CN107404360B
CN107404360B CN201710806607.2A CN201710806607A CN107404360B CN 107404360 B CN107404360 B CN 107404360B CN 201710806607 A CN201710806607 A CN 201710806607A CN 107404360 B CN107404360 B CN 107404360B
Authority
CN
China
Prior art keywords
audio file
playing
broadcast terminal
audio
control server
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
Application number
CN201710806607.2A
Other languages
Chinese (zh)
Other versions
CN107404360A (en
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.)
Hunan Kang Tong Electronic Ltd By Share Ltd
Original Assignee
Hunan Kang Tong Electronic Ltd By Share 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 Hunan Kang Tong Electronic Ltd By Share Ltd filed Critical Hunan Kang Tong Electronic Ltd By Share Ltd
Priority to CN201710806607.2A priority Critical patent/CN107404360B/en
Publication of CN107404360A publication Critical patent/CN107404360A/en
Application granted granted Critical
Publication of CN107404360B publication Critical patent/CN107404360B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H60/00Arrangements for broadcast applications with a direct linking to broadcast information or broadcast space-time; Broadcast-related systems
    • H04H60/09Arrangements for device control with a direct linkage to broadcast information or to broadcast space-time; Arrangements for control of broadcast-related services
    • H04H60/14Arrangements for conditional access to broadcast information or to broadcast-related services
    • H04H60/23Arrangements for conditional access to broadcast information or to broadcast-related services using cryptography, e.g. encryption, authentication, key distribution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H60/00Arrangements for broadcast applications with a direct linking to broadcast information or broadcast space-time; Broadcast-related systems
    • H04H60/02Arrangements for generating broadcast information; Arrangements for generating broadcast-related information with a direct linking to broadcast information or to broadcast space-time; Arrangements for simultaneous generation of broadcast information and broadcast-related information
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides an audio playing method and device, wherein the method comprises the following steps: receiving play task information sent by a control server, wherein the play task information comprises the start play time and the play period of an audio file to be played by a broadcast terminal; the audio file is played according to the starting playing time and the playing period of the audio file, and the operation cost of a user can be reduced under the condition that the broadcasting terminal is ensured to smoothly play the audio file to be played.

Description

Audio playing method and device
Technical Field
The present invention relates to the field of broadcasting technologies, and in particular, to an audio playing method and apparatus.
Background
In the field of broadcast technology, the existing basic technologies mainly include Internet Protocol (IP), Transport Stream (TS), satellite, and the like. The IP technology field includes wired networks, cellular networks, and the like. At present, the wired network and the cellular network of operators such as telecom, Unicom, Mobile and the like can basically cover all areas by utilizing the existing broadcasting and television network and two-way network.
However, with the existing network of the operator, it is not possible to send the audio file using multicast messages. Therefore, in order to ensure that the broadcast terminal can normally play the audio file to be played, the user can use the unicast mode to complete the transmission of the audio file, but the use of the unicast mode has the requirement of large bandwidth rigidity which needs a fixed IP, which results in high operation cost of the user.
Therefore, the operation cost of the current user is high when the user uses the network of the operator to enable the broadcast terminal to play the audio file to be played.
Disclosure of Invention
The embodiment of the invention aims to provide an audio playing method and an audio playing device, so as to solve the problem of high operation cost when a user enables a broadcasting terminal to play an audio file to be played by using a network of an operator.
In order to achieve the above object, an embodiment of the present invention provides an audio playing method applied to a broadcast terminal, where the method includes:
receiving play task information sent by a control server, wherein the play task information comprises the start play time and the play period of an audio file to be played by a broadcast terminal;
and playing the audio file according to the starting playing time and the playing period of the audio file.
Wherein, the playing task information also includes the fingerprint of the audio file, and the step of playing the audio file according to the starting playing time and the playing period of the audio file comprises the following steps:
scanning and detecting whether the broadcasting terminal stores the audio file or not according to the fingerprint of the audio file;
if the broadcast terminal does not store the audio file, acquiring the audio file, and playing the acquired audio file according to the starting playing time and the playing period of the audio file;
and if the broadcast terminal stores the audio file, playing the audio file stored by the broadcast terminal according to the starting playing time and the playing period of the audio file.
Wherein, the playing task information also comprises a downloading address of the audio file, and the step of obtaining the audio file comprises the following steps:
and downloading the audio file from the file transmission server according to the downloading address.
Wherein after the step of downloading the audio file from the file transfer server according to the download address, the method further comprises:
and receiving a key which is sent by the control server and used for decrypting the audio file downloaded from the file transmission server, and decrypting the downloaded audio file according to the key.
The playing task information also comprises the name of the audio file, and the method also comprises the following steps:
and in the process of playing the audio file, sending the name of the audio file currently played by the broadcast terminal and the playing progress information of the audio file to the control server.
Before the step of receiving the play task information sent by the control server, the method further includes:
sending a handshake request message to a control server;
receiving handshake response messages returned by the control server;
according to the handshake response message, sending a validity verification request message to the control server, wherein the validity verification request message comprises the identity information of the broadcast terminal;
and receiving an authentication message which is sent by the control server and used for indicating that the broadcast terminal is legal.
Wherein, the playing task information further comprises the ending time of the playing task, and after the step of playing the audio file according to the starting playing time and the playing period of the audio file, the method further comprises the following steps:
and deleting the audio file when the ending time of the playing task is detected to arrive.
The embodiment of the invention also provides an audio playing device, which is applied to a broadcast terminal and comprises:
the first receiving module is used for receiving the playing task information sent by the control server, wherein the playing task information comprises the starting playing time and the playing period of the audio file to be played by the broadcasting terminal;
and the playing module is used for playing the audio file according to the starting playing time and the playing period of the audio file.
Embodiments of the present invention also provide a broadcast terminal, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the audio playing method when executing the computer program.
Embodiments of the present invention also provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the audio playing method described above.
The embodiment of the invention also provides an audio playing method which is applied to the control server and comprises the following steps:
acquiring playing task information to be sent to a broadcast terminal, wherein the playing task information comprises the starting playing time and the playing period of an audio file to be played by the broadcast terminal;
and sending the playing task information to the broadcasting terminal.
Wherein, the playing task information also comprises the fingerprint of the audio file.
Wherein, the playing task information also comprises a downloading address of the audio file.
Wherein, after the step of transmitting the broadcasting task information to the broadcasting terminal, the method further comprises:
a key for decrypting the audio file downloaded from the file transfer server is transmitted to the broadcasting terminal.
Wherein, the broadcasting task information also comprises the name of the audio file, and after the step of sending the broadcasting task information to the broadcasting terminal, the method also comprises the following steps:
and receiving the name of the audio file currently played by the broadcast terminal and the playing progress information of the audio file, which are sent by the broadcast terminal.
Before the step of obtaining the broadcasting task information to be sent to the broadcasting terminal, the method further comprises:
receiving a handshake request message sent by a broadcast terminal;
returning a handshake response message to the broadcast terminal according to the handshake request message;
receiving a legality verification request message sent by a broadcast terminal, wherein the legality verification request message comprises identity information of the broadcast terminal;
according to the validity verification request message, carrying out validity verification on the broadcast terminal;
and when the broadcast terminal is legal, sending a verification message for indicating that the broadcast terminal is legal to the broadcast terminal.
Wherein, the playing task information also comprises the ending time of the playing task.
The embodiment of the invention also provides an audio playing device, which is applied to the control server and comprises the following components:
the system comprises an acquisition module, a display module and a playing module, wherein the acquisition module is used for acquiring playing task information needing to be sent to a broadcast terminal, and the playing task information comprises the starting playing time and the playing period of an audio file needing to be played by the broadcast terminal;
and the fourth sending module is used for sending the playing task information to the broadcasting terminal.
Embodiments of the present invention also provide a control server, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the audio playing method when executing the computer program.
Embodiments of the present invention also provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the audio playing method described above.
The scheme of the invention at least comprises the following beneficial effects:
in the embodiment of the invention, the broadcasting terminal plays the audio file to be played by receiving the playing task information sent by the control server and according to the playing start time and the playing period of the audio file to be played by the broadcasting terminal, which are included in the playing task information, wherein the broadcasting terminal can receive the playing task information sent by the control server before the playing start time of the audio file, so that the requirement on the IP bandwidth of the control server can be reduced under the condition that the broadcasting terminal is ensured to smoothly play the audio file to be played, the operation investment of a user on the bandwidth is further reduced, and the operation cost of the user is reduced.
Drawings
FIG. 1 is a flowchart illustrating an audio playing method according to a first embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an audio playback device according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating an audio playing method according to a fifth embodiment of the present invention;
fig. 4 is a schematic structural diagram of an audio playback device according to a sixth embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
First embodiment
As shown in fig. 1, a first embodiment of the present invention provides an audio playing method applied to a broadcast terminal, including:
step 101, receiving the play task information sent by the control server.
The broadcasting task information comprises the starting playing time and the playing period of the audio file to be played by the broadcasting terminal. It should be noted that, after receiving the broadcast task information, the broadcast terminal writes the content of the broadcast task information into its own storage device, so that after the broadcast terminal is restarted, the broadcast task corresponding to the broadcast task information is still valid.
And 102, playing the audio file according to the starting playing time and the playing period of the audio file.
In the first embodiment of the present invention, after receiving the playback task information, the broadcast terminal can periodically play back the audio file according to the start playback time and the playback period of the audio file. Specifically, the broadcasting terminal may implement the periodic playing of the audio file by creating a timer or by scanning in a timed round-robin manner. It is worth one that the control server can send the playing task information to the broadcast terminal in advance (i.e. before the beginning playing time of the audio file), so as to reduce the requirement on the IP bandwidth of the control server and reduce the operation investment of the user on the bandwidth. Meanwhile, the problem that the audio playing is blocked due to insufficient bandwidth of the control server at the broadcasting terminal can be avoided, and the user experience is improved.
In the first embodiment of the present invention, the playback task information further includes an end time of the playback task, so that after the step of playing back the audio file according to the start playback time and the playback period of the audio file, the method further includes the following steps: and deleting the audio file when the ending time of the playing task is detected to arrive. In the first embodiment of the present invention, the audio file is deleted when the ending time of the playback task is reached, so as to avoid that the audio file occupies the storage space of the broadcast terminal and affects the use of the broadcast terminal.
In a first embodiment of the present invention, the playback task information further includes a fingerprint of an audio file, and accordingly, a specific implementation manner of the step 102 includes the following steps:
the method comprises the steps of firstly, scanning and detecting whether the broadcasting terminal stores the audio file or not according to the fingerprint of the audio file, executing the second step if the broadcasting terminal does not store the audio file, and executing the third step if the broadcasting terminal stores the audio file.
The fingerprint of the audio file refers to information capable of uniquely identifying the audio file, so that the broadcasting terminal can scan and detect whether the audio file is stored or not according to the fingerprint of the audio file.
And secondly, acquiring an audio file, and playing the acquired audio file according to the starting playing time and the playing period of the audio file.
In a first embodiment of the present invention, the playing task information further includes a download address of an audio file, and correspondingly, the step of acquiring the audio file includes: and downloading the audio file from the file transmission server according to the downloading address. The File Transfer server may be a File Transfer Protocol (FTP) server, a simple File Transfer Protocol (TFTP) server, a hypertext Transfer Protocol (HTTP) server, or the like. The download address of the audio file may be: a Uniform Resource Locator (URL) for downloading the audio file, or an IP and port for downloading the audio file, etc.
And thirdly, playing the audio files stored by the broadcast terminal according to the starting playing time and the playing period of the audio files.
In the first embodiment of the present invention, if the audio file to be played is downloaded from the file transfer server, the audio file may be encrypted. Therefore, in the first embodiment of the present invention, after the step of downloading the audio file from the file transfer server according to the download address is performed, the method further includes the following steps: and receiving a key which is sent by the control server and used for decrypting the audio file downloaded from the file transmission server, and decrypting the downloaded audio file according to the key. Therefore, the broadcasting terminal can play the acquired audio file according to the starting playing time and the playing period of the audio file.
In a first embodiment of the present invention, the playback task information further includes a name of an audio file, and correspondingly, the method further includes the following steps: in the process of playing the audio file, the name of the audio file currently played by the broadcast terminal and the playing progress information of the audio file are sent to the control server, so that a user at the side of the control server can conveniently know the playing state of the broadcast terminal.
In the first embodiment of the present invention, before performing step 101, to ensure communication between the broadcast terminal and the control server, the method further includes the following steps:
first, a handshake request message is sent to a control server.
And step two, receiving a handshake response message returned by the control server.
In the first embodiment of the present invention, the broadcast terminal may establish a communication connection with the control server through the handshake request message and the handshake response message, so as to implement bidirectional communication. And the handshake reply message can carry time information so as to synchronize the broadcast terminal and the control server.
And thirdly, sending a legality verification request message to the control server according to the handshake response message, wherein the legality verification request message comprises the identity information of the broadcast terminal.
And fourthly, receiving a verification message which is sent by the control server and used for indicating that the broadcast terminal is legal.
In the first embodiment of the present invention, only when the broadcast terminal is legal, the broadcast terminal can interact with the control server to receive the broadcast task information sent by the control server. It should be noted that, in order to ensure the security of the interaction, any information (i.e. the playing task information, the key for decrypting the audio file downloaded from the file transfer server, etc.) interacted between the broadcast terminal and the control server may be processed in an encryption manner agreed in advance by the broadcast terminal and the control server. That is, the broadcast terminal needs to decrypt the information after receiving any information sent by the control server, and accordingly, the broadcast terminal needs to encrypt the information before sending any information to the control server.
It can be seen that, in the first embodiment of the present invention, the broadcast terminal plays the audio file to be played by receiving the play task information sent by the control server, and according to the start play time and the play period of the audio file to be played by the broadcast terminal, which are included in the play task information, where the broadcast terminal can receive the play task information sent by the control server before the start play time of the audio file, so that the requirement on the IP bandwidth of the control server can be reduced under the condition that the broadcast terminal is ensured to smoothly play the audio file to be played, thereby reducing the operation investment of the user on the bandwidth, and reducing the operation cost of the user.
Second embodiment
As shown in fig. 2, a second embodiment of the present invention provides an audio playing apparatus applied to a broadcasting terminal, including:
a first receiving module 201, configured to receive play task information sent by a control server, where the play task information includes a start play time and a play period of an audio file that needs to be played by a broadcast terminal;
the playing module 202 is configured to play the audio file according to the start playing time and the playing period of the audio file.
Wherein, the playing task information further includes a fingerprint of the audio file, and the playing module 202 includes:
the scanning unit is used for scanning and detecting whether the broadcasting terminal stores the audio file or not according to the fingerprint of the audio file, and triggering the first playing unit if the broadcasting terminal does not store the audio file, and triggering the second playing unit if the broadcasting terminal stores the audio file;
the first playing unit is used for acquiring the audio file according to the triggering of the scanning unit and playing the acquired audio file according to the starting playing time and the playing period of the audio file;
and the second playing unit is used for playing the audio files stored by the broadcasting terminal according to the triggering of the scanning unit and the starting playing time and the playing period of the audio files.
The playing task information further comprises a downloading address of the audio file, and the first playing unit is further used for downloading the audio file from the file transmission server according to the downloading address.
Wherein, the device still includes:
and the second receiving module is used for receiving the key which is sent by the control server and used for decrypting the audio file downloaded from the file transmission server and decrypting the downloaded audio file according to the key.
Wherein, the playing task information further comprises the name of the audio file, and the device further comprises:
the first sending module is used for sending the name of the audio file currently played by the broadcast terminal and the playing progress information of the audio file to the control server in the process of playing the audio file.
Wherein, the device still includes:
the second sending module is used for sending a handshake request message to the control server;
the third receiving module is used for receiving the handshake response message returned by the control server;
a third sending module, configured to send a validity verification request message to the control server according to the handshake response message, where the validity verification request message includes identity information of the broadcast terminal;
and the fourth receiving module is used for receiving the verification message which is sent by the control server and used for indicating that the broadcast terminal is legal.
Wherein, the playing task information further comprises the ending time of the playing task, and the device further comprises:
and the deleting module is used for deleting the audio file when the ending time of the playing task is detected to arrive.
In the second embodiment of the present invention, the broadcast terminal plays the audio file to be played by receiving the play task information sent by the control server and according to the start play time and the play cycle of the audio file to be played by the broadcast terminal, which are included in the play task information, wherein the broadcast terminal can receive the play task information sent by the control server before the start play time of the audio file, so that the requirement on the IP bandwidth of the control server can be reduced under the condition that the broadcast terminal is ensured to smoothly play the audio file to be played, thereby reducing the operation investment of the bandwidth for the user, and reducing the operation cost of the user.
It should be noted that the audio playing apparatus provided in the second embodiment of the present invention is an apparatus applied to the audio playing method applied to the broadcasting terminal, and therefore all embodiments of the audio playing method applied to the broadcasting terminal are applicable to the apparatus and can achieve the same or similar beneficial effects.
Third embodiment
A third embodiment of the present invention provides a broadcast terminal, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the audio playing method described above when executing the computer program.
That is, in the third embodiment of the present invention, the processor of the broadcast terminal implements the steps of the audio playing method applied to the broadcast terminal when executing the computer program, so that the embodiments of the audio playing method applied to the broadcast terminal are all applicable to the broadcast terminal, and all can achieve the same or similar beneficial effects.
Fourth embodiment
A fourth embodiment of the present invention provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the audio playback method described above.
That is, in the fourth embodiment of the present invention, the computer program of the computer-readable storage medium is executed by the processor to implement the steps of the audio playing method applied to the broadcasting terminal, so that the embodiments of the audio playing method applied to the broadcasting terminal are all applicable to the computer-readable storage medium, and all can achieve the same or similar beneficial effects.
Fifth embodiment
As shown in fig. 3, a fifth embodiment of the present invention provides an audio playing method applied to a control server, including:
step 301, acquiring the broadcasting task information to be sent to the broadcasting terminal.
The broadcasting task information comprises the starting playing time and the playing period of the audio file to be played by the broadcasting terminal.
Step 302, sending the broadcast task information to the broadcast terminal.
In a fifth embodiment of the present invention, the control server can send the broadcast task information to the broadcast terminal before the start time of the audio file, so that the broadcast terminal executes the broadcast task according to the broadcast task information. And the control server can acquire the playing task information in advance and send the acquired playing task information to the broadcast terminal, so that the requirement on the IP bandwidth of the control server is reduced, the operation investment of a user on the bandwidth is reduced, and the operation cost of the user is reduced.
In a fifth embodiment of the present invention, the playback task information further includes an end time of the playback task, and specifically, the playback task refers to a task in which the broadcast terminal plays an audio file to be played. In the fifth embodiment of the present invention, the purpose of the playback task information including the end time of the playback task is to enable the broadcast terminal to delete the audio file when detecting that the end time of the playback task is reached, so as to achieve an effect of preventing the audio file from occupying a storage space of the broadcast terminal.
In a fifth embodiment of the present invention, the playback task information further includes a fingerprint of the audio file. The fingerprint of the audio file refers to information capable of uniquely identifying the audio file, so that the broadcasting terminal can scan and detect whether the audio file is stored or not according to the fingerprint of the audio file. Specifically, if the broadcast terminal stores the audio file, the audio file can be played directly according to the start playing time and the playing period of the audio file; if the broadcast terminal does not store the audio file, the broadcast terminal can play the audio file according to the start playing time and the playing period of the audio file after downloading the audio file from the file transmission server.
In a fifth embodiment of the present invention, the playback task information further includes a download address of the audio file, so that the broadcast terminal can download the audio file from the file transfer server according to the download address of the audio file. Here, as an example, the file transfer server may be an FTP server, a TFTP server, an HTTP server, or the like; the download address of the audio file may be: a URL for downloading the audio file, or an IP and port for downloading the audio file, etc.
In a fifth embodiment of the present invention, after the step 302 is executed, the method further includes the following steps: and sending a key for decrypting the audio file downloaded from the file transmission server to the broadcast terminal, so that the downloaded audio file is decrypted when the audio file downloaded from the file transmission server by the broadcast terminal is encrypted, and the broadcast terminal can play the acquired audio file according to the starting playing time and the playing period of the audio file.
In a fifth embodiment of the present invention, the playback task information further includes a name of an audio file, and accordingly, after the step 302 is executed, the method further includes the following steps: and receiving the name of the audio file currently played by the broadcast terminal and the playing progress information of the audio file, which are sent by the broadcast terminal, so that a user at a control server side can clearly know the playing state of the broadcast terminal.
In a fifth embodiment of the present invention, before performing step 301, to ensure communication between the control server and the broadcast terminal, the method further includes the following steps:
first, a handshake request message sent by a broadcast terminal is received.
And step two, according to the handshake request message, a handshake response message is returned to the broadcast terminal.
In a fifth embodiment of the present invention, the control server may establish a communication connection with the broadcast terminal through the handshake request message and the handshake response message, so as to implement bidirectional communication. And the handshake reply message may carry time information to synchronize the broadcasting terminal with the control server.
And thirdly, receiving a legality verification request message sent by the broadcast terminal, wherein the legality verification request message comprises the identity information of the broadcast terminal.
And fourthly, carrying out validity verification on the broadcast terminal according to the validity verification request message.
And fifthly, when the broadcast terminal is legal, sending a verification message for indicating that the broadcast terminal is legal to the broadcast terminal.
In a fifth embodiment of the present invention, the control server can perform validity verification on the broadcast terminal through the validity verification request message, and only when the broadcast terminal is valid, the control server interacts with the broadcast terminal and sends the broadcast task information to the broadcast terminal. It should be noted that, in order to ensure the security of the interaction, any information (i.e. the playing task information, the key for decrypting the audio file downloaded from the file transfer server, etc.) interacted between the control server and the broadcast terminal may be processed in an encryption manner agreed in advance by the two (i.e. the control server and the broadcast terminal). That is, the control server needs to encrypt any information before transmitting it to the broadcast terminal, and correspondingly, the control server needs to decrypt the information after receiving any information transmitted by the broadcast terminal.
Therefore, in the fifth embodiment of the present invention, since the control server can send the acquired playback task information to the broadcast terminal before the start time of the audio file, the requirement on the IP bandwidth of the control server is reduced, thereby reducing the operation investment of the user on the bandwidth, and simultaneously enabling the broadcast terminal to smoothly play the audio file to be played according to the playback task information, that is, reducing the operation cost of the user under the condition that the broadcast terminal is ensured to smoothly play the audio file to be played.
Sixth embodiment
As shown in fig. 4, a sixth embodiment of the present invention provides an audio playing apparatus applied to a control server, including:
an obtaining module 401, configured to obtain play task information that needs to be sent to a broadcast terminal, where the play task information includes a start play time and a play period of an audio file that needs to be played by the broadcast terminal;
a fourth sending module 402, configured to send the play task information to the broadcast terminal.
Wherein, the playing task information also comprises the fingerprint of the audio file.
Wherein, the playing task information also comprises a downloading address of the audio file.
Wherein, the device still includes:
and the fifth sending module is used for sending a key for decrypting the audio file downloaded from the file transmission server to the broadcast terminal.
Wherein, the playing task information further comprises the name of the audio file, and the device further comprises:
and the fifth receiving module is used for receiving the name of the audio file which is sent by the broadcasting terminal and is played by the broadcasting terminal at present and the playing progress information of the audio file.
Wherein, the device still includes:
a sixth receiving module, configured to receive a handshake request message sent by the broadcast terminal;
a sixth sending module, configured to return a handshake response message to the broadcast terminal according to the handshake request message;
a seventh receiving module, configured to receive a validity verification request message sent by the broadcast terminal, where the validity verification request message includes identity information of the broadcast terminal;
the verification module is used for verifying the validity of the broadcast terminal according to the validity verification request message;
and the seventh sending module is used for sending a verification message for indicating that the broadcast terminal is legal to the broadcast terminal when the broadcast terminal is legal.
Wherein, the playing task information also comprises the ending time of the playing task.
In the sixth embodiment of the present invention, the control server can send the obtained playback task information to the broadcast terminal before the start time of the audio file, so that the requirement on the IP bandwidth of the control server is reduced, thereby reducing the operation investment of the user on the bandwidth, and simultaneously enabling the broadcast terminal to smoothly play the audio file to be played according to the playback task information, that is, the operation cost of the user is reduced under the condition that the broadcast terminal is ensured to smoothly play the audio file to be played.
It should be noted that the audio playing apparatus provided in the sixth embodiment of the present invention is an apparatus applying the audio playing method applied to the control server, and therefore, the embodiments of the audio playing method applied to the control server are all applicable to the apparatus and all can achieve the same or similar beneficial effects.
Seventh embodiment
A seventh embodiment of the present invention provides a control server, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the audio playing method described above when executing the computer program.
That is, in the seventh embodiment of the present invention, the processor of the control server implements the steps of the audio playing method applied to the control server when executing the computer program, so that the embodiments of the audio playing method applied to the control server are all applicable to the control server, and all can achieve the same or similar beneficial effects.
Eighth embodiment
An eighth embodiment of the present invention provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the audio playback method described above.
That is, in the eighth embodiment of the present invention, the computer program of the computer-readable storage medium is executed by the processor to implement the steps of the audio playing method applied to the control server, so that the embodiments of the audio playing method applied to the control server are all applicable to the computer-readable storage medium, and all can achieve the same or similar beneficial effects.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. An audio playing method applied to a broadcast terminal is characterized by comprising the following steps:
sending a handshake request message to a control server;
receiving a handshake response message returned by the control server;
according to the handshake response message, sending a validity verification request message to the control server, wherein the validity verification request message comprises the identity information of the broadcast terminal;
receiving a verification message which is sent by the control server and used for indicating that the broadcast terminal is legal;
receiving play task information sent by a control server, wherein the play task information comprises the start play time and the play period of an audio file to be played by the broadcast terminal, and the fingerprint and the download address of the audio file;
scanning and detecting whether the broadcast terminal stores the audio file or not according to the fingerprint of the audio file;
if the audio file is not stored in the broadcast terminal, acquiring the audio file, and playing the acquired audio file according to the starting playing time and playing period of the audio file;
if the audio file is stored in the broadcast terminal, playing the audio file stored in the broadcast terminal according to the starting playing time and playing period of the audio file;
the method further comprises the following steps:
downloading the audio file from a file transmission server according to the download address;
and receiving a key which is sent by the control server and used for decrypting the audio file downloaded from the file transmission server, and decrypting the downloaded audio file according to the key.
2. The method of claim 1, wherein the playback task information further includes a name of the audio file, the method further comprising:
and in the process of playing the audio file, sending the name of the audio file currently played by the broadcast terminal and the playing progress information of the audio file to the control server.
3. The method of claim 1, wherein the playback task information further includes an end time of the playback task, and wherein after the step of playing back the audio file according to the start playback time and the playback period of the audio file, the method further comprises:
and deleting the audio file when the ending time of the playing task is detected to arrive.
4. A broadcast terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the audio playback method according to any of claims 1 to 3 when executing the computer program.
5. An audio playing method applied to a control server is characterized by comprising the following steps:
receiving a handshake request message sent by a broadcast terminal;
according to the handshake request message, a handshake response message is returned to the broadcast terminal;
receiving a validity verification request message sent by the broadcast terminal, wherein the validity verification request message comprises identity information of the broadcast terminal;
according to the validity verification request message, carrying out validity verification on the broadcast terminal;
when the broadcast terminal is legal, sending a verification message for indicating that the broadcast terminal is legal to the broadcast terminal;
acquiring playing task information to be sent to a broadcast terminal, wherein the playing task information comprises the starting playing time and the playing period of an audio file to be played by the broadcast terminal, and the fingerprint and the download address of the audio file;
the method further comprises the following steps:
and transmitting a key for decrypting the audio file downloaded from the file transfer server to the broadcasting terminal.
6. The method of claim 5, wherein the playback task information further includes a name of the audio file, and wherein after the step of transmitting the playback task information to the broadcast terminal, the method further comprises:
and receiving the name of the audio file which is currently played by the broadcast terminal and is sent by the broadcast terminal, and the playing progress information of the audio file.
7. The method of claim 5, wherein the playback task information further comprises an end time of the playback task.
8. A control server comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor implements the steps of the audio playback method according to any of claims 5 to 7 when executing said computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the audio playback method according to one of claims 5 to 7.
CN201710806607.2A 2017-09-08 2017-09-08 Audio playing method and device Active CN107404360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710806607.2A CN107404360B (en) 2017-09-08 2017-09-08 Audio playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710806607.2A CN107404360B (en) 2017-09-08 2017-09-08 Audio playing method and device

Publications (2)

Publication Number Publication Date
CN107404360A CN107404360A (en) 2017-11-28
CN107404360B true CN107404360B (en) 2020-02-07

Family

ID=60397832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710806607.2A Active CN107404360B (en) 2017-09-08 2017-09-08 Audio playing method and device

Country Status (1)

Country Link
CN (1) CN107404360B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108092960A (en) * 2017-12-08 2018-05-29 广州视源电子科技股份有限公司 Method, apparatus, equipment and the storage medium that a kind of audio plays
CN108155963A (en) * 2017-12-25 2018-06-12 新疆蓝海汇众信息技术有限公司 The control method and system of broadcast terminal
CN109194426B (en) * 2018-07-25 2021-06-29 广州市迪士普音响科技有限公司 Public broadcast control method and device
CN110166550B (en) * 2019-05-22 2022-03-18 湖南康通电子股份有限公司 Timing broadcasting method and device of digital broadcasting system
CN116226890A (en) * 2023-05-05 2023-06-06 北京华阅嘉诚科技发展有限公司 Audio file processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7272843B1 (en) * 1998-06-17 2007-09-18 Hitachi, Ltd. Broadcasting method and broadcast signal receiver apparatus
CN101202878A (en) * 2007-08-23 2008-06-18 深圳市同洲电子股份有限公司 Method, system for playing message data and digital television takeover terminal
CN102752310A (en) * 2012-07-13 2012-10-24 北京中广睛彩导航科技有限公司 Broadcasting control method and system for CMMB (China Mobile Multimedia Broadcasting) data broadcast
CN105142018A (en) * 2015-08-12 2015-12-09 深圳Tcl数字技术有限公司 Programme identification method and programme identification device based on audio fingerprints

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6053527B2 (en) * 2013-01-10 2016-12-27 日本放送協会 Transmitter and receiver
CN106598540A (en) * 2016-12-15 2017-04-26 北京小米移动软件有限公司 Audio playing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7272843B1 (en) * 1998-06-17 2007-09-18 Hitachi, Ltd. Broadcasting method and broadcast signal receiver apparatus
CN101202878A (en) * 2007-08-23 2008-06-18 深圳市同洲电子股份有限公司 Method, system for playing message data and digital television takeover terminal
CN102752310A (en) * 2012-07-13 2012-10-24 北京中广睛彩导航科技有限公司 Broadcasting control method and system for CMMB (China Mobile Multimedia Broadcasting) data broadcast
CN105142018A (en) * 2015-08-12 2015-12-09 深圳Tcl数字技术有限公司 Programme identification method and programme identification device based on audio fingerprints

Also Published As

Publication number Publication date
CN107404360A (en) 2017-11-28

Similar Documents

Publication Publication Date Title
CN107404360B (en) Audio playing method and device
US10650119B2 (en) Multimedia data processing method, apparatus, system, and storage medium
US8832726B2 (en) Video streaming entitlement determined based on the location of the viewer
US9633029B2 (en) Method, server, and user terminal for providing and acquiring media content
US8126001B2 (en) Method and apparatus for multicasting contents between devices in networks
CN102143129B (en) Method and system for realizing service protection in hyper text transmission protocol (HTTP) streaming transmission
CN107888603B (en) Internet of things intelligent equipment registration and authentication method and Internet of things
CN112019889B (en) Cloud-based screen projection system and screen projection method
CN107070931B (en) Cloud application data uploading/accessing method and system and cloud proxy server
CN107864475B (en) WiFi (Wireless Fidelity) shortcut authentication method based on Portal + dynamic password
WO2012083620A1 (en) Method, means and system for downloading streaming media files
CN105873055B (en) Wireless network access authentication method and device
EP3618428A1 (en) Method and system for storing video, and method for accessing video
CN103685557A (en) Method and device for uploading and downloading file
WO2017054620A1 (en) Dvb-based multi-terminal program playing method and system, set top box and mobile terminal
US10412589B2 (en) Broadcast apparatus and method of authenticating broadcast data
CN113630241B (en) Password recovery method and system, cloud server and electronic equipment
CN108306793B (en) Intelligent device, intelligent home gateway, and method and system for establishing connection
CN106230860A (en) The method and apparatus sending Streaming Media
CN102026028A (en) Audience rating investigation method, related terminal and system
CN102769776A (en) System and method for enabling CAS (Conditional Access System) terminal to timely obtain entitlement
CN109168039A (en) Code stream clarity switching method, device, terminal and the readable medium of android system
KR102379069B1 (en) Broadcast apparatus and method for authenticating broadcast data
CN112738560A (en) Video data transmission method, receiving method, server and client
CN105871788B (en) Password generation method and device for login server

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Audio playback method and device

Effective date of registration: 20221230

Granted publication date: 20200207

Pledgee: Agricultural Bank of China Limited Changsha Furong District Sub-branch

Pledgor: HUNAN COMTOM ELECTRONIC TECHNOLOGY CO.,LTD.

Registration number: Y2022980029886