CN108540481A - A kind of online playback method and device of audio file - Google Patents
A kind of online playback method and device of audio file Download PDFInfo
- Publication number
- CN108540481A CN108540481A CN201810359649.0A CN201810359649A CN108540481A CN 108540481 A CN108540481 A CN 108540481A CN 201810359649 A CN201810359649 A CN 201810359649A CN 108540481 A CN108540481 A CN 108540481A
- Authority
- CN
- China
- Prior art keywords
- audio
- played
- metadata
- fragment
- decrypted
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network 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
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/00086—Circuits for prevention of unauthorised reproduction or copying, e.g. piracy
- G11B20/00731—Circuits for prevention of unauthorised reproduction or copying, e.g. piracy involving a digital rights management system for enforcing a usage restriction
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/00086—Circuits for prevention of unauthorised reproduction or copying, e.g. piracy
- G11B20/00855—Circuits for prevention of unauthorised reproduction or copying, e.g. piracy involving a step of exchanging information with a remote server
- G11B20/00862—Circuits 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2463/00—Additional details relating to network architectures or network communication protocols for network security covered by H04L63/00
- H04L2463/101—Additional details relating to network architectures or network communication protocols for network security covered by H04L63/00 applying security measures for digital rights management
Abstract
The invention discloses the online playback method and device of a kind of audio file, this method includes:Obtain the audio url address of audio file to be played;The audio url address is parsed, the dynamic key of the audio file to be played is obtained;The audio headers metadata loaded for the first time is decrypted by the dynamic key, the audio head metadata after being decrypted;Audio head metadata after the decryption is parsed, obtains the audio fragment of the audio file to be played, and determine the first position and the second position of audio fragment to be loaded;The audio file to be played is loaded according to the first position and the second position to obtain audio fragment to be played, and the audio fragment to be played is decrypted and is played.The present invention is based on the online broadcastings to audio product of paying, and realize the purpose for promoting user experience effect.
Description
Technical field
The present invention relates to Audiotechnica fields, more particularly to the online playback method and device of a kind of audio file.
Background technology
There are more and more payment audio products in recent years, the development for product of paying along with knowledge.In order to carry
The market share of high payment audio product needs to promote the experience effect of payment audio product, could guide user's use or purchase
Buy payment audio product.
It, generally cannot be in order to protect the copyright of payment audio product in audio player in existing browser
The payment audio product is played in audio player in browser, the meeting also having guides user to go to download correspondence in a browser
Software carry out the broadcasting of the payment audio product, such that user is poor to the experience effect for audio product of paying.
Invention content
It is directed to the above problem, the present invention provides a kind of online playback method and device of audio file, based on to payment
The online broadcasting of audio product realizes the purpose for promoting user experience effect.
To achieve the goals above, the present invention provides following technical solutions:
A kind of online playback method of audio file, this method include:
Obtain the audio url address of audio file to be played;
The audio url address is parsed, the dynamic key of the audio file to be played is obtained;
The audio headers metadata loaded for the first time is decrypted by the dynamic key, the audio head after being decrypted
Metadata;
Audio head metadata after the decryption is parsed, the audio fragment of the audio file to be played is obtained,
And determine the first position and the second position of audio fragment to be loaded;
The audio file to be played is loaded to obtain according to the first position and the second position to be played
Audio fragment, and the audio fragment to be played is decrypted and is played.
Preferably, described to be parsed to the audio url address, the dynamic for obtaining the audio file to be played is close
Key, including:
The audio url address is parsed, coded string corresponding with the audio url address is obtained;
The character string for meeting preset condition in the coded string is determined as to the dynamic of the audio file to be played
Key, wherein the preset condition includes choosing the word of the continuous letter and number composition of each two in the coded string
Symbol string.
Preferably, described that the audio headers metadata loaded for the first time is decrypted by the dynamic key, it is solved
Audio head metadata after close, including:
Using predetermined manner according to the audio url address, the audio headers metadata loaded for the first time is extracted,
In, the predetermined manner includes Ajax modes;
Judge whether the first character of the dynamic key is preset characters, if it is not, then passing through the dynamic key
The audio headers metadata loaded for the first time is decrypted as unit of byte and carries out cycle exclusive or decryption processing, is solved
Audio metadata after close.
Preferably, the audio head metadata to after the decryption parses, and obtains the audio file to be played
Audio fragment, and determine audio fragment to be loaded first position and the second position, including:
Audio metadata after the decryption is parsed, the position of the audio fragment after the audio metadata is obtained
Confidence ceases;
The audio fragment of audio file to be played is determined according to the playing progress rate of user, and is determined in the location information
The first position and the second position of the audio fragment to be played.
Preferably, further include:
According to the playing progress rate adjust request of user, the third place of the audio fragment to be loaded is redefined,
In, the third place characterizes the corresponding position location that playing progress rate is positioned audio fragment extremely by the user.
A kind of online playing device of audio file, including:
Acquisition module, the audio url address for obtaining audio file to be played;
Parsing module obtains the dynamic of the audio file to be played for being parsed to the audio url address
Key;
Deciphering module is obtained for the audio headers metadata loaded for the first time to be decrypted by the dynamic key
Audio head metadata after decryption;
Determining module obtains the audio text to be played for being parsed to the audio head metadata after the decryption
The audio fragment of part, and determine the first position and the second position of audio fragment to be loaded;
Playing module, for being added to the audio file to be played according to the first position and the second position
Load obtains audio fragment to be played, and the audio fragment to be played is decrypted and is played.
Preferably, the parsing module includes:
Resolution unit obtains corresponding with the audio url address for being parsed to the audio url address
Coded string;
Key determination unit, for the character string for meeting preset condition in the coded string to be determined as described waiting broadcasting
The dynamic key of playback frequency file, wherein the preset condition includes choosing the continuous word of each two in the coded string
Female and number composition character string.
Preferably, the deciphering module includes:
Extraction unit, for, according to the audio url address, extracting the audio loaded for the first time using predetermined manner
Head metadata, wherein the predetermined manner includes Ajax modes;
Decryption unit, for judging whether the first character of the dynamic key is preset characters, if it is not, then passing through
The audio headers metadata loaded for the first time, which is decrypted as unit of byte, in the dynamic key carries out cycle exclusive or solution
Close processing, the audio metadata after being decrypted.
Preferably, the determining module includes:
Metadata resolution unit obtains the audio member number for being parsed to the audio metadata after the decryption
According to the location information of audio fragment later;
Determination unit, the audio fragment for determining audio file to be played according to the playing progress rate of user, and described
The first position and the second position of the audio fragment to be played are determined in location information.
Preferably, the playing module further includes:
Second determination unit redefines the audio to be loaded for the playing progress rate adjust request according to user
The third place of segment, wherein the third place characterizes the correspondence that playing progress rate is positioned audio fragment extremely by the user
Position location.
Compared to the prior art, the present invention provides the online playback methods and device of a kind of audio file, by treating
The audio url address of broadcasting carries out parsing and obtains dynamic key, and then can be to encrypted audio head by the dynamic key
Portion's metadata is decrypted, and loading position then is determined according to corresponding audio fragment, according to loading position to audio fragment
It plays out.To realize the process that encrypted audio file is decrypted, decodes and is played online, it is achieved that tackling
The online broadcasting for taking audio product, improves the experience effect of user.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow diagram of the online playback method of audio file provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of the online playing device of audio file provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Term " first " and " second " in description and claims of this specification and above-mentioned attached drawing etc. are to be used for area
Not different objects, rather than for describing specific sequence.In addition term " comprising " and " having " and their any deformations,
It is intended to cover and non-exclusive includes.Such as it contains the process of series of steps or unit, method, system, product or sets
It is standby not to be set in the step of having listed or unit, but the step of may include not listing or unit.
A kind of online playback method of audio file is provided in embodiments of the present invention, referring to Fig. 1, including:
S11, the audio url address for obtaining audio file to be played;
S12, the audio url address is parsed, obtains the dynamic key of the audio file to be played;
When player in the browser on webpage carries out the broadcasting of audio file to be played, it is necessary first to obtain
To the audio url address of the audio to be played, 32 character strings after the entitled coding of file of usual audio url tail portion, 32
Position character string corresponds to 16 bytes, and wherein each two character string represents the byte of 16 systems, and it is close to be defined as dynamic
Key.
S13, the audio headers metadata loaded for the first time is decrypted by the dynamic key, the sound after being decrypted
Frequency head metadata;
Each audio file can there are one original filenames, server to be made according to this raw filename when uploading
It is encoded with MD5 (Message Digest Algorithm MD5, Message Digest Algorithm 5) encrypted mode,
Ultimately generating a string of character strings, (character string is made of letter and number, does not have two contiguous alphabets or digital representation one 16
System), this character string had both illustrated the corresponding dynamic key of the audio file, showed also the file of audio url address
Name.Therefore, the audio headers metadata of audio file to be played loaded for the first time can be decrypted by the dynamic key,
Audio head metadata after being decrypted.
S14, the audio head metadata after the decryption is parsed, obtains the audio piece of the audio file to be played
Section, and determine the first position and the second position of audio fragment to be loaded;
S15, the audio file to be played is loaded according to the first position and the second position and is waited for
Audio fragment is played, and the audio fragment to be played is decrypted and is played.
When the audio file in the present embodiment is MP3 format, audio member number is parsed according to MP3 standards MPEG1-LAYER3
According to getting audio duration, wherein its metadata specification of different audio formats is different, comes with regard to the format of MP3 dynamic code rates
It says, the metadata important to decoder has:File total size, total duration, synchronous head, MPEG versions, bit rate, sampling
Rate, TOC (the location index table of time and audio data, exist only in the mp3 file of dynamic code rate).Therefore to audio member
During data parsing the information such as TOC and file total size are had also obtained in addition to having got audio duration.It needs to illustrate
It is that parsing is primary when audio metadata only needs to load audio headers data for the first time, will obtain all audio pieces thereafter
The position of section does not then include audio metadata, it is only necessary to decrypt and carry out according to the audio fragment of user's playing progress rate load
Broadcasting.
Initial position and final position i.e. the present embodiment of audio fragment to be loaded are determined by these information
In first position and the second position, corresponding audio fragment plays out between then getting the two positions.
A kind of online playback method of audio file is provided in the present embodiment, by audio url address to be played
It carries out parsing and obtains dynamic key, and then encrypted audio headers metadata can be decrypted by the dynamic key,
Then loading position is determined according to corresponding audio fragment, audio fragment is played out according to loading position.To realize
The process that encrypted audio file is decrypted, decoded and played online, it is achieved that the online of payment audio product
It plays, improves the experience effect of user.
A kind of method obtaining dynamic key is additionally provided in embodiments of the present invention, including:
The audio url address is parsed, coded string corresponding with the audio url address is obtained;
The character string for meeting preset condition in the coded string is determined as to the dynamic of the audio file to be played
Key, wherein the preset condition includes choosing the word of the continuous letter and number composition of each two in the coded string
Symbol string.
Specifically, 32 character strings after the entitled coding of the file of audio url tail portion, 32 character strings correspond to 16
Byte, wherein the character string is made of letter and number, the continuous letter of each two or one 16 system of digital representation, because
This, which had both illustrated the corresponding dynamic key of the audio file, showed also the filename of the audio url.And then it can
To choose to obtain dynamic password by the coded string, that is, choose the continuous letter and number of each two in the coded string
The character string of composition, it is corresponding with encryption key.
A kind of method of decrypted audio header data is further comprised in another embodiment of the invention, including:
Using predetermined manner according to the audio url address, the audio headers metadata loaded for the first time is extracted,
In, the predetermined manner includes Ajax modes;
Judge whether the first character of the dynamic key is preset characters, if it is not, then passing through the dynamic key
The audio headers metadata loaded for the first time is decrypted as unit of byte and carries out cycle exclusive or decryption processing, is solved
Audio metadata after close.
Audio file to be played in embodiments of the present invention is audio file encrypted or with payment copyright.
Audio file to be played is parsed first, obtains corresponding audio metadata.Then judge first of dynamic key
Whether character is preset characters, it is assumed that preset characters 9 will then judge whether the first character of the dynamic key is 9, if
It is no, then audio metadata is decrypted using the dynamic key, specific decipherment algorithm can be to use 32 dynamic key
It represents 16 bytes audio metadata is decrypted by the way of recycling exclusive or as unit of byte, obtains decryption sound
Frequently.
Wherein, it obtains audio metadata and uses predetermined manner acquisition, which includes Ajax
(Asynchronous Javascript And XML) i.e. asynchronous JavaScript and XML refers to a kind of based on http agreements
Create the web development technologies of interaction network page application.It can be without reloading entire webpage, with server
Data are exchanged, and use the technology of the data update part webpage obtained.It can certainly be carried out using fetch modes, the party
Formula is a kind of encapsulation of the browser to Ajax, and use is more convenient, but its compatibility is more preferable not as good as Ajax.The return class of Ajax
Type is set as arraybuffer.And according to the concordance list of the audio duration and the audio fragment of the audio file to be played,
Determine the first position and the second position of the audio fragment to be loaded of the decrypted audio, wherein the first position characterization
The initial position of the decrypted audio, the second position characterize the final position of the decrypted audio.
The embodiment of the present invention additionally provides a kind of audio position and determines method, including:
Audio metadata after the decryption is parsed, the position of the audio fragment after the audio metadata is obtained
Confidence ceases;
The audio fragment of audio file to be played is determined according to the playing progress rate of user, and is determined in the location information
The first position and the second position of the audio fragment to be played.
According to the playing progress rate adjust request of user, the third place of the audio fragment to be loaded is redefined,
In, the third place characterizes the corresponding position location that playing progress rate is positioned audio fragment extremely by the user.
Call Web Audio API that audio data is decrypted in embodiments of the present invention, wherein Web Audio
API be it is a set of based on JavaScript can be in the routine interface of web page operation audio file.Web Audio API are provided
One simple powerful mechanism realizes the audio content of control weblication.It allows you to develop complicated audio mixing, sound
Effect translates and more.The workflow of one simple classical web Audio is as follows:
Build audio context AudioContext objects;
In AudioContext objects, source of sound is built, such as<audio>, oscillator, stream;
Build effect node effectNode, such as reverberation, biquadratic filter, sound phase, compressor;
Select final audio destination, such as your system speaker;
Connection source is to effect, effect to outlet terminal.
Web Audio API are called to play current decoded audio fragment, if being received during audio clip plays
User the adjust request of playing progress rate, that is, user is dragged player progress bar can repeat the above steps redefine it is to be added
Step is carried to play out.
In another embodiment of the invention, since mobile terminal is bigger to the limitation of memory, if cached excessively
Audio data has and agrees to cause running quickly for browser to burst very much, therefore the design has done certain cache policy, and limiting player can
Memory size is 5M, refers to the caching audio clip data next to be played, the audio clip data meeting to having played
It deletes in time.
Equally, in order to cope with complicated network environment, fault-tolerant processing can be increased in the embodiment of the present invention, if currently
The audio clip data of download is damaged and decodes failure, then can skip the partial data on audio fragment head, attempts to connect solution
Code, until successfully decoded;If audio clip data failed download can reload after the failure.
It should be noted that first dynamic namely can be used to audio frequency and video to be played decoding in embodiments of the present invention
It after key is decrypted, then determines the first position and the second position of audio fragment to be loaded, can also first determine to be loaded
The first position and the second position of audio fragment, are then again decrypted the audio fragment that need to be loaded.The reality of the present invention
It applies in example and is realized using web technology, audio data is encrypted in server, and user can be directly in the player of browser end
Encrypted audio file is played, the experience effect of user is improved.
It illustrates, it is assumed that there are 16 systems of the MP3 audio datas of one section of unencryption to be expressed as:‘0xB2 0xEC 0x40
0xD8 ', server-side are that ' 0x12 0xA5 ' be (dynamic key's according to the dynamic key (dynamic key) that audio raw filename generates
Create-rule is to encrypt original document title using MD5+salt), then its encryption rule is:0xB2^0x12=0xA0,0xEC^
0xA5=0x49,0x40^0x12=0x52,0xD8^0xA5=0x7D, (the continuous hexadecimal code of each two represents one
Byte carries out MP3 initial data using dynamic key the cycle xor operation as unit of byte), End-Customer termination receives
Encryption data be ' 0xA0 0x49 0x52 0x7D ', client follow-up service device be transmitted through come dynamic key carry out recycling again it is different
Or operation:0xA^0x12=0xB2,0x49^0xA5=0xEC, 0x52^0x12=0x40,0x7D^0xA5=0xD8, final
To initial data, ' 0xB2 0xEC 0x40 0xD8 ', broadcast audio data finally by the relevant interface of browser audio
It puts.
It is corresponding, a kind of online playing device of audio file is additionally provided in embodiments of the present invention, referring to Fig. 2, packet
It includes:
Acquisition module 10, the audio url address for obtaining audio file to be played;
Parsing module 20 obtains the dynamic of the audio file to be played for being parsed to the audio url address
State key;
Deciphering module 30 is obtained for the audio headers metadata loaded for the first time to be decrypted by the dynamic key
Audio head metadata after to decryption;
Determining module 40 obtains the audio to be played for being parsed to the audio head metadata after the decryption
The audio fragment of file, and determine the first position and the second position of audio fragment to be loaded;
Playing module 50, for being carried out to the audio file to be played according to the first position and the second position
Load obtains audio fragment to be played, and the audio fragment to be played is decrypted and is played.
Optionally, the parsing module includes:
Resolution unit obtains corresponding with the audio url address for being parsed to the audio url address
Coded string;
Key determination unit, for the character string for meeting preset condition in the coded string to be determined as described waiting broadcasting
The dynamic key of playback frequency file, wherein the preset condition includes choosing the continuous word of each two in the coded string
Female and number composition character string.
Optionally, the deciphering module includes:
Extraction unit, for, according to the audio url address, extracting the audio loaded for the first time using predetermined manner
Head metadata, wherein the predetermined manner includes Ajax modes;
Decryption unit, for judging whether the first character of the dynamic key is preset characters, if it is not, then passing through
The audio headers metadata loaded for the first time, which is decrypted as unit of byte, in the dynamic key carries out cycle exclusive or solution
Close processing, the audio metadata after being decrypted.
Optionally, the determining module includes:
Metadata resolution unit obtains the audio member number for being parsed to the audio metadata after the decryption
According to the location information of audio fragment later;
Determination unit, the audio fragment for determining audio file to be played according to the playing progress rate of user, and described
The first position and the second position of the audio fragment to be played are determined in location information.
Optionally, the playing module further includes:
Second determination unit redefines the audio to be loaded for the playing progress rate adjust request according to user
The third place of segment, wherein the third place characterizes the correspondence that playing progress rate is positioned audio fragment extremely by the user
Position location.
The present invention provides a kind of online playing devices of audio file, by audio url address progress to be played
Parsing obtains dynamic key, and then encrypted audio headers metadata can be decrypted by the dynamic key, then
Loading position is determined according to corresponding audio fragment, audio fragment is played out according to loading position.It is online to realize
To the process that encrypted audio file is decrypted, decodes and plays, it is achieved that the online broadcasting to audio product of paying,
Improve the experience effect of user.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other
The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment
For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is said referring to method part
It is bright.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest range caused.
Claims (10)
1. a kind of online playback method of audio file, which is characterized in that this method includes:
Obtain the audio url address of audio file to be played;
The audio url address is parsed, the dynamic key of the audio file to be played is obtained;
The audio headers metadata loaded for the first time is decrypted by the dynamic key, the audio head member number after being decrypted
According to;
Audio head metadata after the decryption is parsed, obtains the audio fragment of the audio file to be played, and really
The first position and the second position of fixed audio fragment to be loaded;
The audio file to be played is loaded to obtain audio to be played according to the first position and the second position
Segment, and the audio fragment to be played is decrypted and is played.
2. according to the method described in claim 1, it is characterized in that, described parse the audio url address, obtain
The dynamic key of the audio file to be played, including:
The audio url address is parsed, coded string corresponding with the audio url address is obtained;
The character string for meeting preset condition in the coded string is determined as to the dynamic key of the audio file to be played,
Wherein, the preset condition includes choosing the character string of the continuous letter and number composition of each two in the coded string.
3. according to the method described in claim 1, it is characterized in that, it is described by the dynamic key to the audio that loads for the first time
Head metadata is decrypted, the audio head metadata after being decrypted, including:
Using predetermined manner according to the audio url address, the audio headers metadata loaded for the first time is extracted, wherein institute
It includes Ajax modes to state predetermined manner;
Judge whether the first character of the dynamic key is preset characters, if it is not, then by the dynamic key to institute
State the audio headers metadata loaded for the first time be decrypted as unit of byte carry out cycle exclusive or decryption processing, after obtaining decryption
Audio metadata.
4. according to the method described in claim 1, it is characterized in that, the audio head metadata to after the decryption solves
Analysis obtains the audio fragment of the audio file to be played, and determines first position and the second of audio fragment to be loaded
It sets, including:
Audio metadata after the decryption is parsed, the position letter of the audio fragment after the audio metadata is obtained
Breath;
The audio fragment of audio file to be played is determined according to the playing progress rate of user, and in the location information described in determination
The first position and the second position of audio fragment to be played.
5. according to the method described in claim 4, it is characterized in that, further including:
According to the playing progress rate adjust request of user, the third place of the audio fragment to be loaded is redefined, wherein institute
It states the third place and characterizes the corresponding position location that playing progress rate is positioned audio fragment extremely by the user.
6. a kind of online playing device of audio file, which is characterized in that including:
Acquisition module, the audio url address for obtaining audio file to be played;
Parsing module obtains the dynamic key of the audio file to be played for being parsed to the audio url address;
Deciphering module is decrypted for the audio headers metadata loaded for the first time to be decrypted by the dynamic key
Audio head metadata afterwards;
Determining module obtains the audio file to be played for being parsed to the audio head metadata after the decryption
Audio fragment, and determine the first position and the second position of audio fragment to be loaded;
Playing module, for the audio file to be played load according to the first position and the second position
It is decrypted and plays to audio fragment to be played, and to the audio fragment to be played.
7. device according to claim 6, which is characterized in that the parsing module includes:
Resolution unit obtains coding corresponding with the audio url address for being parsed to the audio url address
Character string;
Key determination unit, for the character string for meeting preset condition in the coded string to be determined as the sound to be played
The dynamic key of frequency file, wherein the preset condition include choose the continuous letter of each two in the coded string and
The character string of number composition.
8. device according to claim 6, which is characterized in that the deciphering module includes:
Extraction unit, for, according to the audio url address, extracting the audio headers loaded for the first time using predetermined manner
Metadata, wherein the predetermined manner includes Ajax modes;
Decryption unit, for judging whether the first character of the dynamic key is preset characters, if it is not, then by described
The audio headers metadata loaded for the first time, which is decrypted as unit of byte, in dynamic key carries out at cycle exclusive or decryption
Reason, the audio metadata after being decrypted.
9. device according to claim 6, which is characterized in that the determining module includes:
Metadata resolution unit, for being parsed to the audio metadata after the decryption, obtain the audio metadata it
The location information of audio fragment afterwards;
Determination unit, the audio fragment for determining audio file to be played according to the playing progress rate of user, and in the position
The first position and the second position of the audio fragment to be played are determined in information.
10. device according to claim 9, which is characterized in that the playing module further includes:
Second determination unit redefines the audio fragment to be loaded for the playing progress rate adjust request according to user
The third place, wherein the third place characterizes the user and playing progress rate is positioned the corresponding fixed of audio fragment extremely
Position position.
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 true CN108540481A (en) | 2018-09-14 |
CN108540481B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110688519A (en) * | 2019-09-30 | 2020-01-14 | 腾讯音乐娱乐科技(深圳)有限公司 | Method, device, system, equipment and storage medium for playing media data |
CN112543102A (en) * | 2019-09-20 | 2021-03-23 | 云控蜂核(北京)科技有限公司 | Anti-loss and cloud intervention key storage method |
CN116226890A (en) * | 2023-05-05 | 2023-06-06 | 北京华阅嘉诚科技发展有限公司 | Audio file processing method and device, electronic equipment and storage medium |
Citations (5)
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 |
CN106534894A (en) * | 2016-10-31 | 2017-03-22 | Tcl集团股份有限公司 | Encrypted video distribution method and system |
CN107707504A (en) * | 2016-08-08 | 2018-02-16 | 中国电信股份有限公司 | A kind of player method of Streaming Media, system and server and client side |
-
2018
- 2018-04-20 CN CN201810359649.0A patent/CN108540481B/en active Active
Patent Citations (5)
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 |
CN106534894A (en) * | 2016-10-31 | 2017-03-22 | Tcl集团股份有限公司 | Encrypted video distribution method and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112543102A (en) * | 2019-09-20 | 2021-03-23 | 云控蜂核(北京)科技有限公司 | Anti-loss and cloud intervention key storage method |
CN110688519A (en) * | 2019-09-30 | 2020-01-14 | 腾讯音乐娱乐科技(深圳)有限公司 | Method, device, system, equipment and storage medium for playing media data |
CN110688519B (en) * | 2019-09-30 | 2022-07-15 | 腾讯音乐娱乐科技(深圳)有限公司 | Method, device, system, equipment and storage medium for playing media data |
US11917239B2 (en) | 2019-09-30 | 2024-02-27 | Tencent Music Entertainment Technology (Shenzhen) Co., Ltd. | Method, apparatus and system for playing media data, and device and storage medium |
CN116226890A (en) * | 2023-05-05 | 2023-06-06 | 北京华阅嘉诚科技发展有限公司 | Audio file processing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108540481B (en) | 2021-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101120796B1 (en) | Session description message extensions | |
CN102308547B (en) | Method for streaming multimedia data over a non-streaming protocol | |
TWI451279B (en) | Content access control for real-time or near real-time streaming | |
US6487663B1 (en) | System and method for regulating the transmission of media data | |
TWI461043B (en) | Playlists for real-time or near real-time streaming | |
TWI610562B (en) | Real-time or near real-time streaming | |
CN106331751B (en) | A kind of online encrypted slice video broadcasting method based on iOS operating system | |
TW201210324A (en) | Real-time or near real-time streaming | |
US6934837B1 (en) | System and method for regulating the transmission of media data | |
CN108540481A (en) | A kind of online playback method and device of audio file | |
JP3902148B2 (en) | Secure IP-based streaming | |
EP2420952A2 (en) | System and method for protecting digital media content | |
CN108124202A (en) | A kind of method that streaming media server is made to support HLS protocol | |
WO2022057469A1 (en) | Method and system for online playback and downloading prevention of web client audio, device, and medium | |
CN106375873A (en) | HLS video file downloading, storing and playing method | |
CN105245939A (en) | Mobile streaming media offline caching system based on HTTP proxy and method | |
WO2012126257A1 (en) | Media data processing method and device thereof | |
CN106209896B (en) | Streaming media encryption method and module based on audio and video formats | |
US20070083608A1 (en) | Delivering a data stream with instructions for playback | |
CN108400987A (en) | A kind of audio play in address protection strategy | |
KR101481380B1 (en) | Mobile terminal and method for playing HTML(Hyper Text Markup Language) contents | |
US20040141495A1 (en) | Method for recognizing audio-visual data in transmission networks, in particular internet | |
KR20020081842A (en) | system for charging for multimedia streaming service and guaranteeing security of the service and the method thereof | |
CN117812388A (en) | Web playing method and web player supporting HEVC decoding | |
KR20030042486A (en) | Multimedia contents download service method |
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 |