CN109358833A - A kind of audio frequency playing method and system, a kind of calculating equipment and storage medium - Google Patents

A kind of audio frequency playing method and system, a kind of calculating equipment and storage medium Download PDF

Info

Publication number
CN109358833A
CN109358833A CN201811205189.2A CN201811205189A CN109358833A CN 109358833 A CN109358833 A CN 109358833A CN 201811205189 A CN201811205189 A CN 201811205189A CN 109358833 A CN109358833 A CN 109358833A
Authority
CN
China
Prior art keywords
audio
frequency
plays
module
information
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
Application number
CN201811205189.2A
Other languages
Chinese (zh)
Other versions
CN109358833B (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.)
Ant Fortune Shanghai Financial Information Service Co ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811205189.2A priority Critical patent/CN109358833B/en
Publication of CN109358833A publication Critical patent/CN109358833A/en
Application granted granted Critical
Publication of CN109358833B publication Critical patent/CN109358833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Abstract

This application provides a kind of audio frequency playing method and systems, a kind of calculating equipment and storage medium, wherein the method includes playing object to audio player module interface audio by page alternation of bed;Audio broadcasting object is passed into primary process layer by calling layer;The primary process layer plays object according to the audio and obtains and handle audio-frequency information, and the audio-frequency information passes to the audio player module by treated;According to treated, the audio-frequency information plays the corresponding audio file of the audio-frequency information to the audio player module.

Description

