CN109101166A - audio control method, device and storage medium - Google Patents

audio control method, device and storage medium Download PDF

Info

Publication number
CN109101166A
CN109101166A CN201811004981.1A CN201811004981A CN109101166A CN 109101166 A CN109101166 A CN 109101166A CN 201811004981 A CN201811004981 A CN 201811004981A CN 109101166 A CN109101166 A CN 109101166A
Authority
CN
China
Prior art keywords
audio
webpage
control
instruction
play
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
CN201811004981.1A
Other languages
Chinese (zh)
Other versions
CN109101166B (en
Inventor
苏卓斌
吴娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201811004981.1A priority Critical patent/CN109101166B/en
Publication of CN109101166A publication Critical patent/CN109101166A/en
Application granted granted Critical
Publication of CN109101166B publication Critical patent/CN109101166B/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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • G06F3/04855Interaction with scrollbars
    • 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/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a kind of audio control method, device and storage mediums, belong to audio signal processing technique field.The described method includes: the first webpage receives the audio play instruction from the second webpage, audio play instruction is sent after detecting audio player operation by the second webpage, carries the audio-frequency information and broadcast state information of the audio played in the second webpage;First webpage determines multiple control elements using audio-frequency information and broadcast state information as the parameter of control element;First webpage generates audio play control according to multiple control elements, shows that audio play control, audio play control are used to be associated with the control to audio.The present invention avoids the need for switching between several webpages repeatedly, improves the convenience of operation, to improve audio frequency control efficiency.

Description

Audio control method, device and storage medium
Technical field
The present embodiments relate to audio signal processing technique field, in particular to a kind of audio control method, device and storage Medium.
Background technique
Currently, the APP (Application, using) that such as QQ music, KuGoo music etc not only can be used plays sound Frequently, audio can also be played using webpage.In audio playing process, user has the demand of control audio, for example, adjusts volume Size, adjustment playback progress, collection audio etc..
In the related art, when playing audio using webpage, if user needs to control certain audio in webpage When, it generally requires user and clicks the audio to enter in the webpage where the audio.Later, user can be where the audio Webpage in, which is operated, to realize control to audio.
However, webpage where can only enter audio is operated in above-mentioned implementation, when user is browsing other nets When page, if it is desired to currently playing audio is operated, needs to switch to the webpage where the audio, after having operated, Return again to browsed webpage, it is thus desirable to user switches between several webpages repeatedly, cause to operate it is relatively complicated, So that audio frequency control efficiency is lower.
Summary of the invention
The embodiment of the invention provides a kind of audio control method, device and storage mediums, can solve in the related technology Needing user to switch between several webpages repeatedly causes to operate relatively complicated, asks so that audio frequency control efficiency is lower Topic.The technical solution is as follows:
In a first aspect, providing a kind of audio control method, which comprises
First webpage receives the audio play instruction from the second webpage, and the audio play instruction is by second net What page was sent after detecting audio player operation, it carries the audio-frequency information of the audio played in second webpage and plays shape State information;
For first webpage using the audio-frequency information and the broadcast state information as the parameter of control element, determination is more A control element;
First webpage generates audio play control according to the multiple control element, shows that the audio plays control Part, the audio play control are used to be associated with the control to the audio.
Optionally, after the display audio play control, further includes:
When first webpage, which is based on the audio play control, detects audio frequency control operation, to second webpage Audio frequency control instruction is sent, the audio frequency control instruction is used to indicate second webpage and controls the audio.
Optionally, the audio frequency control instruction includes that audio pause instructs, audio accelerates play instruction, audio deceleration plays Any one of instruction, audio volume regulating command, audio collection instruction, audio purchase instruction.
Optionally, after the display audio play control, further includes:
When first webpage receives audio out code or webpage refreshing instruction from second webpage, build Vertical audio player module;
First webpage passes through the audio player module according to the audio-frequency information and broadcast state information of the audio Play the audio.
Optionally, first webpage receives the audio play instruction from the second webpage, comprising:
First webpage receives the audio play instruction that web browser is sent, and the web browser is described in opening The browser of first webpage and second webpage, the audio play instruction sent for receiving second webpage, and The audio play instruction is forwarded to first webpage.
Second aspect, provides a kind of audio control apparatus, and described device includes:
Receiving module, for receiving the audio play instruction from the second webpage, the audio play instruction is by described What the second webpage was sent after detecting audio player operation, carry the audio played in second webpage audio-frequency information and Broadcast state information;
Determining module, for determining using the audio-frequency information and the broadcast state information as the parameter of control element Multiple control elements;
Display module is generated, for audio play control being generated, showing that the audio is broadcast according to the multiple control element Control is put, the audio play control is used to be associated with the control to the audio.
Optionally, described device further include:
Sending module, for when first webpage be based on the audio play control detect audio frequency control operation when, Audio frequency control instruction is sent to second webpage, the audio frequency control instruction is used to indicate second webpage to the audio It is controlled.
Optionally, the audio frequency control instruction includes that audio pause instructs, audio accelerates play instruction, audio deceleration plays Any one of instruction, audio volume regulating command, audio collection instruction, audio purchase instruction.
Optionally, described device further include:
Module is established, for when receiving audio out code or the webpage refreshing instruction from second webpage, Establish audio player module;
Playing module passes through the audio broadcasting group for the audio-frequency information and broadcast state information according to the audio Part plays the audio.
Optionally, the receiving module is used for:
The audio play instruction that web browser is sent is received, the web browser is opening first webpage and institute The browser for stating the second webpage, the audio play instruction sent for receiving second webpage, and to first net Page forwards the audio play instruction.
The third aspect provides a kind of computer readable storage medium, is stored on the computer readable storage medium Instruction, realizes audio control method described in above-mentioned first aspect when described instruction is executed by processor.
Fourth aspect provides a kind of computer program product comprising instruction, when run on a computer, so that Computer executes audio control method described in above-mentioned first aspect.
Technical solution provided in an embodiment of the present invention has the benefit that
Second webpage sends audio play instruction after detecting audio player operation, to the first webpage, which plays Instruction carries the audio-frequency information and broadcast state information of the audio played in the second webpage.First webpage is by the audio-frequency information and broadcasts Parameter of the status information as control element is put, determines multiple control elements.First webpage is raw according to multiple control element At and show audio play control for be associated with control to the audio, controlled in this way, user can be played based on the audio Part carries out control operation to the audio played in second webpage in first webpage, avoids the need for repeatedly in several webpages Between switch over, the convenience of operation is improved, to improve audio frequency control efficiency.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of schematic diagram of implementation environment shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of audio control method shown according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of the audio control method shown according to another exemplary embodiment;
Fig. 4 is a kind of display schematic diagram of audio play control shown according to an exemplary embodiment;
Fig. 5 is a kind of structural schematic diagram of audio control apparatus shown according to an exemplary embodiment;
Fig. 6 is a kind of structural schematic diagram of the audio control apparatus shown according to another exemplary embodiment;
Fig. 7 is a kind of structural schematic diagram of the audio control apparatus shown according to another exemplary embodiment;
Fig. 8 is a kind of structural block diagram of terminal 700 shown according to an exemplary embodiment.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Before describing in detail to audio control method provided in an embodiment of the present invention, first the embodiment of the present invention is related to And application scenarios and implementation environment simply introduced.
Firstly, to the present embodiments relate to application scenarios simply introduced.
With the fast development of computer technology, webpage is can be used to play audio in user.When user opens certain webpage When playing audio, if also having browsed other webpages, and during browsing other webpages, it is desirable to currently playing sound Frequency is operated, and for example, when hearing that interested audio is wanted to collect the audio, then needs to switch to the net where the audio Page operates the audio, then, returns again to the webpage of browsing.Later, if user wants to operate the audio again, For example, it is desirable to which the broadcast sound volume size for adjusting audio then needs to switch back into the webpage where the audio again.It is thus desirable to Family switches between several webpages repeatedly, causes to operate relatively complicated, reduces audio frequency control efficiency.Also, it is so anti- Multiple switching is easy to interrupt the state of mind of user, reduces user experience, for example, reduces user to product (audio of e.g., paying) Desire to purchase.For this purpose, the audio control method can avoid the need for using the embodiment of the invention provides a kind of audio control method Family operates repeatedly, and the control efficiency of audio can be improved in this method, and improves user experience effect, and specific implementation refers to Following Fig. 2 and embodiment shown in Fig. 3.
Next, to the present embodiments relate to implementation environment simply introduced.
Referring to FIG. 1, the Fig. 1 is a kind of schematic diagram of implementation environment shown according to an exemplary embodiment, the implementation Include mainly the first webpage and the second webpage in environment, information exchange can be carried out between first webpage and the second webpage.Its In, executable program can be set in first webpage and second webpage, to realize this hair by the executable program The audio control method that bright embodiment provides.
Further, can also include web browser in the implementation environment, the web browser can for open this The browser of one webpage and the second webpage, in one embodiment, the web browser can be used to implement first webpage and Information exchange between second webpage.
Introduced the present embodiments relate to application scenarios and implementation environment after, next, will in conjunction with attached drawing to this The audio control method that inventive embodiments provide is introduced.
Fig. 2 is a kind of flow chart of audio control method shown according to an exemplary embodiment, the audio control method It can be applied in above-mentioned implementation environment shown in FIG. 1, this method may include following several realization steps:
Step 201: the first webpage receives the audio play instruction from the second webpage, and the audio play instruction is by institute It states what the second webpage was sent after detecting audio player operation, carries the audio-frequency information of the audio played in second webpage With broadcast state information.
Step 202: first webpage is using the audio-frequency information and the broadcast state information as the ginseng of control element Number, determines multiple control elements.
Step 203: first webpage generates audio play control, shows the sound according to the multiple control element Frequency play control, the audio play control are used to be associated with the control to the audio.
In embodiments of the present invention, the second webpage sends audio to the first webpage and broadcasts after detecting audio player operation Instruction is put, which carries the audio-frequency information and broadcast state information of the audio played in the second webpage.First net Page determines multiple control elements using the audio-frequency information and broadcast state information as the parameter of control element.The first webpage root According to multiple control element, generates and show the audio play control for being associated with the control to the audio, in this way, user To be based on the audio play control, control operation is carried out to the audio played in second webpage in first webpage, is avoided It needs to switch between several webpages repeatedly, improves the convenience of operation, to improve audio frequency control efficiency.
Optionally, after the display audio play control, further includes:
When first webpage, which is based on the audio play control, detects audio frequency control operation, to second webpage Audio frequency control instruction is sent, the audio frequency control instruction is used to indicate second webpage and controls the audio.
Optionally, the audio frequency control instruction includes that audio pause instructs, audio accelerates play instruction, audio deceleration plays Any one of instruction, audio volume regulating command, audio collection instruction, audio purchase instruction.
Optionally, after the display audio play control, further includes:
When first webpage receives audio out code or webpage refreshing instruction from second webpage, build Vertical audio player module;
First webpage passes through the audio player module according to the audio-frequency information and broadcast state information of the audio Play the audio.
Optionally, first webpage receives the audio play instruction from the second webpage, comprising:
First webpage receives the audio play instruction that web browser is sent, and the web browser is described in opening The browser of first webpage and second webpage, the audio play instruction sent for receiving second webpage, and The audio play instruction is forwarded to first webpage.
All the above alternatives, can form alternative embodiment of the invention according to any combination, and the present invention is real It applies example and this is no longer repeated one by one.
Fig. 3 is a kind of flow chart of audio control method shown according to an exemplary embodiment, the audio control method It can be applied in above-mentioned implementation environment shown in FIG. 1, this method may include following several realization steps:
Step 301: the second webpage sends audio play instruction to the first webpage.
Wherein, which sent after detecting audio player operation by second webpage, and carrying should The audio-frequency information and broadcast state information of the audio played in second webpage.
Second webpage can be any audio webpage that can play audio, which can be and second net The different any webpage of page.In some embodiments, in the first webpage and the second webpage that user opens, user can be the The audio that hobby selection in two webpages according to oneself is wanted to play can after second webpage detects audio player operation To send the audio play instruction to first webpage, the audio-frequency information of the audio of broadcasting is carried in the audio play instruction and is broadcast Put status information.
Wherein, above-mentioned audio-frequency information may include the title of audio, singer's title, affiliated album name, in the lyrics At least one of.In addition, above-mentioned broadcast state information may include the play time of audio, at least one in broadcast sound volume size ?.
In one possible implementation, which sends the specific implementation of audio play instruction to the first webpage It may include: that second webpage to web browser sends the audio play instruction, which receives the audio and broadcast After putting instruction, the audio play instruction can be forwarded to first webpage.Wherein, which is to open first webpage With the browser of the second webpage.
Further, which can be sent to the audio play instruction memory space of the web browser Interior, for the web browser when detecting that data are written to memory space in second webpage, meeting data to be written is sent to institute The first webpage opened.
Further, in some embodiments, website belonging to above-mentioned first webpage and the second webpage can be identical, example Such as, first webpage and second webpage belong to audio related web page.In another embodiment, which can also be with First webpage belongs to different websites, and the embodiment of the present invention is not construed as limiting this.
Step 302: the first webpage receives the audio play instruction from the second webpage.
In one possible implementation, which receives the specific of the audio play instruction from the second webpage Realization may include: that first webpage receives the audio play instruction that web browser is sent, which is to open to be somebody's turn to do The browser of first webpage and second webpage, for receiving the audio play instruction of second webpage transmission, and to this One webpage forwards the audio play instruction.
As previously mentioned, in some embodiments, which can be sent to webpage for the audio play instruction Browser, the web browser forward the audio play instruction to the first webpage, at this point, first webpage receives web browser The audio play instruction of forwarding.
Further, the first webpage receive the audio play instruction from the second webpage after, to the audio play instruction into Row parsing, therefrom obtains entrained data, wherein the data include the audio that second webpage is played audio-frequency information and Broadcast state information.
Step 303: first webpage is determined using the audio-frequency information and the broadcast state information as the parameter of control element Multiple control elements.
For example, when the title and singer's title that the audio-frequency information includes audio, which includes broadcasting for audio It is when putting time point and broadcast sound volume size, the title of the audio, singer's title, the play time of audio and broadcast sound volume is big The small parameter for being identified as control element, obtains multiple control elements, and multiple control element is used to indicate the name of the audio Title, singer's title, the playback progress of audio and broadcast sound volume.Further, which can also be according to the audio-frequency information With the broadcast state information, collection control element, purchase control element etc. are determined.
Step 304: first webpage generates audio play control according to multiple control element, and shows that the audio is broadcast Control is put, which is used to be associated with the control to the audio.
Further, first webpage is according to multiple control element, and the specific implementation for generating audio play control can be with Include: that multiple control element is combined by first webpage, obtain audio play control, which includes should Multiple control elements.
After first auto-building html files audio play control, the audio play control can be shown in designated position, this refers to Positioning is set and can be configured according to actual needs, and for example, which can be the page bottom section of first webpage Deng as shown in figure 4, the Fig. 4 is a kind of display schematic diagram of audio play control shown according to an exemplary embodiment.Such as This, user can control the audio in second webpage based on the audio play control.
Further, after showing audio play control, sound is detected when first webpage is based on the audio play control When frequency control operation, audio frequency control instruction is sent to second webpage, audio frequency control instruction is used to indicate second webpage pair The audio is controlled.
Wherein, audio frequency control instruction includes that audio pause instructs, audio accelerates play instruction, audio deceleration plays and refers to It enables, audio volume regulating command, audio collection instructs, audio buys any one of instruction.
That is, user when browsing the first webpage, controls the audio played in second webpage when desired, The audio can be operated based on audio play control shown by the first webpage, in other words, audio can be based on Multiple control elements that play control includes are controlled.
For example, when user is when browsing the first webpage, it is desirable to when adjusting the volume of the audio of second webpage broadcasting, Volume adjustment control that audio play control shown by first webpage includes can be slided to target position, when first net When page detects the operation to the volume adjustment control, audio volume regulating command is generated, which carries Target volume size.Further, which can be sent to depositing for web browser for the audio volume regulating command It stores up in space, after which receives the audio volume regulating command, which is transmitted to the Two webpages, at this point, the volume adjustment of currently playing audio is target volume size by second webpage.
For another example, when user is when browsing the first webpage, it is desirable to the audio for suspending second webpage broadcasting, can click this The tentative control that audio play control shown by one webpage includes, when first webpage detects the operation to the pause control When, generate the tentative instruction of audio.Further, which can instruct the audio pause and be sent to web browser In memory space, after which receives audio pause instruction, audio pause instruction is transmitted to the second webpage, At this point, second webpage suspends currently playing audio.In this way, realizing the audio played in the first webpage to the second webpage It is controlled.
It should be noted that above-mentioned is only to accelerate to play including audio pause instruction, audio with audio frequency control instruction to refer to Enable, audio deceleration play instruction, audio volume regulating command, audio collection instruction, audio purchase instruction any one of for It is illustrated.In another embodiment, it can also include for example audio that audio frequency control instruction, which can also include other instructions, Share instruction etc., the embodiment of the present invention is not construed as limiting this.
Further, after showing audio play control, when first webpage receives the audio from second webpage When out code or webpage refreshing instruction, audio player module is established, according to the audio-frequency information of the audio and broadcast state information, The audio is played by the audio player module.
In one possible implementation, after the first web displaying audio play control, if receiving second The audio out code that webpage is sent illustrates that second webpage has stopped playing audio, at this point, first webpage can be then Second webpage stops playing the position of audio, continues to play the audio.For this purpose, first webpage establishes audio in the first webpage Player module, to continue to play the sound according to the audio-frequency information of the audio and broadcast state information by the audio player module Frequently.
In addition, can replace the second net when first webpage receives the webpage refreshing instruction from second webpage Page carries out audio broadcasting.For this purpose, first webpage establishes audio player module in the first webpage, to pass through the audio broadcasting group Part continues to play the audio according to the audio-frequency information of the audio and broadcast state information.
It should be noted that above-mentioned is only to receive the webpage refreshing instruction from second webpage with first webpage Afterwards, the broadcasting of the second webpage is replaced to continue to be illustrated for broadcasting audio by the first webpage.In some embodiments, when can be with By the second webpage after the completion of refreshing, continue to play audio, that is to say, that second webpage, can when detecting refresh operation To execute refresh operation, and the audio-frequency information of the audio played when refreshing and broadcast state information are sent to web browser Memory space stored.After the completion of the refreshing of the second webpage, it can read and be deposited from the memory space of the web browser The data of storage, and according to read data, continue to play audio, at this point, the web browser can also be by the second webpage institute The data of storage are sent to the first webpage, so that first webpage updates synchrodata.
Further, which, can be in real time to the memory space of web browser in audio playing process The broadcast state information of played audio is written.The web browser, will whenever detecting that memory space has data write-in The data forwarding being written gives the first webpage.First webpage receives the data of web browser forwarding, and according to the data, more The broadcast state for the audio that new audio play control is shown, to reach the mesh that the audio played with the second webpage synchronizes 's.
Further, which, can also be according to the sound of audio after sending audio play instruction to the first webpage Frequency information and broadcast state information generate multiple control elements, and according to multiple control element, generate audio play control, Second webpage shows audio play control in the designated position of the second webpage.In this way, user can also be played based on the audio Control carries out control operation in audio of second webpage to broadcasting.
In embodiments of the present invention, the second webpage sends audio to the first webpage and broadcasts after detecting audio player operation Instruction is put, which carries the audio-frequency information and broadcast state information of the audio played in the second webpage.First net Page determines multiple control elements using the audio-frequency information and broadcast state information as the parameter of control element.The first webpage root According to multiple control element, generates and show the audio play control for being associated with the control to the audio, in this way, user To be based on the audio play control, control operation is carried out to the audio played in second webpage in first webpage, is avoided It needs to switch between several webpages repeatedly, improves the convenience of operation, to improve audio frequency control efficiency.
Fig. 5 is a kind of structural schematic diagram of audio control apparatus shown according to an exemplary embodiment, the audio frequency control Device being implemented in combination with by software, hardware or both.The audio control apparatus may include:
Receiving module 410, for receiving the audio play instruction from the second webpage, the audio play instruction is by institute It states what the second webpage was sent after detecting audio player operation, carries the audio-frequency information of the audio played in second webpage With broadcast state information;
Determining module 420, for using the audio-frequency information and the broadcast state information as the parameter of control element, really Fixed multiple control elements;
Display module 430 is generated, for audio play control being generated, showing the sound according to the multiple control element Frequency play control, the audio play control are used to be associated with the control to the audio.
Optionally, referring to FIG. 6, described device further include:
Sending module 440, for detecting that audio frequency control operates when first webpage is based on the audio play control When, audio frequency control instruction is sent to second webpage, the audio frequency control instruction is used to indicate second webpage to described Audio is controlled.
Optionally, the audio frequency control instruction includes that audio pause instructs, audio accelerates play instruction, audio deceleration plays Any one of instruction, audio volume regulating command, audio collection instruction, audio purchase instruction.
Optionally, referring to FIG. 7, described device further include:
Module 450 is established, receives audio out code or webpage refreshing instruction from second webpage for working as When, establish audio player module;
Playing module 460 is played for the audio-frequency information and broadcast state information according to the audio by the audio Component plays the audio.
Optionally, the receiving module 410 is used for:
The audio play instruction that web browser is sent is received, the web browser is opening first webpage and institute The browser for stating the second webpage, the audio play instruction sent for receiving second webpage, and to first net Page forwards the audio play instruction.
In embodiments of the present invention, the second webpage sends audio to the first webpage and broadcasts after detecting audio player operation Instruction is put, which carries the audio-frequency information and broadcast state information of the audio played in the second webpage.First net Page determines multiple control elements using the audio-frequency information and broadcast state information as the parameter of control element.The first webpage root According to multiple control element, generates and show the audio play control for being associated with the control to the audio, in this way, user To be based on the audio play control, control operation is carried out to the audio played in second webpage in first webpage, is avoided It needs to switch between several webpages repeatedly, improves the convenience of operation, to improve audio frequency control efficiency.
It should be understood that audio control apparatus provided by the above embodiment is when realizing audio control method, only more than The division progress of each functional module is stated for example, can according to need and in practical application by above-mentioned function distribution by difference Functional module complete, i.e., the internal structure of equipment is divided into different functional modules, with complete it is described above whole or Person's partial function.In addition, audio control apparatus provided by the above embodiment with realize audio control method embodiment belong to it is same Design, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
Fig. 8 shows the structural block diagram of the terminal 700 of an illustrative embodiment of the invention offer.The terminal 700 can For running web browser, which may is that smart phone, tablet computer, laptop or desktop computer.Eventually End 700 is also possible to referred to as other titles such as user equipment, portable terminal, laptop terminal, terminal console.
In general, terminal 700 includes: processor 701 and memory 702.
Processor 701 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place Reason device 701 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 701 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 701 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 701 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 702 may include one or more computer readable storage mediums, which can To be non-transient.Memory 702 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 702 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 701 for realizing this Shen Please in embodiment of the method provide audio control method.
In some embodiments, terminal 700 is also optional includes: peripheral device interface 703 and at least one peripheral equipment. It can be connected by bus or signal wire between processor 701, memory 702 and peripheral device interface 703.Each peripheral equipment It can be connected by bus, signal wire or circuit board with peripheral device interface 703.Specifically, peripheral equipment includes: radio circuit 704, at least one of touch display screen 705, camera 706, voicefrequency circuit 707, positioning component 708 and power supply 709.
Peripheral device interface 703 can be used for I/O (Input/Output, input/output) is relevant outside at least one Peripheral equipment is connected to processor 701 and memory 702.In some embodiments, processor 701, memory 702 and peripheral equipment Interface 703 is integrated on same chip or circuit board;In some other embodiments, processor 701, memory 702 and outer Any one or two in peripheral equipment interface 703 can realize on individual chip or circuit board, the present embodiment to this not It is limited.
Radio circuit 704 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates Frequency circuit 704 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 704 turns electric signal It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 704 wraps It includes: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip Group, user identity module card etc..Radio circuit 704 can be carried out by least one wireless communication protocol with other terminals Communication.The wireless communication protocol includes but is not limited to: WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network (2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, it penetrates Frequency circuit 704 can also include NFC (Near Field Communication, wireless near field communication) related circuit, this Application is not limited this.
Display screen 705 is for showing UI (User Interface, user interface).The UI may include figure, text, figure Mark, video and its their any combination.When display screen 705 is touch display screen, display screen 705 also there is acquisition to show The ability of the touch signal on the surface or surface of screen 705.The touch signal can be used as control signal and be input to processor 701 are handled.At this point, display screen 705 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or Soft keyboard.In some embodiments, display screen 705 can be one, and the front panel of terminal 700 is arranged;In other embodiments In, display screen 705 can be at least two, be separately positioned on the different surfaces of terminal 700 or in foldover design;In still other reality It applies in example, display screen 705 can be flexible display screen, be arranged on the curved surface of terminal 700 or on fold plane.Even, it shows Display screen 705 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 705 can use LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) Etc. materials preparation.
CCD camera assembly 706 is for acquiring image or video.Optionally, CCD camera assembly 706 include front camera and Rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.One In a little embodiments, rear camera at least two is main camera, depth of field camera, wide-angle camera, focal length camera shooting respectively Any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide-angle Camera fusion realizes that pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are clapped Camera shooting function.In some embodiments, CCD camera assembly 706 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp, It is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for not With the light compensation under colour temperature.
Voicefrequency circuit 707 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and will Sound wave, which is converted to electric signal and is input to processor 701, to be handled, or is input to radio circuit 704 to realize voice communication. For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 700 to be multiple.Mike Wind can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 701 or radio circuit will to be come from 704 electric signal is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramic loudspeaker.When When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, it can also be by telecommunications Number the sound wave that the mankind do not hear is converted to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 707 can also include Earphone jack.
Positioning component 708 is used for the current geographic position of positioning terminal 700, to realize navigation or LBS (Location Based Service, location based service).Positioning component 708 can be the GPS (Global based on the U.S. Positioning System, global positioning system), China dipper system or Russia Galileo system positioning group Part.
Power supply 709 is used to be powered for the various components in terminal 700.Power supply 709 can be alternating current, direct current, Disposable battery or rechargeable battery.When power supply 709 includes rechargeable battery, which can be wired charging electricity Pond or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging battery is by wireless The battery of coil charges.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 700 further includes having one or more sensors 710.The one or more sensors 710 include but is not limited to: acceleration transducer 711, gyro sensor 712, pressure sensor 713, fingerprint sensor 714, Optical sensor 715 and proximity sensor 716.
The acceleration that acceleration transducer 711 can detecte in three reference axis of the coordinate system established with terminal 700 is big It is small.For example, acceleration transducer 711 can be used for detecting component of the acceleration of gravity in three reference axis.Processor 701 can With the acceleration of gravity signal acquired according to acceleration transducer 711, touch display screen 705 is controlled with transverse views or longitudinal view Figure carries out the display of user interface.Acceleration transducer 711 can be also used for the acquisition of game or the exercise data of user.
Gyro sensor 712 can detecte body direction and the rotational angle of terminal 700, and gyro sensor 712 can To cooperate with acquisition user to act the 3D of terminal 700 with acceleration transducer 711.Processor 701 is according to gyro sensor 712 Following function may be implemented in the data of acquisition: when action induction (for example changing UI according to the tilt operation of user), shooting Image stabilization, game control and inertial navigation.
The lower layer of side frame and/or touch display screen 705 in terminal 700 can be set in pressure sensor 713.Work as pressure When the side frame of terminal 700 is arranged in sensor 713, user can detecte to the gripping signal of terminal 700, by processor 701 Right-hand man's identification or prompt operation are carried out according to the gripping signal that pressure sensor 713 acquires.When the setting of pressure sensor 713 exists When the lower layer of touch display screen 705, the pressure operation of touch display screen 705 is realized to UI circle according to user by processor 701 Operability control on face is controlled.Operability control includes button control, scroll bar control, icon control, menu At least one of control.
Fingerprint sensor 714 is used to acquire the fingerprint of user, collected according to fingerprint sensor 714 by processor 701 The identity of fingerprint recognition user, alternatively, by fingerprint sensor 714 according to the identity of collected fingerprint recognition user.It is identifying When the identity of user is trusted identity out, the user is authorized to execute relevant sensitive operation, the sensitive operation packet by processor 701 Include solution lock screen, check encryption information, downloading software, payment and change setting etc..Terminal can be set in fingerprint sensor 714 700 front, the back side or side.When being provided with physical button or manufacturer Logo in terminal 700, fingerprint sensor 714 can be with It is integrated with physical button or manufacturer Logo.
Optical sensor 715 is for acquiring ambient light intensity.In one embodiment, processor 701 can be according to optics The ambient light intensity that sensor 715 acquires controls the display brightness of touch display screen 705.Specifically, when ambient light intensity is higher When, the display brightness of touch display screen 705 is turned up;When ambient light intensity is lower, the display for turning down touch display screen 705 is bright Degree.In another embodiment, the ambient light intensity that processor 701 can also be acquired according to optical sensor 715, dynamic adjust The acquisition parameters of CCD camera assembly 706.
Proximity sensor 716, also referred to as range sensor are generally arranged at the front panel of terminal 700.Proximity sensor 716 For acquiring the distance between the front of user Yu terminal 700.In one embodiment, when proximity sensor 716 detects use When family and the distance between the front of terminal 700 gradually become smaller, touch display screen 705 is controlled from bright screen state by processor 701 It is switched to breath screen state;When proximity sensor 716 detects user and the distance between the front of terminal 700 becomes larger, Touch display screen 705 is controlled by processor 701 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal 700 of structure shown in Fig. 8, can wrap It includes than illustrating more or fewer components, perhaps combine certain components or is arranged using different components.
The embodiment of the present application also provides a kind of non-transitorycomputer readable storage mediums, when in the storage medium When instruction is executed by the processor of mobile terminal, so that mobile terminal is able to carry out what above-mentioned Fig. 2 or embodiment illustrated in fig. 3 provided Audio control method.
The embodiment of the present application also provides a kind of computer program products comprising instruction, when it runs on computers When, so that the audio control method that computer executes above-mentioned Fig. 2 or embodiment illustrated in fig. 3 provides.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (11)

1. a kind of audio control method, which is characterized in that the described method includes:
First webpage receives the audio play instruction from the second webpage, and the audio play instruction is existed by second webpage It detects and sends after audio player operation, carry the audio-frequency information and broadcast state letter of the audio played in second webpage Breath;
First webpage determines multiple controls using the audio-frequency information and the broadcast state information as the parameter of control element Part element;
First webpage generates audio play control, shows the audio play control, institute according to the multiple control element Audio play control is stated for being associated with the control to the audio.
2. the method as described in claim 1, which is characterized in that after the display audio play control, further includes:
When first webpage, which is based on the audio play control, detects audio frequency control operation, sent to second webpage Audio frequency control instruction, the audio frequency control instruction are used to indicate second webpage and control the audio.
3. method according to claim 2, which is characterized in that the audio frequency control instruction includes audio pause instruction, audio Play instruction, audio deceleration play instruction, audio volume regulating command, audio collection instruction, audio is accelerated to buy in instruction Any one.
4. the method as described in claim 1, which is characterized in that after the display audio play control, further includes:
When first webpage receives audio out code or webpage refreshing instruction from second webpage, sound is established Frequency player module;
First webpage is played according to the audio-frequency information and broadcast state information of the audio by the audio player module The audio.
5. the described in any item methods of claim 1-4, which is characterized in that first webpage receives the sound from the second webpage Frequency play instruction, comprising:
First webpage receives the audio play instruction that web browser is sent, and the web browser is to open described first The browser of webpage and second webpage, the audio play instruction sent for receiving second webpage, and to institute It states the first webpage and forwards the audio play instruction.
6. a kind of audio control apparatus, which is characterized in that described device includes:
Receiving module, for receiving the audio play instruction from the second webpage, the audio play instruction is by described second What webpage was sent after detecting audio player operation, carry audio-frequency information and the broadcasting of the audio played in second webpage Status information;
Determining module, for determining multiple using the audio-frequency information and the broadcast state information as the parameter of control element Control element;
Display module is generated, for generating audio play control according to the multiple control element, shows that the audio plays control Part, the audio play control are used to be associated with the control to the audio.
7. device as claimed in claim 6, which is characterized in that described device further include:
Sending module, for when first webpage be based on the audio play control detect audio frequency control operation when, to institute It states the second webpage and sends audio frequency control instruction, the audio frequency control instruction is used to indicate second webpage and carries out to the audio Control.
8. device as claimed in claim 7, which is characterized in that the audio frequency control instruction includes audio pause instruction, audio Play instruction, audio deceleration play instruction, audio volume regulating command, audio collection instruction, audio is accelerated to buy in instruction Any one.
9. device as claimed in claim 6, which is characterized in that described device further include:
Module is established, for establishing when receiving audio out code or the webpage refreshing instruction from second webpage Audio player module;
Playing module is broadcast for the audio-frequency information and broadcast state information according to the audio by the audio player module Put the audio.
10. device as claim in any one of claims 6-9, which is characterized in that the receiving module is used for:
Receive the audio play instruction that web browser is sent, the web browser is to open first webpage and described the The browser of two webpages, the audio play instruction sent for receiving second webpage, and turn to first webpage Send out audio play instruction described.
11. a kind of computer readable storage medium, instruction is stored on the computer readable storage medium, which is characterized in that The step of any one method described in claim 1-5 is realized when described instruction is executed by processor.
CN201811004981.1A 2018-08-30 2018-08-30 Audio control method, device and storage medium Active CN109101166B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811004981.1A CN109101166B (en) 2018-08-30 2018-08-30 Audio control method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811004981.1A CN109101166B (en) 2018-08-30 2018-08-30 Audio control method, device and storage medium

Publications (2)

Publication Number Publication Date
CN109101166A true CN109101166A (en) 2018-12-28
CN109101166B CN109101166B (en) 2021-06-22

Family

ID=64864511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811004981.1A Active CN109101166B (en) 2018-08-30 2018-08-30 Audio control method, device and storage medium

Country Status (1)

Country Link
CN (1) CN109101166B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109858237A (en) * 2019-03-05 2019-06-07 广州酷狗计算机科技有限公司 Audio data collecting method, apparatus, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246665A (en) * 2012-02-08 2013-08-14 腾讯科技(深圳)有限公司 Method and apparatus for keeping music playing during web page switching
CN103279321A (en) * 2013-05-07 2013-09-04 青岛海信电器股份有限公司 Audio and video control device and audio and video control method
CN106155507A (en) * 2015-03-31 2016-11-23 北京搜狗科技发展有限公司 A kind of page content display method and electronic equipment
WO2016200431A1 (en) * 2015-06-07 2016-12-15 Apple Inc. Audio control for web browser
CN106980446A (en) * 2016-01-19 2017-07-25 阿里巴巴集团控股有限公司 A kind of condition control method and device of page application
CN108388628A (en) * 2018-02-12 2018-08-10 腾讯科技(深圳)有限公司 The method and device that web-page audio plays

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246665A (en) * 2012-02-08 2013-08-14 腾讯科技(深圳)有限公司 Method and apparatus for keeping music playing during web page switching
CN103279321A (en) * 2013-05-07 2013-09-04 青岛海信电器股份有限公司 Audio and video control device and audio and video control method
CN106155507A (en) * 2015-03-31 2016-11-23 北京搜狗科技发展有限公司 A kind of page content display method and electronic equipment
WO2016200431A1 (en) * 2015-06-07 2016-12-15 Apple Inc. Audio control for web browser
CN106980446A (en) * 2016-01-19 2017-07-25 阿里巴巴集团控股有限公司 A kind of condition control method and device of page application
CN108388628A (en) * 2018-02-12 2018-08-10 腾讯科技(深圳)有限公司 The method and device that web-page audio plays

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109858237A (en) * 2019-03-05 2019-06-07 广州酷狗计算机科技有限公司 Audio data collecting method, apparatus, terminal and storage medium

Also Published As

Publication number Publication date
CN109101166B (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN107959860B (en) The method and apparatus of display live streaming list
CN109451343A (en) Video sharing method, apparatus, terminal and storage medium
CN108401124A (en) The method and apparatus of video record
CN109977333A (en) Webpage display process, device, computer equipment and storage medium
CN109874312A (en) The method and apparatus of playing audio-fequency data
CN109302385A (en) Multimedia resource sharing method, device and storage medium
CN109660855A (en) Paster display methods, device, terminal and storage medium
CN107888968A (en) Player method, device and the computer-readable storage medium of live video
CN110491358A (en) Carry out method, apparatus, equipment, system and the storage medium of audio recording
CN110139143B (en) Virtual article display method, device, computer equipment and storage medium
CN109327608A (en) Method, terminal, server and the system that song is shared
CN109168073A (en) The method and apparatus that direct broadcasting room cover is shown
CN108848394A (en) Net cast method, apparatus, terminal and storage medium
EP3618055B1 (en) Audio mixing method and terminal, and storage medium
CN108965757A (en) video recording method, device, terminal and storage medium
CN109346111A (en) Data processing method, device, terminal and storage medium
CN108965922A (en) Video cover generation method, device and storage medium
CN109068008A (en) The tinkle of bells setting method, device, terminal and storage medium
CN109922356A (en) Video recommendation method, device and computer readable storage medium
CN110248236A (en) Video broadcasting method, device, terminal and storage medium
CN109275013A (en) Method, apparatus, equipment and the storage medium that virtual objects are shown
CN107911738A (en) A kind of method and apparatus for making expression present
CN110266982A (en) The method and system of song is provided in recorded video
CN109982129A (en) Control method for playing back, device and the storage medium of short-sighted frequency
CN109800003A (en) Using method for down loading, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant