CN108540481B - Online playing method and device for audio file - Google Patents

Online playing method and device for audio file Download PDF

Info

Publication number
CN108540481B
CN108540481B CN201810359649.0A CN201810359649A CN108540481B CN 108540481 B CN108540481 B CN 108540481B CN 201810359649 A CN201810359649 A CN 201810359649A CN 108540481 B CN108540481 B CN 108540481B
Authority
CN
China
Prior art keywords
audio
played
clip
determining
loaded
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
CN201810359649.0A
Other languages
Chinese (zh)
Other versions
CN108540481A (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.)
Guangzhou Qianjun Network Technology Co ltd
Original Assignee
Guangzhou Qianjun Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Qianjun Network Technology Co ltd filed Critical Guangzhou Qianjun Network Technology Co ltd
Priority to CN201810359649.0A priority Critical patent/CN108540481B/en
Publication of CN108540481A publication Critical patent/CN108540481A/en
Application granted granted Critical
Publication of CN108540481B publication Critical patent/CN108540481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/00086Circuits for prevention of unauthorised reproduction or copying, e.g. piracy
    • G11B20/00731Circuits for prevention of unauthorised reproduction or copying, e.g. piracy involving a digital rights management system for enforcing a usage restriction
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/00086Circuits for prevention of unauthorised reproduction or copying, e.g. piracy
    • G11B20/00855Circuits for prevention of unauthorised reproduction or copying, e.g. piracy involving a step of exchanging information with a remote server
    • G11B20/00862Circuits for prevention of unauthorised reproduction or copying, e.g. piracy involving a step of exchanging information with a remote server wherein the remote server can grant the permission to use a content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2463/00Additional details relating to network architectures or network communication protocols for network security covered by H04L63/00
    • H04L2463/101Additional details relating to network architectures or network communication protocols for network security covered by H04L63/00 applying security measures for digital rights management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses an online playing method and device of an audio file, wherein the method comprises the following steps: acquiring an audio link address of an audio file to be played; analyzing the audio link address to obtain a dynamic key of the audio file to be played; decrypting the audio head metadata loaded for the first time through the dynamic key to obtain the decrypted audio head metadata; analyzing the decrypted audio head metadata to obtain an audio clip of the audio file to be played, and determining a first position and a second position of the audio clip to be loaded; and loading the audio file to be played according to the first position and the second position to obtain an audio clip to be played, and decrypting and playing the audio clip to be played. The invention realizes the purpose of improving the user experience effect based on the online playing of the paid audio product.

Description

Online playing method and device for audio file
Technical Field
The present invention relates to the field of audio technologies, and in particular, to an online playing method and an online playing device for an audio file.
Background
In recent years, more and more paid audio products have emerged, accompanied by the development of paid knowledge products. In order to increase the market share of the paid audio product, it is necessary to enhance the experience effect of the paid audio product so as to guide the user to use or purchase the paid audio product.
In an audio player in an existing browser, in order to protect the copyright of a paid audio product, the paid audio product cannot be played in the audio player in the browser generally, and some users may be guided to download corresponding software in the browser to play the paid audio product, so that the user experience effect on the paid audio product is poor.
Disclosure of Invention
In view of the above problems, the present invention provides an online playing method and device for audio files, which achieve the purpose of improving the user experience effect based on online playing of paid audio products.
In order to achieve the purpose, the invention provides the following technical scheme:
an online playing method of an audio file, the method comprising:
acquiring an audio link address of an audio file to be played;
analyzing the audio link address to obtain a dynamic key of the audio file to be played;
decrypting the audio head metadata loaded for the first time through the dynamic key to obtain the decrypted audio head metadata;
analyzing the decrypted audio head metadata to obtain an audio clip of the audio file to be played, and determining a first position and a second position of the audio clip to be loaded;
and loading the audio file to be played according to the first position and the second position to obtain an audio clip to be played, and decrypting and playing the audio clip to be played.
Preferably, the analyzing the audio link address to obtain the dynamic key of the audio file to be played includes:
analyzing the audio link address to obtain a coded character string corresponding to the audio link address;
and determining the character strings meeting preset conditions in the code character strings as the dynamic key of the audio file to be played, wherein the preset conditions comprise that every two continuous character strings consisting of letters and numbers in the code character strings are selected.
Preferably, the decrypting the audio header metadata loaded for the first time by using the dynamic key to obtain the decrypted audio header metadata includes:
extracting and obtaining audio head metadata loaded for the first time according to the audio link address in a preset mode, wherein the preset mode comprises an Ajax mode;
and judging whether the first character of the dynamic key is a preset character or not, if not, decrypting the audio head metadata loaded for the first time through the dynamic key and performing cyclic exclusive-or decryption processing by taking bytes as units to obtain the decrypted audio head metadata.
Preferably, the analyzing the decrypted audio header metadata to obtain an audio clip of the audio file to be played, and determining a first position and a second position of the audio clip to be loaded includes:
analyzing the decrypted audio head metadata to obtain the position information of the audio clip behind the audio head metadata;
and determining an audio clip of the audio file to be played according to the playing progress of the user, and determining a first position and a second position of the audio clip to be played in the position information.
Preferably, the method further comprises the following steps:
and re-determining the third position of the audio clip to be loaded according to the playing progress adjusting request of the user, wherein the third position represents the corresponding positioning position of the audio clip to which the playing progress is positioned by the user.
An apparatus for online playing of audio files, comprising:
the acquisition module is used for acquiring an audio link address of an audio file to be played;
the analysis module is used for analyzing the audio link address to obtain a dynamic key of the audio file to be played;
the decryption module is used for decrypting the audio head metadata loaded for the first time through the dynamic key to obtain the decrypted audio head metadata;
the determining module is used for analyzing the decrypted audio head metadata to obtain an audio clip of the audio file to be played and determining a first position and a second position of the audio clip to be loaded;
and the playing module is used for loading the audio file to be played according to the first position and the second position to obtain an audio clip to be played, and decrypting and playing the audio clip to be played.
Preferably, the parsing module includes:
the analysis unit is used for analyzing the audio link address to obtain a coded character string corresponding to the audio link address;
and the key determining unit is used for determining the character string meeting the preset condition in the coded character string as the dynamic key of the audio file to be played, wherein the preset condition comprises the selection of the character string consisting of every two continuous letters and numbers in the coded character string.
Preferably, the decryption module comprises:
the extraction unit is used for extracting and obtaining audio head metadata loaded for the first time in a preset mode according to the audio link address, wherein the preset mode comprises an Ajax mode;
and the decryption unit is used for judging whether the first character of the dynamic key is a preset character or not, and if not, decrypting the audio head metadata loaded for the first time through the dynamic key and performing cyclic exclusive-or decryption processing by taking bytes as units to obtain the decrypted audio head metadata.
Preferably, the determining module comprises:
the metadata analyzing unit is used for analyzing the decrypted audio head metadata to obtain the position information of the audio clip behind the audio head metadata;
and the determining unit is used for determining the audio clip of the audio file to be played according to the playing progress of the user and determining the first position and the second position of the audio clip to be played in the position information.
Preferably, the playing module further comprises:
and the second determining unit is used for re-determining the third position of the audio clip to be loaded according to the playing progress adjusting request of the user, wherein the third position represents the corresponding positioning position of the audio clip to which the playing progress is positioned by the user.
Compared with the prior art, the invention provides the online playing method and the online playing device of the audio file, the dynamic key is obtained by analyzing the audio link address to be played, the encrypted audio head metadata can be decrypted through the dynamic key, then the loading position is determined according to the corresponding audio clip, and the audio clip is played according to the loading position. Therefore, the processes of decrypting, decoding and playing the encrypted audio file on line are realized, the online playing of the paid audio product is realized, and the experience effect of a user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of an online playing method of an audio file according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an online playback device for audio files according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second," and the like in the description and claims of the present invention and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not set forth for a listed step or element but may include steps or elements not listed.
An embodiment of the present invention provides an online playing method for an audio file, and with reference to fig. 1, the method includes:
s11, acquiring an audio link address of the audio file to be played;
s12, analyzing the audio link address to obtain a dynamic key of the audio file to be played;
when a player in a browser on a web page plays an audio file to be played, an audio link address of the audio to be played needs to be acquired first, a file name at the tail of an audio link is usually a 32-bit string after encoding, the 32-bit string corresponds to 16 bytes, each two strings represent a 16-system byte, and the byte is defined as a dynamic key.
S13, decrypting the audio head metadata loaded for the first time through the dynamic key to obtain the decrypted audio head metadata;
each audio file has an original file name when being uploaded, and the server encodes the audio file according to the original file name in an MD5(Message Digest algorithm, fifth version of MD 5) encryption mode, and finally generates a string of characters (the string of characters consists of letters and numbers, and each two consecutive letters or numbers represent a 16-ary system), wherein the string of characters represents both a dynamic key corresponding to the audio file and a file name of an audio link address. Therefore, the audio head metadata loaded for the first time of the audio file to be played can be decrypted through the dynamic key, and the decrypted audio head metadata can be obtained.
S14, analyzing the decrypted audio head metadata to obtain an audio clip of the audio file to be played, and determining a first position and a second position of the audio clip to be loaded;
s15, loading the audio file to be played according to the first position and the second position to obtain an audio clip to be played, and decrypting and playing the audio clip to be played.
When the audio file in this embodiment is in the MP3 format, the audio header metadata is parsed according to the MP3 standard MPEG1-LAYER3 to obtain the audio duration, where the metadata specifications of different audio formats are different, and for the format of MP3 dynamic bitrate, the metadata that are important for the decoder are: total file size, total duration, sync header, MPEG version, bit rate, sample rate, TOC (table of position index of time and audio data, only present in MP3 files with dynamic bitrate). Therefore, in the process of analyzing the audio head metadata, besides the acquired audio duration, information such as TOC and the total file size is also acquired. It should be noted that the audio header metadata is analyzed once only when the audio header data is loaded for the first time, positions of all audio segments thereafter are obtained, and then the audio segments loaded according to the user playing schedule do not include the audio header metadata, and only decryption and playing are required.
The start position and the end position of the audio segment to be loaded, that is, the first position and the second position in this embodiment, are determined by these pieces of information, and then the corresponding audio segment between these two positions is acquired for playing.
The embodiment provides an online playing method of an audio file, which obtains a dynamic key by analyzing an audio link address to be played, and further can decrypt encrypted audio head metadata through the dynamic key, then determines a loading position according to a corresponding audio clip, and plays the audio clip according to the loading position. Therefore, the processes of decrypting, decoding and playing the encrypted audio file on line are realized, the online playing of the paid audio product is realized, and the experience effect of a user is improved.
The embodiment of the invention also provides a method for acquiring the dynamic key, which comprises the following steps:
analyzing the audio link address to obtain a coded character string corresponding to the audio link address;
and determining the character strings meeting preset conditions in the code character strings as the dynamic key of the audio file to be played, wherein the preset conditions comprise that every two continuous character strings consisting of letters and numbers in the code character strings are selected.
Specifically, the file name of the tail of the audio link is an encoded 32-bit string, and the 32-bit string corresponds to 16 bytes, wherein the string is composed of letters and numbers, and each two consecutive letters or numbers represent a 16-ary system, so that the string represents both the dynamic key corresponding to the audio file and the file name of the audio link. And then, a dynamic password can be obtained through the selection of the code character string, namely, a character string consisting of every two continuous letters and numbers in the code character string is selected to correspond to the encryption key.
In another embodiment of the present invention, a method of decrypting audio header data is also included, comprising:
extracting and obtaining audio head metadata loaded for the first time according to the audio link address in a preset mode, wherein the preset mode comprises an Ajax mode;
and judging whether the first character of the dynamic key is a preset character or not, if not, decrypting the audio head metadata loaded for the first time through the dynamic key and performing cyclic exclusive-or decryption processing by taking bytes as units to obtain the decrypted audio head metadata.
The audio files to be played in the embodiment of the invention are all encrypted or audio files with paid copyright. Firstly, analyzing an audio file to be played to obtain corresponding audio head metadata. And then judging whether the first character of the dynamic key is a preset character, if the preset character is 9, judging whether the first character of the dynamic key is 9, if not, decrypting the audio head metadata by using the dynamic key, wherein a specific decryption algorithm can be that the audio head metadata is decrypted by using a 32-bit dynamic key to represent 16 bytes and adopting a cyclic exclusive-or mode by using the bytes as a unit to obtain decrypted audio.
The method for acquiring the audio head metadata comprises the steps of acquiring audio head metadata by adopting a preset mode, wherein the preset mode comprises Ajax (asynchronous JavaScript And XML), namely asynchronous JavaScript And XML, And the preset mode refers to a webpage development technology for creating interactive webpage application based on an http protocol. A technique capable of exchanging data with a server and updating a part of a web page using the acquired data without reloading the entire web page. Of course, a fetch mode can be adopted, the mode is a package of the browser to Ajax, the use is convenient, but the compatibility is not better than that of Ajax. The return type of Ajax is set to arraybuffer. And determining a first position and a second position of the audio clip to be loaded of the decrypted audio according to the audio duration and the index table of the audio clip of the audio file to be played, wherein the first position represents the initial position of the decrypted audio, and the second position represents the end position of the decrypted audio.
The embodiment of the invention also provides an audio position determining method, which comprises the following steps:
analyzing the decrypted audio head metadata to obtain the position information of the audio clip behind the audio head metadata;
and determining an audio clip of the audio file to be played according to the playing progress of the user, and determining a first position and a second position of the audio clip to be played in the position information.
And re-determining the third position of the audio clip to be loaded according to the playing progress adjusting request of the user, wherein the third position represents the corresponding positioning position of the audio clip to which the playing progress is positioned by the user.
In the embodiment of the invention, the Web Audio API is called to decrypt the Audio data, wherein the Web Audio API is a set of JavaScript-based program interfaces capable of operating Audio files on a webpage. The Web Audio API provides a simple and powerful mechanism to implement control over the Audio content of a Web application. It allows you to develop complex mixes, sound effects, panning and more. A simple and classical web Audio workflow is as follows:
constructing an audio context AudioContext object;
constructing sound sources, such as < audio >, oscillotor, stream, within the AudioContext object;
constructing effect nodes such as reverberation, biquad filter, acoustic phase and voltage limiter;
selecting a final audio destination, such as your system speakers;
connecting the source to the effect and the effect to the output terminal.
And calling the Web Audio API to play the currently decoded Audio clip, and when an adjustment request of the user for the playing progress is received in the playing process of the Audio clip, namely the user drags a progress bar of the player, repeating the steps to re-determine the step to be loaded for playing.
In another embodiment of the present invention, because the mobile terminal has a relatively large restriction on the memory, if too much audio data is cached, the browser is likely to be rushed, so the design makes a certain caching policy, and the size of the memory available for the player is limited to 5M, which means that the audio clip data to be played next is cached, and the audio clip data that has been played is deleted in time.
Similarly, in order to cope with a complex network environment, in the embodiment of the present invention, a fault-tolerant process may be added, and if the currently downloaded audio segment data is damaged and decoding fails, part of the data in the header of the audio segment is skipped, and subsequent decoding is attempted until decoding succeeds; if the audio clip data download fails, it is reloaded after the failure.
It should be noted that, in the embodiment of the present invention, after the audio and video to be played is decoded, that is, after the audio and video to be played is decrypted by using the dynamic key, the first position and the second position of the audio segment to be loaded are determined, or the first position and the second position of the audio segment to be loaded are determined, and then the audio segment to be loaded is decrypted. The embodiment of the invention is realized by adopting a web technology, the server encrypts the audio data, and a user can directly play the encrypted audio file in a player at a browser end, so that the experience effect of the user is improved.
For example, assume that there is a 16-ary representation of unencrypted MP3 audio data: '0 xB 20 xEC 0x 400 xD 8', the dynamic key (dynamic key) generated by the server according to the audio original file name is '0 x 120 xA 5' (the generation rule of the dynamic key is to encrypt the original file name by using MD5+ salt), and then the encryption rule is: 0xB2^0x12 ^0xA 0,0xEC ^0xA5 ^0x 49,0x40^0x12 ^0x 52,0xD8^0xA5 ^0x 7D, (each two continuous hexadecimal codes represent one byte, and dynamic key is used for carrying out cyclic exclusive-or operation on MP3 original data in units of bytes), the encrypted data received by the final client is '0 xA 00 x 490 x 520 x 7D', and the client follows the dynamic key transmitted by the server to carry out cyclic exclusive-or operation: 0xA 0x12 ^ 0xB2,0x49^0xA5 ^ 0xEC,0x52^0x12 ^0x 40,0x7D ^0xA5 ^0xA 8, finally obtaining original data '0 xB 20 xEC 0x 400 xD 8', and finally playing the audio data through a browser audio related interface.
Correspondingly, an embodiment of the present invention further provides an online playing apparatus for an audio file, referring to fig. 2, including:
the acquisition module 10 is configured to acquire an audio link address of an audio file to be played;
the analysis module 20 is configured to analyze the audio link address to obtain a dynamic key of the audio file to be played;
the decryption module 30 is configured to decrypt the audio header metadata loaded for the first time through the dynamic key to obtain decrypted audio header metadata;
the determining module 40 is configured to analyze the decrypted audio header metadata to obtain an audio segment of the audio file to be played, and determine a first position and a second position of the audio segment to be loaded;
and the playing module 50 is configured to load the audio file to be played according to the first position and the second position to obtain an audio clip to be played, and decrypt and play the audio clip to be played.
Optionally, the parsing module includes:
the analysis unit is used for analyzing the audio link address to obtain a coded character string corresponding to the audio link address;
and the key determining unit is used for determining the character string meeting the preset condition in the coded character string as the dynamic key of the audio file to be played, wherein the preset condition comprises the selection of the character string consisting of every two continuous letters and numbers in the coded character string.
Optionally, the decryption module includes:
the extraction unit is used for extracting and obtaining audio head metadata loaded for the first time in a preset mode according to the audio link address, wherein the preset mode comprises an Ajax mode;
and the decryption unit is used for judging whether the first character of the dynamic key is a preset character or not, and if not, decrypting the audio head metadata loaded for the first time through the dynamic key and performing cyclic exclusive-or decryption processing by taking bytes as units to obtain the decrypted audio head metadata.
Optionally, the determining module includes:
the metadata analyzing unit is used for analyzing the decrypted audio head metadata to obtain the position information of the audio clip behind the audio head metadata;
and the determining unit is used for determining the audio clip of the audio file to be played according to the playing progress of the user and determining the first position and the second position of the audio clip to be played in the position information.
Optionally, the playing module further includes:
and the second determining unit is used for re-determining the third position of the audio clip to be loaded according to the playing progress adjusting request of the user, wherein the third position represents the corresponding positioning position of the audio clip to which the playing progress is positioned by the user.
The invention provides an online playing device of an audio file, which obtains a dynamic key by analyzing an audio link address to be played, can decrypt encrypted audio head metadata through the dynamic key, determines a loading position according to a corresponding audio clip, and plays the audio clip according to the loading position. Therefore, the processes of decrypting, decoding and playing the encrypted audio file on line are realized, the online playing of the paid audio product is realized, and the experience effect of a user is improved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. An online playing method of an audio file, the method comprising:
acquiring an audio link address of an audio file to be played;
analyzing the audio link address to obtain a dynamic key of the audio file to be played, and analyzing the audio link address to obtain the dynamic key of the audio file to be played, including: analyzing the audio link address to obtain a coded character string corresponding to the audio link address; determining the character strings meeting preset conditions in the coded character strings as the dynamic key of the audio file to be played, wherein the preset conditions comprise that every two continuous character strings consisting of letters and numbers in the coded character strings are selected;
decrypting the audio head metadata loaded for the first time through the dynamic key to obtain the decrypted audio head metadata;
analyzing the decrypted audio head metadata to obtain an audio clip of the audio file to be played, and determining a first position and a second position of the audio clip to be loaded;
and loading the audio file to be played according to the first position and the second position to obtain an audio clip to be played, and decrypting and playing the audio clip to be played.
2. The method of claim 1, wherein decrypting the first-loaded audio header metadata with the dynamic key to obtain decrypted audio header metadata comprises:
extracting and obtaining audio head metadata loaded for the first time according to the audio link address in a preset mode, wherein the preset mode comprises an Ajax mode;
and judging whether the first character of the dynamic key is a preset character or not, if not, decrypting the audio head metadata loaded for the first time through the dynamic key to obtain the decrypted audio head metadata, wherein the decryption comprises carrying out cyclic exclusive-or decryption processing by taking bytes as units.
3. The method of claim 1, wherein parsing the decrypted audio header metadata to obtain an audio clip of the audio file to be played, and determining a first location and a second location of the audio clip to be loaded comprises:
analyzing the decrypted audio head metadata to obtain the position information of the audio clip behind the audio head metadata;
and determining an audio clip of the audio file to be played according to the playing progress of the user, and determining a first position and a second position of the audio clip to be played in the position information.
4. The method of claim 3, further comprising:
and re-determining the third position of the audio clip to be loaded according to the playing progress adjusting request of the user, wherein the third position represents the corresponding positioning position of the audio clip to which the playing progress is positioned by the user.
5. An apparatus for playing an audio file online, comprising:
the acquisition module is used for acquiring an audio link address of an audio file to be played;
the analysis module is used for analyzing the audio link address to obtain a dynamic key of the audio file to be played, and the analysis module comprises: the analysis unit is used for analyzing the audio link address to obtain a coded character string corresponding to the audio link address; the key determining unit is used for determining a character string meeting a preset condition in the coded character string as a dynamic key of the audio file to be played, wherein the preset condition comprises selecting a character string consisting of every two continuous letters and numbers in the coded character string;
the decryption module is used for decrypting the audio head metadata loaded for the first time through the dynamic key to obtain the decrypted audio head metadata;
the determining module is used for analyzing the decrypted audio head metadata to obtain an audio clip of the audio file to be played and determining a first position and a second position of the audio clip to be loaded;
and the playing module is used for loading the audio file to be played according to the first position and the second position to obtain an audio clip to be played, and decrypting and playing the audio clip to be played.
6. The apparatus of claim 5, wherein the decryption module comprises:
the extraction unit is used for extracting and obtaining audio head metadata loaded for the first time in a preset mode according to the audio link address, wherein the preset mode comprises an Ajax mode;
and the decryption unit is used for judging whether the first character of the dynamic key is a preset character or not, if not, decrypting the audio head metadata loaded for the first time through the dynamic key to obtain the decrypted audio head metadata, and the decryption comprises carrying out cyclic exclusive-or decryption processing by taking bytes as units.
7. The apparatus of claim 5, wherein the determining module comprises:
the metadata analyzing unit is used for analyzing the decrypted audio head metadata to obtain the position information of the audio clip behind the audio head metadata;
and the determining unit is used for determining the audio clip of the audio file to be played according to the playing progress of the user and determining the first position and the second position of the audio clip to be played in the position information.
8. The apparatus of claim 7, wherein the play module further comprises:
and the second determining unit is used for re-determining the third position of the audio clip to be loaded according to the playing progress adjusting request of the user, wherein the third position represents the corresponding positioning position of the audio clip to which the playing progress is positioned by the user.
CN201810359649.0A 2018-04-20 2018-04-20 Online playing method and device for audio file Active CN108540481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810359649.0A CN108540481B (en) 2018-04-20 2018-04-20 Online playing method and device for audio file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810359649.0A CN108540481B (en) 2018-04-20 2018-04-20 Online playing method and device for audio file

Publications (2)

Publication Number Publication Date
CN108540481A CN108540481A (en) 2018-09-14
CN108540481B true CN108540481B (en) 2021-03-23

Family

ID=63478381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810359649.0A Active CN108540481B (en) 2018-04-20 2018-04-20 Online playing method and device for audio file

Country Status (1)

Country Link
CN (1) CN108540481B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112543102A (en) * 2019-09-20 2021-03-23 云控蜂核(北京)科技有限公司 Anti-loss and cloud intervention key storage method
CN110688519B (en) 2019-09-30 2022-07-15 腾讯音乐娱乐科技(深圳)有限公司 Method, device, system, equipment and storage medium for playing media data
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
US20060123484A1 (en) * 2004-03-04 2006-06-08 Miodrag Babic Method of clearing and delivering digital rights management licenses to devices connected by IP networks
CN103841469A (en) * 2014-03-19 2014-06-04 国家广播电影电视总局电影数字节目管理中心 Digital film copyright protection method and device
CN104320377A (en) * 2014-09-25 2015-01-28 华为技术有限公司 An anti-stealing-link method and device for stream media file
CN107707504A (en) * 2016-08-08 2018-02-16 中国电信股份有限公司 A kind of player method of Streaming Media, system and server and client side

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534894A (en) * 2016-10-31 2017-03-22 Tcl集团股份有限公司 Encrypted video distribution method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060123484A1 (en) * 2004-03-04 2006-06-08 Miodrag Babic Method of clearing and delivering digital rights management licenses to devices connected by IP networks
CN103841469A (en) * 2014-03-19 2014-06-04 国家广播电影电视总局电影数字节目管理中心 Digital film copyright protection method and device
CN104320377A (en) * 2014-09-25 2015-01-28 华为技术有限公司 An anti-stealing-link method and device for stream media file
CN107707504A (en) * 2016-08-08 2018-02-16 中国电信股份有限公司 A kind of player method of Streaming Media, system and server and client side

Also Published As

Publication number Publication date
CN108540481A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN106331751B (en) A kind of online encrypted slice video broadcasting method based on iOS operating system
CN112822518A (en) Video playing method, device, system, electronic equipment and storage medium
CN108540481B (en) Online playing method and device for audio file
US20070172065A1 (en) Apparatus and method for moving rights object from one device to another device via server
JP2005538453A (en) Content distribution for multiple digital rights management
EP1618478A4 (en) Secure streaming container
US10609430B2 (en) Method and device for processing multimedia file, and storage medium
CN106375834B (en) A kind of offline playback method of online encrypted slice video and device based on iOS operating system
CA2551083A1 (en) Method and system for session based watermarking of encrypted content
KR20110122669A (en) Multiple content protection systems in a file
US20170329986A1 (en) Method and device for processing multimedia file
JP6598044B2 (en) Information processing apparatus and information processing method
WO2012126257A1 (en) Media data processing method and device thereof
CN103414733A (en) HLS (HTTP Live Streaming) streaming media playing method and HLS streaming media playing system
Wang et al. CS-DRM: a cloud-based SIM DRM scheme for mobile internet
CN108989886A (en) A kind of method and system playing encrypted video
CN112153042A (en) Method, system, equipment and medium for preventing downloading of Web end audio online playing
JP2012085240A (en) Service provision system
US8782803B2 (en) System and method of encrypting a derivative work using a cipher created from its source
CN113810781B (en) Video processing method, video processing device, video tracking method, video tracking device and storage medium
KR100849639B1 (en) Method for encoding and decoding moving picture file and recording medium having the method embodied program
KR100704701B1 (en) Method and Apparatus for editing music source using DRM in PC
KR101041261B1 (en) System for providing Digital Rights Management contents, DRM contents generating/playing apparatus and method using CODEC DRM, computer readable recording medium storing program performing the method
CN114501069A (en) HLS-based multimedia playing method, system, device and storage medium
CN111988624A (en) Video processing method, device, equipment and storage medium

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