A kind of audio frequency playing method and system, a kind of calculating equipment and storage medium
Technical field
This application involves audio play-back technology field, in particular to a kind of audio frequency playing method and system, a kind of calculating are set Standby and storage medium.
Background technique
It such as obtains now, Himalaya application program is released one after another towards public audio programs, this by audio The usage mode of low cost encourages consumer to learn using chip time.Alipay is consumed as a offer, finance is managed The App of the functions such as wealth, life tool can not only allow user if the service of audio programs can be experienced in Alipay App It acquires, also can be the related services water conservancy diversion such as financing, insurance, form closed loop.
The version iteration of the App software such as Alipay has the fixed period, and the son application in App generally has the iteration of oneself Period, so not depend on the iteration time of the App such as Alipay as far as possible;Part audio programs need to play after buying, In order to improve the safety of audio, pre-processing can be carried out to audio.After viewer's payment, audio can be located again Reason, can just obtain the audio for being suitble to broadcasting, and the overlong time that existing audio software is reprocessed influences user experience effect.
Summary of the invention
In view of this, this specification embodiment provides a kind of audio frequency playing method and system, a kind of calculating equipment and deposits Storage media, to solve technological deficiency existing in the prior art.
In a first aspect, this specification embodiment discloses a kind of audio frequency playing method, comprising:
Object is played to audio player module interface audio by page alternation of bed;
Audio broadcasting object is passed into primary process layer by calling layer;
The primary process layer plays object according to the audio and obtains and handle audio-frequency information, and will be described in treated Audio-frequency information passes to the audio player module;
According to treated, the audio-frequency information plays the corresponding audio text of the audio-frequency information to the audio player module Part.
Second aspect, this specification embodiment disclose a kind of audio frequency broadcast system, including page interaction end, calling mould Block, primary processing module,
The page interaction end is equipped with audio player module, and the page interaction end is to the audio player module interface Audio is received to play object and audio broadcasting object is passed to primary processing module by calling module;
The primary processing module plays object according to audio and obtains and handle audio-frequency information, and general's treated sound Frequency information passes to audio player module;
According to treated, the audio-frequency information plays the corresponding audio text of be audio-frequency information to the audio player module Part.
The third aspect, this specification embodiment disclose a kind of calculating equipment, including memory, processor and are stored in On reservoir and the computer instruction that can run on a processor, the processor realize that the instruction is processed when executing described instruction The step of audio frequency playing method the method is realized when device executes.
Fourth aspect, this specification embodiment disclose a kind of computer readable storage medium, are stored with computer and refer to The step of enabling, audio frequency playing method the method realized when which is executed by processor.
A kind of audio frequency playing method and system, a kind of calculating equipment and storage medium that this specification provides, by using It mixes mobile application mode and realizes that audio plays, page alternation of bed has the advantages that version iteration is fireballing, primary process layer tool Have the advantages that decryption, amendment audio broadcasting object velocity are fast.Audio before being reprocessed by page alternation of bed plays object, It plays object according to audio by primary process layer and the audio-frequency informations such as is downloaded, decrypts, corrects, stores and handle to obtain and be suitble to broadcast The audio-frequency information put has been provided simultaneously with the advantage that reprocessing speed is fast and iteration speed is fast.
Detailed description of the invention
Fig. 1 is a kind of block schematic illustration for calculating equipment that one embodiment of this specification provides;
Fig. 2 is a kind of flow chart for audio frequency playing method that one embodiment of this specification provides;
Fig. 3 is a kind of flow chart for audio frequency playing method that one embodiment of this specification provides;
Fig. 4 is a kind of process flow diagram of the IOS system for audio frequency playing method that one embodiment of this specification provides;
Fig. 5 is a kind of process flow diagram of the android system for audio frequency playing method that one embodiment of this specification provides;
Fig. 6 is a kind of structural schematic diagram for audio frequency broadcast system that one embodiment of this specification provides;
Fig. 7 is a kind of structural schematic diagram for audio frequency broadcast system that one embodiment of this specification provides.
Specific embodiment
Many details are explained in the following description in order to fully understand the application.But the application can be with Much it is different from other way described herein to implement, those skilled in the art can be without prejudice to the application intension the case where Under do similar popularization, therefore the application is not limited by following public specific implementation.
The term used in this specification one or more embodiment be only merely for for the purpose of describing particular embodiments, It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and appended claims The "an" of singular used in book, " described " and "the" are also intended to including most forms, unless context is clearly Indicate other meanings.It is also understood that term "and/or" used in this specification one or more embodiment refers to and includes One or more associated any or all of project listed may combine.
It will be appreciated that though may be retouched using term first, second etc. in this specification one or more embodiment Various information are stated, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other It opens.For example, first can also be referred to as second, class in the case where not departing from this specification one or more scope of embodiments As, second can also be referred to as first.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... " or " in response to determination ".
Firstly, the vocabulary of terms being related to one or more embodiments of the invention explains.
Native technology: the application on the ios device of Objective-C language development is adapted to, or uses Java language Application in the Android device of exploitation.
Web application: it is developed using HTML and JavaScript, the application that can be used in a browser.
Mix mobile application: between Native application Web application between application, while use Native technology and HTML5 technology, is developed using Objective-C, Java, HTML and JavaScript language.
Audio: the digital audio file that can be handled by computer or mobile device, common format includes mp3, wma Deng.
HTML5 technology: referring to front end development technique, including but not limited to HTML, Css, JavaScript, clear for developing The webpage look in device.
JSBrigde: the middle layer communicated before processing HTML5 technology and Native technology, usually in mixing mobile application Middle use.
In the present specification, a kind of audio frequency playing method and system are provided, is carried out one by one in the following embodiments detailed It describes in detail bright.
Fig. 1 is to show the structural block diagram of the calculating equipment 100 according to one embodiment of this specification.The calculating equipment 100 Component include but is not limited to memory 110 and processor 120.Processor 120 is connected with memory 110 by bus 130, Database 150 is for saving data.
Calculating equipment 100 further includes access device 140, access device 140 enable calculate equipment 100 via one or Multiple networks 160 communicate.The example of these networks includes public switched telephone network (PSTN), local area network (LAN), wide area network (WAN), the combination of the communication network of personal area network (PAN) or such as internet.Access device 140 may include wired or wireless One or more of any kind of network interface (for example, network interface card (NIC)), such as IEEE802.11 wireless local area Net (WLAN) wireless interface, worldwide interoperability for microwave accesses (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) connect Mouth, cellular network interface, blue tooth interface, near-field communication (NFC) interface, etc..
In one embodiment of this specification, unshowned other component in above-mentioned and Fig. 1 of equipment 100 is calculated It can be connected to each other, such as pass through bus.It should be appreciated that calculating device structure block diagram shown in FIG. 1 is merely for the sake of example Purpose, rather than the limitation to this specification range.Those skilled in the art can according to need, and increase or replace other portions Part.
Calculating equipment 100 can be any kind of static or mobile computing device, including mobile computer or mobile meter Calculate equipment (for example, tablet computer, personal digital assistant, laptop computer, notebook computer, net book etc.), movement Phone (for example, smart phone), wearable calculating equipment (for example, smartwatch, intelligent glasses etc.) or other kinds of shifting Dynamic equipment, or the static calculating equipment of such as desktop computer or PC.Calculating equipment 100 can also be mobile or state type Server.
Wherein, processor 120 can execute the step in method shown in Fig. 2.Fig. 2 is to show to be implemented according to the application one The schematic flow chart of the audio frequency playing method of example, including step 202 is to step 208.
Step 202: object is played to audio player module interface audio by page alternation of bed;
In this specification one or more embodiment, page alternation of bed include but is not limited to be based on HTML5 technological development and Integrated cross-system application platform, the platform are equipped with UI Quick Development Framework, primary process layer calling interface etc., preset audio Broadcast interface template and audio player module provide more set application templates, can make the mobile application of developer's rapid build oneself, The page alternation of bed has the application functions such as two dimensional code payment, video playing.And page alternation of bed is also provided with audio Player module, audio broadcast interface.
Page alternation of bed plays object by audio player module interface audio, and it includes that audio is broadcast that audio, which plays object, Put web page address.
In order to improve the safety of audio file, pre-processing can be carried out to audio file, such as audio file is carried out The processing such as encryption, therefore audio file needs to play after buying or could play in specified application.
Step 204: audio broadcasting object is passed to by primary process layer by calling layer.
In this specification one or more embodiment, page alternation of bed is equipped with calling layer calling interface, and calling layer can be used Audio play instruction is passed into primary process layer.Calling layer can call the preset interface of primary process layer to realize page alternation of bed Information transmitting between primary process layer.
Step 206: primary process layer plays object according to audio and obtains and handle audio-frequency information, and will be described in treated Audio-frequency information passes to the audio player module.
In this specification one or more embodiment, primary process layer be it is a kind of according to audio play object be downloaded, Processing speed fast data analysis layer when the audio-frequency informations processing such as decryption, amendment, storage.Primary process layer believes the audio of downloading It ceases after the processing such as being decrypted, correcting, obtains the digital audio file that can be handled by computer or mobile device, common lattice Formula includes mp3, wma etc..The audio of downloading is played object and is handled to obtain the audio-frequency information for being suitble to broadcasting by primary process layer Afterwards, by the audio player module of treated audio-frequency information passes to page alternation of bed.Primary process layer passes to page interaction Treated that audio-frequency information includes that audio broadcast state information, audio playing duration information and audio play total duration information for layer Etc. information.Audio broadcast state information includes the information such as the clarity of the format of audio file, audio file.
Step 208: according to treated, the audio-frequency information plays the corresponding sound of the audio-frequency information to audio player module Frequency file.
In this specification one or more embodiment, audio player module is located at page alternation of bed, can be according to primary processing Layer transmitting treated audio-frequency information, plays the corresponding audio file of the audio-frequency information.
Since part audio needs to play after buying, in order to improve the safety of audio, before being carried out to audio Phase processing, such as object is played to audio and carries out encrypting processing.After viewer's payment, audio can be reprocessed, be obtained It is suitble to the audio played to play object, version iteration fast speed is had the advantages that based on page alternation of bed, and primary process layer When with the processing such as being decrypted to the audio-frequency information after downloading, correcting, store, the fast advantage of processing speed.Therefore, pass through page Face alternation of bed carries out the page iteration of audio-frequency information, is downloaded by primary process layer according to audio play instruction, decrypts, repairs Just, the audio-frequency informations such as storage processing is able to use family and obtains good audio broadcasting experience effect.
Wherein, processor 120 can execute the step in method shown in Fig. 3.Fig. 3 is to show to be implemented according to the application one The schematic flow chart of the audio frequency playing method of example, including step 302 is to step 310.
Step 302:Web application layer plays object to audio player module interface audio.
In this specification one or more embodiment, the page alternation of bed may include Web application layer.Web application layer Equipped with audio player module, audio broadcast interface, JSBridge calling interface, the audio player module of Web application layer can be formed Audio plays object.Web application layer plays object by audio player module interface audio, and it includes sound that audio, which plays object, Frequency plays web page address.
Due to part audio file need buy after could play or specified application in could play, in order to improve sound The safety of frequency file can carry out pre-processing to audio file, such as carry out encrypting processing, therefore audio to audio file File needs to play after buying or could play in specified application.
Step 304: audio broadcasting object being passed into primary process layer by JSBridge layers.
In this specification one or more embodiment, JSBridge layers are between page alternation of bed and primary process layer Object reference layer.For calling the preset interface of primary process layer and the information between page alternation of bed and primary process layer Transmitting.
Audio broadcasting object is passed to primary process layer, JSBridge layers of calling using JSBridge layers by Web application end Audio broadcasting object is passed to internal processing program by the preset interface of primary process layer.
Step 306: primary process layer obtains according to audio broadcasting object and handles audio-frequency information.
In this specification one or more embodiment, primary process layer include but is not limited to be based on Native technological development and Integrated data mining layer has and plays object according to audio and the audio-frequency informations processing speed such as be decrypted, download, correct fastly Advantage.In order to accelerate the speed of processing such as to be decrypted, correct to audio file, primary process layer can be used to audio-frequency information It the quickly processing such as is downloaded, decrypts, storing, correcting, achieving the effect that not influence user experience.
Primary process layer is a kind of to play object according to audio and the audio-frequency informations processing such as be downloaded, decrypt, correct, store When the fast data analysis layer of processing speed.After the audio-frequency information of downloading such as is decrypted, is corrected at the processing by primary process layer, obtain The digital audio file that can be handled by computer or mobile device, common format includes mp3, wma etc..Primary process layer will The audio of downloading plays object and is handled after obtaining the audio-frequency information for being suitble to play, and by treated, audio-frequency information passes to page The audio player module of face alternation of bed.Primary process layer passes to page alternation of bed treated that audio-frequency information includes that audio is broadcast It puts status information, audio playing duration information and audio and plays the information such as total duration information.Audio broadcast state information includes sound The information such as the clarity of the format of frequency file, audio file.
Step 308: treated audio-frequency information is passed to the sound of Web application layer by primary process layer by JSBridge layers Frequency player module.
In this specification one or more embodiment, primary process layer is transmitted audio-frequency information by preset interface and is given JSBridge layers, JSBridge layers pass to audio-frequency information the audio player module in page interaction end.
Step 310: according to treated, the audio-frequency information plays the corresponding sound of the audio-frequency information to audio player module Frequency file.
In this specification one or more embodiment, according to receiving that treated, audio plays letter to audio player module Breath plays the corresponding audio file of the audio-frequency information.
The information that this method is realized between Web application layer and primary process layer by JSBridge layers is transmitted, and is answered by Web The quick interaction process of the page is realized with layer, is realized by primary process layer and downloading, decryption of audio data etc. are handled, Neng Goushi Now to the quick processing of audio-frequency information, reach preferable user experience effect.
Wherein, processor 120 can execute the step in method shown in Fig. 4.Fig. 4 is to show to be implemented according to the application one The schematic flow chart of the audio frequency playing method of example, including step 402 is to step 410.
Step 402: object is played to audio player module interface audio by Web application layer.
In this specification one or more embodiment, Web application layer includes but is not limited to be based on HTML5 technological development sum aggregate At cross-system application page alternation of bed one kind, Web application layer be equipped with audio component, calling layer calling interface, trigger audio Player module can form audio and play object, and Web application layer receives audio to audio player module and plays object.Audio broadcasting pair As including that audio plays web page address.
In order to improve the safety of audio file, pre-processing can be carried out to audio file, such as audio file is carried out The processing such as encryption, therefore audio file needs to play after buying or could play in specified application.
Step 404: audio broadcasting object being passed into the primary process layer of IOS by IOS-JSBridge layers.
In this specification one or more embodiment, IOS-JSBridge layers include the object tune based on IOS system development With layer, for calling the preset interface of primary process layer and realizing the information transmitting between Web application layer and primary process layer.
During IOS system uses UIWebView (webpage view), some contents can call primary code to be promoted User experience, such as log in, payment, share.Currently, JSBridge calls primary language mainly by following two method come real Existing: a kind of method is complete custom protocol, and second method is realized using WebViewJavascriptBridge open source library Calling of the JSBridge to primary language.It is linked, is realized in webpage by customized URL (URLScheme) in the application The function of calling primary code to write, since the format of URL link is standard, in use, it is only necessary to therein Parameter first carries out customized, then is parsed, so that it may and it realizes and calls, so, code is simple, the realization process of calling is convenient, Simply, and it is easy extension.
Audio broadcasting object will be passed to the primary process layer of IOS by IOS-JSBridge layers.
The primary process layer of step 406:IOS obtains according to audio broadcasting object and handles audio-frequency information.
In this specification one or more embodiment, the primary process layer of IOS is included in IOS system based on Native technology Exploitation and integrated data analysis layer, have the advantages that the audio-frequency informations treatment processes such as be decrypted, correct are fireballing.
The step of primary process layer decryption of IOS or amendment audio-frequency information are as follows:
The primary process layer of IOS receives the audio that Web application layer is sent and plays object, according to default resolution rules by audio It plays the web page address parsing in object and generates audio broadcasting object broadcasting page info or api interface, resolution rules here Refer to that being preset with audio web page address plays page info or the corresponding corresponding table of api interface with audio, with receiving webpage Behind location, available audio plays page info or api interface from the corresponding table, certainly, is not limited to corresponding table herein Form;
Whether judge that audio plays in object includes parameter value;If so, parameter value, which is transmitted to audio, plays page info Or api interface, it generates playable audio and plays object broadcasting page info or api interface;
If nothing, obtains audio and play the default parameter value that object plays page info or api interface, generate playable sound Frequency plays object and plays page info or api interface.
If what is generated is api interface, the page is played by the audio that the interface calls its opposite, is formed playable Audio page info.It includes the suitable audio-frequency information played after processing that playable audio, which plays page information,.The process can be real The audio-frequency information for being suitble to play now is obtained to the decryption of audio.
The primary process layer of IOS stores the audio-frequency information of the suitable broadcasting obtained after the processing such as decryption or amendment to memory In.It is suitble to the audio-frequency information played to include audio broadcast state information, audio playing duration information after the primary process layer processing of IOS The information such as total duration information are played with audio.Audio broadcast state information include the format of audio file, audio file it is clear The information such as degree.
By treated, the audio-frequency information is passed to the primary process layer of step 408:IOS by IOS-JSBridge layers The audio player module of Web application layer.
In this specification one or more embodiment, the primary process layer of IOS is by the audio-frequency information of stored suitable broadcasting The audio player module of Web application layer is passed to by IOS-JSBridge layers.
Step 410: according to treated, the audio-frequency information plays the corresponding sound of the audio-frequency information to audio player module Frequency file.
In this specification one or more embodiment, audio player module plays the sound according to the audio-frequency information received The corresponding audio file of frequency information.Since the primary processing of IOS has the advantages that be decrypted, it is fast to correct audio speed, and Web is answered Have the advantages that carry out page iteration speed with layer, the interaction pages layer such as audio player module of Web application layer is not needed to sound Frequency is handled, and need to be only shown, be can effectively ensure that the video tastes effect of user.
Wherein, processor 120 can execute the step in method shown in Fig. 5.Fig. 5 is to show to be implemented according to the application one The schematic flow chart of the audio frequency playing method of example, including step 502 is to step 510.
Step 502: object is played to audio player module interface audio by Web application layer.
In this specification one or more embodiment, Web application layer is one kind of page alternation of bed, and Web application layer is to sound Frequency player module receives audio and plays object.It includes that audio plays web page address that audio, which plays object,.
In order to improve the safety of audio file, pre-processing can be carried out to audio file, such as audio file is carried out The processing such as encryption, therefore audio file needs to play after buying or could play in specified application.
Step 504: audio broadcasting object being passed into the primary process layer of Android by Android-JSBridge layers.
In this specification one or more embodiment, Android-JSBridge layers include being developed based on android system Object reference layer, for call the preset interface of primary process layer and realize Web application layer and the primary process layer of Android it Between information transmitting.
In android system, JSBridge calls primary language to increase income by using WebViewJavascriptBridge Realize JSBridge to the calling of primary language, it can be achieved that high amount of traffic transmits safely in library.
Audio broadcasting object will be passed to primary process layer by Android-JSBridge layers.
The primary process layer of step 506:Android obtains according to audio broadcasting object and handles audio-frequency information.
In this specification one or more embodiment, the primary process layer of Android includes but is not limited in android system In based on Native technological development and integrated data analysis layer, have and the treatment processes speed such as be decrypted, correct to audio Fast advantage.
The primary process layer of Android, which plays object to audio and the processing such as is decrypted, correct, obtains the audio for being suitble to play The primary process layer of IOS of the step of information and step 406, which plays object to audio and the processing such as is decrypted, corrects, to be obtained being suitble to broadcast The step of audio-frequency information put, is identical.
The primary process layer of step 508:Android transmits the audio-frequency information after decryption by Android-JSBridge layers To the audio player module of Web application layer.
In this specification one or more embodiment, the primary process layer of Android is by the suitable broadcasting decrypted, stored Audio-frequency information passes to the audio player module of Web application layer by Android-JSBridge layers.
Step 510: according to treated, the audio-frequency information plays the corresponding sound of the audio-frequency information to audio player module Frequency file.
In this specification one or more embodiment, audio player module is according to the audio-frequency information received, described in broadcasting The corresponding audio file of audio-frequency information.
The audio frequency playing method, which can be realized, carries out the processing such as fast decryption, amendment to audio on Android application apparatus, obtains To the audio-frequency information of suitable broadcasting.
One embodiment of this specification also provides a kind of audio frequency broadcast system, as shown in fig. 6, including page interaction end 602, adjusting With module 604, primary processing module 606, page interaction end 602 is equipped with audio player module, and page interaction end 602 is to audio Player module interface audio plays object and audio broadcasting object is passed to primary processing module by calling module 604 606;
Primary processing module 606 plays object according to audio and obtains and handle audio-frequency information, and audio is believed by treated Breath passes to audio player module;
According to treated, audio-frequency information plays the corresponding audio file of the audio-frequency information to audio player module.
Page interaction end 602 is that the platform, which is equipped with, to be called based on HTML5 technological development and integrated cross-system application platform Calling interface, audio player module, the audio broadcast interface of module 604.Page interaction end 602 can be connect by audio player module Mouth receives audio play instruction, while using calling module 604 by audio play instruction by the calling interface of calling module 604 Pass to primary processing module 606.It includes that audio plays web page address that audio, which plays object,.
In order to improve the safety of audio file, pre-processing can be carried out to audio file, such as audio file is carried out The processing such as encryption, therefore audio file needs to play after buying or could play in specified application.
Object reference module of the calling module 604 between page interaction end 602 and primary processing module 606.For It calls the preset interface of primary processing module 606 and realizes that information passes between page interaction end 602 and primary processing module 606 It passs.
Primary processing module 606 includes but is not limited to based on Native technological development and integrated data processing module, tool Processing speed fast advantage when having the audio-frequency informations such as be decrypted, correct processing.Primary processing module 606 handles the sound received Frequency plays object, and primary processing module 606 plays object according to audio and is downloaded, decrypts, corrects, stores etc. at audio-frequency informations Reason obtains the audio-frequency information for being suitble to broadcasting.The audio-frequency information includes audio broadcast state information, audio playing duration information and sound Frequency plays the information such as total duration information.Audio broadcast state information includes the clarity etc. of the format of audio file, audio file Information.
The audio-frequency information of the suitable broadcasting of storage is passed to the page by calling module 604 and handed over by primary processing module 606 Mutually it is corresponding to play the audio-frequency information according to the audio-frequency information received for the audio player module at end 602, audio player module Audio file.The system has the advantages that the processing such as page iteration speed is fast and is decrypted, corrects to audio are fireballing excellent Point can be realized good user experience effect.
One embodiment of this specification also provides a kind of audio frequency broadcast system, as shown in fig. 7, the system includes page interaction end 702, JSBridge module 704, primary processing module 706, page interaction end 702 are based on HTML5 technological development and to integrate Cross-system application platform, the platform are equipped with JSBridge calling interface, audio player module, audio broadcast interface.Pass through triggering The feasible formation audio of audio player module plays object, while calling JSBridge calling interface, calls JSBridge module. Audio broadcasting object is passed to primary processing module by JSBridge module.It includes that audio plays webpage that audio, which plays object, Location.
In order to improve the safety of audio file, pre-processing can be carried out to audio file, such as audio file is carried out The processing such as encryption, therefore audio file needs to play after buying or could play in specified application.
JSBridge module 704 includes the object reference mould between page interaction end 702 and primary processing module 706 Block.JSBridge module 704 stores JSBridge code, for calling the preset interface of primary processing module 706 to realize Information is transmitted between page interaction end 702 and primary processing module 706.According to the difference of application system, JSBridge module 704 It further include that can call primary processing module including IOS-JSBridge module 7042, Android-JSBridge module 7044 etc. Other calling modules of 706 preset interfaces, 7042 module of IOS-JSBridge module are pre- by the primary processing module 7062 of IOS If audio broadcasting object is passed to the primary processing module 7062 of IOS by interface, Android-JSBridge module 7044 passes through Audio broadcasting object is passed to the primary processing module 7064 of Android by the preset interface of the primary processing module 7064 of Android.
The primary processing module 7062 of IOS and the primary processing module 7064 of Android are the one of primary processing module 706 Kind.Primary processing module 706 includes but is not limited to the primary processing module 7062 of IOS, the primary processing module 7064 of Android.It is former Raw processing module 706 is based on Native technological development and integrated data processing module.Primary processing module 706 includes primary pipe Manage engine and primary management server.
Primary management engine includes execution module, and module and update module is locally stored, and is responsible for administration page interaction end tune The preset interface of all primary processing modules 706 provides interface service for page interaction end 702, while according to primary pipe The content for managing server carries out dynamic update.Primary management server provides increase, update native interface in server-side for user Operation, manage it is all support page interaction ends primary preset interfaces.
Execution module in primary management engine includes monitoring, parsing, load, executing four modules.
It monitors module to be responsible for monitoring the audio broadcasting object that page interaction end is sent, and audio broadcasting object is passed to and is connect Parsing module in mouth execution module;Audio is played the relevant parameter in object according to default resolution rules and carried out by parsing module Parsing is completed to play audio the treatment processes such as decryption, the amendment of object, the audio-frequency information for being suitble to broadcasting is obtained, then by sound Frequency information passes to loading module;According to parsing module transmitting come audio-frequency information or, loading module by audio-frequency information from local It is loaded into memory in memory module;Execution module passes the audio-frequency information stored into memory by JSBridge module 704 Pass the audio player module of page interaction end 702.Audio player module plays the audio according to the audio-frequency information received The corresponding audio file of information.
Audio is played the process that the relevant parameter in object parses according to default resolution rules by parsing module are as follows: is connect It receives the audio that page interaction end 702 is sent and plays object, by the webpage in audio broadcasting object according to default resolution rules Location parsing generates audio and plays page info or api interface, and resolution rules here, which refer to, is preset with audio web page address and sound Frequency plays page info or the corresponding corresponding table of api interface, available from the corresponding table after receiving web page address Audio plays page info or api interface, certainly, is not limited to the form of corresponding table herein;
Whether judge that audio plays in object includes parameter value;
Page info or api interface are played if so, audio is played the parameter value in object and is transmitted to audio, generating can play Audio play object and play page info or api interface;
If it is not, obtaining audio plays the default parameter value that object plays page info or api interface, playable sound is generated Frequency plays page info or api interface.
If what is generated is api interface, page info is played by the audio that the interface calls its opposite.Playable It includes the suitable audio-frequency information played after processing that audio, which plays page information,.
Update module in primary management engine detects that the preset interface in local system needs update or expansion demand, It is issued to primary management server and updates or expand request, which can be from user, and primary management server is according to more The update of new module is expanded request and is updated to the preset interface in primary management engine or dilatation.
Audio broadcast information that treated includes that audio broadcast state information, audio playing duration information and audio play always The information such as duration information.Audio broadcast state information includes the information such as the clarity of the format of audio file, audio file.
One embodiment of the application also provides a kind of computer readable storage medium, is stored with computer object, the object The step of audio frequency playing method as previously described is realized when being executed by processor.
A kind of exemplary scheme of above-mentioned computer readable storage medium for the present embodiment.It should be noted that this is deposited The technical solution of storage media and the technical solution of above-mentioned audio frequency playing method belong to same design, the technical solution of storage medium The detail content being not described in detail may refer to the description of the technical solution of above-mentioned audio frequency playing method.
The computer object includes computer program code, the computer program code can for source code form, Object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry institute State any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium include it is interior Increase and decrease appropriate can be carried out according to the requirement made laws in jurisdiction with patent practice by holding, such as in certain jurisdictions of courts Area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Shen It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The application preferred embodiment disclosed above is only intended to help to illustrate the application.There is no detailed for alternative embodiment All details are described, are not limited the invention to the specific embodiments described.Obviously, according to the content of this specification, It can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to preferably explain the application Principle and practical application, so that skilled artisan be enable to better understand and utilize the application.The application is only It is limited by claims and its full scope and equivalent.

Claims (15)

1. a kind of audio frequency playing method characterized by comprising
Object is played to audio player module interface audio by page alternation of bed;
Audio broadcasting object is passed into primary process layer by calling layer;
The primary process layer plays object according to the audio and obtains and handle audio-frequency information, and general's treated audio Information passes to the audio player module;
According to treated, the audio-frequency information plays the corresponding audio file of the audio-frequency information to the audio player module.
2. audio frequency playing method as described in claim 1, which is characterized in that the page alternation of bed includes being based on HTML5 technology Exploitation and integrated cross-system application platform.
3. audio frequency playing method as described in claim 1, which is characterized in that it includes that audio plays webpage that the audio, which plays object, Address.
4. audio frequency playing method as described in claim 1, which is characterized in that the primary process layer is according to audio broadcasting pair As obtaining and the step of handling audio-frequency information includes:
The primary process layer plays object download, decryption, amendment and/or audio information according to the audio.
5. audio frequency playing method as described in claim 1, which is characterized in that treated, and the audio-frequency information includes that audio plays Status information, audio playing duration information or audio play total duration information.
6. audio frequency playing method as described in claim 1, which is characterized in that the calling layer is JSBridge layers,
Audio broadcasting object, which is passed to primary process layer, by calling layer includes:
Audio broadcasting object is passed into primary process layer by JSBridge layers.
7. audio frequency playing method as described in claim 1, which is characterized in that the primary process layer includes being based on Native technology Exploitation and integrated data analysis layer.
8. a kind of audio frequency broadcast system, which is characterized in that including page interaction end, calling module, primary processing module,
The page interaction end is equipped with audio player module, and the page interaction end is to the audio player module interface Audio plays object and audio broadcasting object is passed to primary processing module by calling module;
The primary processing module plays object according to audio and obtains and handle audio-frequency information, and the audio is believed by treated Breath passes to audio player module;
According to treated, the audio-frequency information plays the corresponding audio file of the audio-frequency information to the audio player module.
9. audio frequency broadcast system as claimed in claim 8, which is characterized in that the page interaction end includes being based on HTML5 technology Exploitation and integrated cross-system application platform.
10. audio frequency broadcast system as claimed in claim 8, which is characterized in that it includes that audio plays net that the audio, which plays object, Page address.
11. audio frequency broadcast system as claimed in claim 8, which is characterized in that the primary processing module is according to audio broadcasting pair As obtaining and the step of handling audio-frequency information includes:
The audio-frequency information is downloaded, decrypts, corrects and/or stored to the primary processing module.
12. audio frequency broadcast system as claimed in claim 8, which is characterized in that the primary processing module includes being based on Native Technological development and integrated data processing module.
13. audio frequency broadcast system as claimed in claim 8, which is characterized in that the calling module includes JSBridge module, institute It states and information is transmitted by the JSBridge module between page interaction end and the primary processing module.
14. a kind of calculating equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine instruction, which is characterized in that the processor is realized when executing described instruction realizes that right the is wanted when instruction is executed by processor The step of seeking 1-7 any one the method.
15. a kind of computer readable storage medium, is stored with computer instruction, which is characterized in that the instruction is held by processor The step of claim 1-7 any one the method is realized when row.
CN201811205189.2A 2018-10-16 2018-10-16 Audio playing method and system, computing device and storage medium Active CN109358833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811205189.2A CN109358833B (en) 2018-10-16 2018-10-16 Audio playing method and system, computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811205189.2A CN109358833B (en) 2018-10-16 2018-10-16 Audio playing method and system, computing device and storage medium

Publications (2)

Publication Number Publication Date
CN109358833A true CN109358833A (en) 2019-02-19
CN109358833B CN109358833B (en) 2022-03-22

Family

ID=65349354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811205189.2A Active CN109358833B (en) 2018-10-16 2018-10-16 Audio playing method and system, computing device and storage medium

Country Status (1)

Country Link
CN (1) CN109358833B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324719A (en) * 2019-08-12 2019-10-11 浙江岩华文化传媒有限公司 Control method for playing back, device and equipment
CN110430473A (en) * 2019-07-18 2019-11-08 东软集团股份有限公司 Method, apparatus, storage medium and the electronic equipment of video playing
CN110933482A (en) * 2019-12-06 2020-03-27 腾讯科技(深圳)有限公司 Video loading method and device, computer readable storage medium and computer equipment
CN111372134A (en) * 2020-04-20 2020-07-03 聚好看科技股份有限公司 Player calling method and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930467A (en) * 2016-04-22 2016-09-07 联想(北京)有限公司 Information processing method and electronic device
CN106951233A (en) * 2017-03-02 2017-07-14 广州天高软件科技有限公司 Mixed mode smart mobile phone application development framework
CN107562548A (en) * 2017-08-04 2018-01-09 北京趣拿软件科技有限公司 The method and apparatus for transmitting data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930467A (en) * 2016-04-22 2016-09-07 联想(北京)有限公司 Information processing method and electronic device
CN106951233A (en) * 2017-03-02 2017-07-14 广州天高软件科技有限公司 Mixed mode smart mobile phone application development framework
CN107562548A (en) * 2017-08-04 2018-01-09 北京趣拿软件科技有限公司 The method and apparatus for transmitting data

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430473A (en) * 2019-07-18 2019-11-08 东软集团股份有限公司 Method, apparatus, storage medium and the electronic equipment of video playing
CN110430473B (en) * 2019-07-18 2022-03-04 东软集团股份有限公司 Video playing method and device, storage medium and electronic equipment
CN110324719A (en) * 2019-08-12 2019-10-11 浙江岩华文化传媒有限公司 Control method for playing back, device and equipment
CN110933482A (en) * 2019-12-06 2020-03-27 腾讯科技(深圳)有限公司 Video loading method and device, computer readable storage medium and computer equipment
CN111372134A (en) * 2020-04-20 2020-07-03 聚好看科技股份有限公司 Player calling method and terminal
CN111372134B (en) * 2020-04-20 2022-05-24 聚好看科技股份有限公司 Player calling method and terminal

Also Published As

Publication number Publication date
CN109358833B (en) 2022-03-22

Similar Documents

Publication Publication Date Title
CN109358833A (en) A kind of audio frequency playing method and system, a kind of calculating equipment and storage medium
JP6616774B2 (en) Anti-malware type mobile content data management apparatus and method
CN108829378A (en) A kind of development approach of application software, device and electronic equipment
CN104503780A (en) Method and device for providing application channel packet
CN105335132B (en) Method, device and system for customizing application program function
CN106469414A (en) Mobile stock open platform device and method
CN105068813A (en) Method and device for providing android package (APK) modification service
CN113157345A (en) Automatic starting method and device for front-end engineering
CN108984632A (en) A kind of webpage setting method and device
CN112463634A (en) Software testing method and device under micro-service architecture
CN108170430B (en) Interface display method and system
CN111143204B (en) Applet code scanning method and device
CN111367561B (en) Remote development method and device for software program
CN101438286A (en) A method of enabling digital music content to be downloaded to and used on a portable wireless computing device
CN113095053A (en) Webpage table customizing method and device
CN105681823A (en) Method and device for transcoding video file online
US20160335042A1 (en) System for control of one or more midi devices
CN104965720B (en) Using installation method and device
CN115407981A (en) Front-end data mock method and system based on middleware adaptation
CN110825373A (en) Dynamic method and device for mobile terminal
CN110401925A (en) A kind of generation method and device of communication message
CN114840576A (en) Data standard matching method and device
CN108197273A (en) The method and device that a kind of multi-user data synchronizes
CN113050985A (en) Front-end engineering dependence automatic registration method and device
CN103116632A (en) Generation method of theme pack, device and equipment

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
TA01 Transfer of patent application right

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220412

Address after: Room 602, No. 618, Wai Road, Huangpu District, Shanghai 200010

Patentee after: Ant fortune (Shanghai) Financial Information Service Co.,Ltd.

Address before: Ky1-9008 Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands, ky1-9008

Patentee before: Innovative advanced technology Co.,Ltd.

TR01 Transfer of patent right