CN105677286B - A kind of browser volume adjusting method and device - Google Patents

A kind of browser volume adjusting method and device Download PDF

Info

Publication number
CN105677286B
CN105677286B CN201410665496.4A CN201410665496A CN105677286B CN 105677286 B CN105677286 B CN 105677286B CN 201410665496 A CN201410665496 A CN 201410665496A CN 105677286 B CN105677286 B CN 105677286B
Authority
CN
China
Prior art keywords
volume
browsing pages
browser
audio output
output stream
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410665496.4A
Other languages
Chinese (zh)
Other versions
CN105677286A (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.)
Tencent Technology Wuhan Co Ltd
Original Assignee
Tencent Technology Wuhan 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 Tencent Technology Wuhan Co Ltd filed Critical Tencent Technology Wuhan Co Ltd
Priority to CN201410665496.4A priority Critical patent/CN105677286B/en
Publication of CN105677286A publication Critical patent/CN105677286A/en
Application granted granted Critical
Publication of CN105677286B publication Critical patent/CN105677286B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention discloses a kind of browser volume adjusting methods, which comprises obtains the volume adjustment instruction for target browsing pages in browser of user's input;Obtain browser there is currently browsing pages and audio output stream between mapping relations;According to the mapping relations between the browsing pages and audio output stream, at least one corresponding audio output stream of target browsing pages is obtained;The corresponding volume adjustment class function of the target browsing pages is called to carry out volume adjustment at least one corresponding audio output stream of the target browsing pages.The embodiment of the invention also discloses a kind of browser volume adjustment devices.Using the present invention, volume adjustment can be carried out for the audio output in the single browsing pages in browser.

Description

A kind of browser volume adjusting method and device
Technical field
The present invention relates to field of computer technology more particularly to a kind of browser volume adjusting methods and device.
Background technique
With the rapid development of Internet technology, browser at one can not lacked in for people's lives indispensable tool, It is accustomed in the various audio-videos of internet browsing as people's lives using browser, and people are frequently found during online Some webpages carry audio output, user or can choose the such webpage of closing, will no longer be able to browse the webpage in this way Other content, or need to reload the webpage when necessary;Browser is integrally carried out volume adjustment by user, in this way should The audio output in other browsing pages opened in browser is also mute therewith.It i.e. in the prior art can not be in browser Single browsing pages in audio output carry out volume adjustment.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of browser volume adjusting method and device, it can be in browser Single browsing pages in audio output carry out volume adjustment.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of browser volume adjusting method, the sides Method includes:
Obtain the volume adjustment instruction for target browsing pages in browser of user's input;
Obtain browser there is currently browsing pages and audio output stream between mapping relations;
According to the mapping relations between the browsing pages and audio output stream, it is corresponding at least to obtain target browsing pages One audio output stream;
Call the corresponding volume adjustment class function of the target browsing pages corresponding at least to the target browsing pages One audio output stream carries out volume adjustment.
Correspondingly, the embodiment of the invention also provides a kind of browser volume adjustment devices, comprising:
Regulating command obtains module, for obtaining the volume adjustment for target browsing pages in browser of user's input Instruction, and it is corresponding at least according to the volume adjustment instruction triggering associated audio acquisition module acquisition target browsing pages One audio output stream;
Mapping relations obtain module, for obtain browser there is currently browsing pages and audio output stream between reflect Penetrate relationship;
Associated audio obtains module, for obtaining according to the mapping relations between the browsing pages and audio output stream At least one corresponding audio output stream of target browsing pages;
Volume adjusting module, for calling the corresponding volume adjustment class function of the target browsing pages clear to the target At least one corresponding audio output stream of the page of looking at carries out volume adjustment.
Browser in the present embodiment can obtain target by the mapping relations between browsing pages and audio output stream The corresponding audio output stream of browsing pages, and then by the corresponding volume adjustment class function of invocation target browsing pages to the mesh It marks at least one corresponding audio output stream of browsing pages and carries out volume adjustment, to realize for single clear in browser The audio output look in the page carries out volume adjustment.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram of one of embodiment of the present invention browser volume adjusting method;
Fig. 2 is the flow diagram of the browser volume adjusting method of another embodiment of the present invention;
Fig. 3 is the flow diagram of the browser volume adjusting method of another embodiment of the present invention;
Fig. 4 is the structural schematic diagram of one of embodiment of the present invention browser volume adjustment device.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Browser volume adjusting method in the embodiment of the present invention may be implemented in Internet-browser, in optional implementation It especially may be implemented to implement in the browser of chromium kernel or webkit kernel in example.
Fig. 1 is the flow diagram of one of embodiment of the present invention browser volume adjusting method, this reality as shown in the figure The browser volume adjusting method process applied in example may include:
S101 obtains the volume adjustment instruction for target browsing pages in browser of user's input.
In the specific implementation, the volume adjustment control for being directed to target browsing pages can be arranged in browser in browser interface Interface processed, such as can be volume up/down or mute/normal control button or volume drag function interface, thus logical Cross the volume adjustment instruction for target browsing pages in browser that the volume adjustment control interface obtains user's input.It is described Target browsing pages can be the browsing pages currently shown, or when appointing at least one browsing pages of front opening One or more browsing pages.
S102, obtain browser there is currently browsing pages and audio output stream between mapping relations.
In the specific implementation, can browser create audio output stream when, establish the audio output stream with it is clear where it The mapping relations look between the page, and then be stored in the data file of the browser specified path, to when needed may be used With from the data file of the specified path obtain browser there is currently browsing pages and audio output stream between reflect Relationship is penetrated, empties when browsing pages are closed or browser is closed save in the data file automatically in an alternative embodiment Mapping relations between corresponding browsing pages and audio output stream.
By taking the browser of chromium kernel as an example, when needing to export sound, chromium kernel can be first Load pepflashplayer.dll plug-in unit because from safety etc. consider, chromium can plugin (plug-in unit) into Journey is set as sandbox (sandbox), therefore plugin (plug-in unit) process can not directly play sound, therefore The voice data got from browsing pages can be written in shared drive by pepflashplayer.dll plug-in unit, then The Brwoser process of chromium kernel can read the voice data in shared drive, and the core sound of call operation system Frequency API:Core Audio APIs, creation audio output stream carry out the broadcasting of sound.The browser in use may At least one browsing pages can be opened, it, can be defeated for the audio when browser is that some browsing pages creates audio output stream One output traffic identifier of stream distribution out, and the data file for being stored in specified path is associated with the page iden-tity of the browsing pages In.In an alternative embodiment, the browsing pages currently shown can be determined as the sound when creating audio output stream by browser Browsing pages where frequency output stream.
It is corresponding to obtain target browsing pages according to the mapping relations between the browsing pages and audio output stream by S103 At least one audio output stream.
In the specific implementation, the target browsing pages can be the current by operation pages of browser, or user The target browsing pages specified at least one browsing pages of browser when front opening, such as can be defeated according to user is obtained The volume adjustment instruction for target browsing pages in browser entered obtains at least one corresponding audio of target browsing pages Output stream.In other alternative embodiments, the target browsing pages can be browsed for browser when at least one of front opening Any browsing pages in the page, such as browser currently open browsing pages A, browsing pages B and browsing pages C, when User opens in browsing pages A plays video, then browser can be using browsing pages B and browsing pages C as the present embodiment In target browsing pages.
S104 calls the corresponding volume adjustment class function of the target browsing pages corresponding to the target browsing pages At least one audio output stream carries out volume adjustment.
In the specific implementation, the corresponding volume output control object of the target browsing pages can be obtained first, then adjust With the volume adjustment class function in volume output control object at least one corresponding audio of the target browsing pages Output stream carries out volume adjustment.Still by taking the browser of chromium kernel as an example, in the browser of chromium kernel, each Browsing pages are corresponding with an image rendering object RendererViewHost and an audio rendering objects AudioRendererHost includes that volume exports control object in the audio rendering objects AudioOutputController can export the volume tune of control object by the corresponding volume of invocation target browsing pages Class function SetVolumes () is saved at least one corresponding audio output stream of target browsing pages progress volume adjustment. Such as SetVolumes (0) is called the volume of audio output stream can be set to 0, i.e., it is mute.
Browser in the present embodiment can obtain target by the mapping relations between browsing pages and audio output stream The corresponding audio output stream of browsing pages, and then by the corresponding volume adjustment class function of invocation target browsing pages to the mesh It marks at least one corresponding audio output stream of browsing pages and carries out volume adjustment, to realize for single clear in browser The audio output look in the page carries out volume adjustment.
Fig. 2 is the flow diagram of the browser volume adjusting method of another embodiment of the present invention, this implementation as shown in the figure Example in browser volume adjusting method process may include:
S201 establishes the audio output stream and the browsing pages where it when the browser creates audio output stream Between mapping relations.
Specifically, browser may open at least one browsing pages in use, when browser is that some is clear The page of looking at create audio output stream when, can for the audio output stream distribute an output traffic identifier, and with the browsing pages Page iden-tity association is stored in the data file of specified path, in an alternative embodiment when browsing pages are closed or browser Automatically the mapping relations between the correspondence browsing pages saved in the data file and audio output stream are emptied when closing.Optional In embodiment, the browsing pages currently shown can be determined as the audio output stream when creating audio output stream by browser The browsing pages at place.
S202 obtains the volume adjustment instruction for target browsing pages in browser of user's input.
In the specific implementation, the volume adjustment control for being directed to target browsing pages can be arranged in browser in browser interface Interface processed, such as can be volume up/down or mute/normal control button or volume drag function interface, thus logical Cross the volume adjustment instruction for target browsing pages in browser that the volume adjustment control interface obtains user's input.It is described Target browsing pages can be the browsing pages currently shown, or when appointing at least one browsing pages of front opening One or more browsing pages.
S203, obtain browser there is currently browsing pages and audio output stream between mapping relations.
It is corresponding to obtain target browsing pages according to the mapping relations between the browsing pages and audio output stream by S204 At least one audio output stream.
S205 obtains the corresponding volume output control object of the target browsing pages.
By taking the browser of chromium kernel as an example, in the browser of chromium kernel, each browsing pages are corresponding There are an image rendering object RendererViewHost and an audio rendering objects AudioRendererHost, in the sound It include that volume exports control object AudioOutputController in frequency rendering objects, browser gets user's input For the volume adjustment instruction of target browsing pages in browser, can search to obtain the corresponding volume of target browsing pages defeated Control object out.
S206 calls the volume adjustment class function in the volume output control object corresponding to the target browsing pages At least one audio output stream carry out volume adjustment.
Specifically, the volume adjustment class function of control object can be exported by the corresponding volume of invocation target browsing pages SetVolumes () carries out volume adjustment at least one corresponding audio output stream of the target browsing pages.Such as it calls SetVolumes (0) can set the volume of audio output stream to 0, i.e., mute.
Fig. 3 is the flow diagram of the browser volume adjusting method of another embodiment of the present invention, this implementation as shown in the figure Example in browser volume adjusting method process may include:
S301 obtains the volume adjustment instruction for target browsing pages in browser of user's input.
In the specific implementation, the volume adjustment control for being directed to target browsing pages can be arranged in browser in browser interface Interface processed, such as can be volume up/down or mute/normal control button or volume drag function interface, thus logical Cross the volume adjustment instruction for target browsing pages in browser that the volume adjustment control interface obtains user's input.It is described Target browsing pages can be the browsing pages currently shown, or when appointing at least one browsing pages of front opening One or more browsing pages.
S302, obtain browser there is currently browsing pages and audio output stream between mapping relations.
It is corresponding to obtain target browsing pages according to the mapping relations between the browsing pages and audio output stream by S303 At least one audio output stream.
S304 obtains the corresponding volume output control object of the target browsing pages.
S305 calls the volume adjustment class function in the volume output control object corresponding to the target browsing pages At least one audio output stream carry out volume adjustment.
S306, saves volume adjustment record, and the volume adjustment record includes the page iden-tity of the target browsing pages With volume after adjusting.
It is stored in the data file of specified path in the specific implementation, browser can record the volume adjustment, In The volume adjustment saved in the data file is emptied automatically when browsing pages are closed or browser is closed in alternative embodiment Record.
S307 judges whether is browsing pages where the audio output stream when the browser creates audio output stream Otherwise there are volume adjustment records to execute S309 if so then execute S308.
Specifically, in an alternative embodiment, browser can be when creating audio output stream, the browse page that will currently show Face is determined as the browsing pages where the audio output stream, so as to according to the browse page where the audio output stream being created The page iden-tity in face is searched and is currently recorded with the presence or absence of the volume adjustment of the browsing pages.
In an alternative embodiment, after the audio output stream broadcasting in browsing pages, browser can be again clear for this It lookes at one audio output stream of page creation, such as replays original audio output stream or play the audio output of lower a segment of audio Stream, the browsing pages where at this moment browser may determine that the audio output stream are recorded with the presence or absence of volume adjustment.
The volume of the audio output stream is arranged according to volume after the adjusting in volume adjustment record by S308.
Specifically, in being recorded according to the volume adjustment of browsing pages the last time where the audio output stream Volume after adjusting, such as 50% or 0, are arranged the volume of the newly created audio output stream.
S309, the volume of audio output stream described in default setting.
Even judge that the browsing pages where newly-built audio output stream there is no volume adjustment record, are then set according to default Set the volume of the audio output stream.The default setting can be the pre-set whole default volume of browser, such as can Think 50%, 75% or 100%.
Fig. 4 is the structural schematic diagram of one of embodiment of the present invention browser volume adjustment device, the embodiment of the present invention In browser volume adjustment device can be realized in the form of Internet-browser or browser plug-in, in alternative embodiment In especially may be implemented in the browser of chromium kernel or webkit kernel, it is clear in the present embodiment as shown in Figure 4 Device volume adjustment device of looking at may include:
Mapping relations obtain module 410, for obtain browser there is currently browsing pages and audio output stream between Mapping relations.
In the specific implementation, browser volume adjustment device can establish the audio when browser creates audio output stream Mapping relations between output stream and browsing pages where it, and then be stored in the data file of specified path, to work as When needing mapping relations obtain module 410 can be obtained from the data file of the specified path browser there is currently it is clear The mapping relations look between the page and audio output stream, in an alternative embodiment when browsing pages are closed or browser is closed Browser volume adjustment device can empty reflecting between the correspondence browsing pages saved in the data file and audio output stream Penetrate relationship.
By taking the browser of chromium kernel as an example, when needing to export sound, chromium kernel can be first Load pepflashplayer.dll plug-in unit because from safety etc. consider, chromium can plugin (plug-in unit) into Journey is set as sandbox (sandbox), therefore plugin (plug-in unit) process can not directly play sound, therefore The voice data got from browsing pages can be written in shared drive by pepflashplayer.dll plug-in unit, then The Brwoser process of chromium kernel can read the voice data in shared drive, and the core sound of call operation system Frequency API:Core Audio APIs, creation audio output stream carry out the broadcasting of sound.The browser in use may At least one browsing pages can be opened, it, can be defeated for the audio when browser is that some browsing pages creates audio output stream One output traffic identifier of stream distribution out, and the data file for being stored in specified path is associated with the page iden-tity of the browsing pages In.In an alternative embodiment, the browsing pages currently shown can be determined as the sound when creating audio output stream by browser Browsing pages where frequency output stream.
Regulating command obtains module 440, for obtaining the volume for target browsing pages in browser of user's input Regulating command, and the associated audio is triggered according to the volume adjustment instruction and obtains the acquisition target browsing pages pair of module 420 At least one audio output stream answered.
Associated audio obtains module 420, for obtaining according to the mapping relations between the browsing pages and audio output stream Take at least one corresponding audio output stream of target browsing pages.
In the specific implementation, the target browsing pages can be the current by operation pages of browser, or user The target browsing pages specified at least one browsing pages of browser when front opening, such as can be defeated according to user is obtained The volume adjustment instruction for target browsing pages in browser entered obtains at least one corresponding audio of target browsing pages Output stream.In other alternative embodiments, the target browsing pages can be browsed for browser when at least one of front opening Any browsing pages in the page, such as browser currently open browsing pages A, browsing pages B and browsing pages C, when User opens in browsing pages A plays video, then associated audio acquisition module 420 can be by browsing pages B and browsing pages C As the target browsing pages in the embodiment of the present invention.
Volume adjusting module 430, for calling the corresponding volume adjustment class function of the target browsing pages to the mesh It marks at least one corresponding audio output stream of browsing pages and carries out volume adjustment.
In the specific implementation, volume adjusting module 430 can obtain the corresponding volume output of the target browsing pages first Then control object calls the volume adjustment class function in the volume output control object corresponding to the target browsing pages At least one audio output stream carry out volume adjustment.Still by taking the browser of chromium kernel as an example, in chromium kernel Browser in, each browsing pages are corresponding with an image rendering object RendererViewHost and the rendering pair of audio It include that volume exports control object in the audio rendering objects as AudioRendererHost AudioOutputController, volume adjusting module 430 can pass through the corresponding volume output control of invocation target browsing pages The volume adjustment class function SetVolumes () of object processed is at least one corresponding audio output stream of the target browsing pages Carry out volume adjustment.Such as SetVolumes (0) is called the volume of audio output stream can be set to 0, i.e., it is mute.
Optionally, the browser volume adjustment device in the embodiment of the present invention can further include:
Record preserving module 450 is adjusted, for saving volume adjustment record, the volume adjustment record includes the target Volume after the page iden-tity and adjusting of browsing pages.
Specified path is stored in the specific implementation, adjusting record preserving module 450 and can record the volume adjustment In data file, adjusting record preserving module 450 when browsing pages are closed or browser is closed in an alternative embodiment can To empty the volume adjustment saved in the data file record.
And then the volume adjusting module 430 can be also used for: when the browser creates audio output stream, judgement should Browsing pages where audio output stream are recorded with the presence or absence of volume adjustment, if then according to the tune in volume adjustment record The volume of the audio output stream is arranged in volume after section.
Specifically, volume adjusting module 430 can determine the browsing pages currently shown when creating audio output stream For the browsing pages where the audio output stream, the page of the browsing pages where the audio output stream being created so as to basis Face mark, searches and currently records with the presence or absence of the volume adjustment of the browsing pages.
In an alternative embodiment, after the audio output stream broadcasting in browsing pages, browser can be again clear for this It lookes at one audio output stream of page creation, such as replays original audio output stream or play the audio output of lower a segment of audio Stream, the browsing pages where at this moment volume adjusting module 430 may determine that the audio output stream are recorded with the presence or absence of volume adjustment, The volume of the audio output stream is then set according to volume after the adjusting in volume adjustment record if it exists.
Optionally, the browser volume adjustment device in the embodiment of the present invention can further include:
Relationship maps establish module 460, for establishing the audio output stream when the browser creates audio output stream With the mapping relations between the browsing pages where it.
Specifically, browser may open at least one browsing pages in use, when browser is that some is clear When the page of looking at creates audio output stream, relationship maps establish module 460 and can fail to be sold at auction for the audio output stream one output of distribution Know, and be associated in the data file for being stored in specified path with the page iden-tity of the browsing pages, in an alternative embodiment when clear Relationship maps establish module 460 can to empty the correspondence saved in the data file clear when the page of looking at is closed or browser is closed The mapping relations look between the page and audio output stream.In an alternative embodiment, browser can when creating audio output stream, The browsing pages browsing pages currently shown being determined as where the audio output stream.
Browser in the present embodiment can obtain target by the mapping relations between browsing pages and audio output stream The corresponding audio output stream of browsing pages, and then by the corresponding volume adjustment class function of invocation target browsing pages to the mesh It marks at least one corresponding audio output stream of browsing pages and carries out volume adjustment, to realize for single clear in browser The audio output look in the page carries out volume adjustment.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (22)

1. a kind of browser volume adjusting method, which is characterized in that the described method includes:
When browser creates audio output stream, the mapping established between the audio output stream and browsing pages where it is closed System, comprising:
Output traffic identifier is distributed for the audio output stream, by the page mark of the output traffic identifier and the browsing pages where it Knowledge is associated, being associated with based on output traffic identifier and the page iden-tity establish the audio output stream with where it Mapping relations between the audio output stream and browsing pages where it are stored in by the mapping relations between browsing pages In the data file of the browser specified path;
Obtain the volume adjustment instruction for target browsing pages in browser of user's input;
Obtain browser there is currently browsing pages and audio output stream between mapping relations;
According to the mapping relations between the browsing pages and audio output stream, obtain target browsing pages it is corresponding at least one Audio output stream;
Call the corresponding volume adjustment class function of the target browsing pages it is corresponding to the target browsing pages at least one Audio output stream carries out volume adjustment, comprising:
Obtain the corresponding volume output control object of the target browsing pages;
Call the volume adjustment class function corresponding to the target browsing pages at least one in the volume output control object A audio output stream carries out volume adjustment.
2. browser volume adjusting method as described in claim 1, which is characterized in that described to obtain the target browsing pages Corresponding volume exports control object
The corresponding audio rendering objects of the target browsing pages are obtained, the audio rendering objects include volume output control pair As.
3. browser volume adjusting method as described in claim 1, which is characterized in that described to call the volume output control Volume adjustment class function in object carries out volume adjustment at least one corresponding audio output stream of the target browsing pages Include:
Call the volume adjustment class function SetVolumes () of the volume output control object to the target browsing pages pair At least one audio output stream answered carries out volume adjustment.
4. browser volume adjusting method as described in claim 1, which is characterized in that described to call the target browsing pages Corresponding volume adjustment class function at least one corresponding audio output stream of the target browsing pages carry out volume adjustment it Afterwards further include:
Volume adjustment record is saved, the volume adjustment record includes sound after the page iden-tity and adjusting of the target browsing pages Amount;
When the browser creates audio output stream, the browsing pages where judging the audio output stream whether there is volume tune Section record, if the volume of the audio output stream is then arranged according to volume after the adjusting in volume adjustment record, if not The then volume of audio output stream described in default setting.
5. browser volume adjusting method as claimed in claim 4, which is characterized in that described to be recorded according to the volume adjustment In adjusting after volume the volume of the audio output stream be set include:
Volume is arranged after adjusting in the volume adjustment record of browsing pages the last time where the audio output stream The volume of the audio output stream.
6. browser volume adjusting method as claimed in claim 5, which is characterized in that the browsing where the audio output stream Volume is 50% or 0 after adjusting in the volume adjustment record of page the last time.
7. browser volume adjusting method as claimed in claim 4, which is characterized in that audio output described in the default setting The volume of stream includes that the browser presets whole default volume.
8. browser volume adjusting method as claimed in claim 7, which is characterized in that the pre-set entirety of browser Default volume is 50%, 75% or 100%.
9. browser volume adjusting method as described in claim 1, which is characterized in that described to call the target browsing pages Corresponding volume adjustment class function carries out volume adjustment packet at least one corresponding audio output stream of the target browsing pages It includes:
0 is set by the volume of at least one corresponding audio output stream of the target browsing pages.
10. browser volume adjusting method as described in claim 1, which is characterized in that the target browsing pages are current The browsing pages of display, or for when any one or more browsing pages at least one browsing pages of front opening.
11. such as browser volume adjusting method according to any one of claims 1 to 10, which is characterized in that the method is answered For with the browser of chromium kernel or webkit kernel.
12. a kind of browser volume adjustment device characterized by comprising
Relationship maps establish module, for when browser create audio output stream when, establish the audio output stream and its where Mapping relations between browsing pages are specifically used for exporting traffic identifier for audio output stream distribution, the output are failed to be sold at auction Know and be associated with the page iden-tities of the browsing pages where it, exports being associated with for traffic identifier and the page iden-tity based on described Establish the mapping relations between the audio output stream and browsing pages where it, will the audio output stream and its where Mapping relations between browsing pages are stored in the data file of the browser specified path;
Regulating command obtains module, and the volume adjustment for target browsing pages in browser for obtaining user's input refers to It enables, and the associated audio is triggered according to the volume adjustment instruction and obtains module acquisition target browsing pages corresponding at least one A audio output stream;
Mapping relations obtain module, for obtain browser there is currently browsing pages and audio output stream between mapping pass System;
Associated audio obtains module, for obtaining target according to the mapping relations between the browsing pages and audio output stream At least one corresponding audio output stream of browsing pages;
Volume adjusting module, for calling the corresponding volume adjustment class function of the target browsing pages to the target browse page At least one corresponding audio output stream of face carries out volume adjustment, is specifically used for obtaining the corresponding volume of the target browsing pages Control object is exported, calls the volume adjustment class function in the volume output control object corresponding to the target browsing pages At least one audio output stream carry out volume adjustment.
13. browser volume adjustment device as claimed in claim 12, which is characterized in that the volume adjusting module is also used In: the corresponding audio rendering objects of the target browsing pages are obtained, the audio rendering objects include volume output control pair As.
14. browser volume adjustment device as claimed in claim 12, which is characterized in that the volume adjusting module is also used In: call the volume adjustment class function SetVolumes () of the volume output control object to the target browsing pages pair At least one audio output stream answered carries out volume adjustment.
15. browser volume adjustment device as claimed in claim 12, which is characterized in that further include:
Record preserving module is adjusted, for saving volume adjustment record, the volume adjustment record includes the target browse page Volume after the page iden-tity and adjusting in face;
The volume adjusting module is also used to: when the browser creates audio output stream, judging audio output stream place Browsing pages with the presence or absence of volume adjustment record, if then according to the volume adjustment record in adjusting after volume be arranged institute The volume of audio output stream is stated, if the otherwise volume of audio output stream described in default setting.
16. browser volume adjustment device as claimed in claim 15, which is characterized in that the volume adjusting module is also used In:
Volume is arranged after adjusting in the volume adjustment record of browsing pages the last time where the audio output stream The volume of the audio output stream.
17. browser volume adjustment device as claimed in claim 16, which is characterized in that clear where the audio output stream Look at page the last time volume adjustment record in adjusting after volume be 50% or 0.
18. browser volume adjustment device as claimed in claim 15, which is characterized in that the volume adjusting module is also used In: the browser presets whole default volume.
19. browser volume adjustment device as claimed in claim 18, which is characterized in that the browser is pre-set whole Body default volume is 50%, 75% or 100%.
20. browser volume adjustment device as claimed in claim 12, which is characterized in that the volume adjusting module is used for:
0 is set by the volume of at least one corresponding audio output stream of the target browsing pages.
21. browser volume adjustment device as claimed in claim 12, which is characterized in that the target browsing pages are current The browsing pages of display, or for when any one or more browsing pages at least one browsing pages of front opening.
22. the browser volume adjustment device as described in any one of claim 12~21, which is characterized in that described device is answered For with the browser of chromium kernel or webkit kernel.
CN201410665496.4A 2014-11-19 2014-11-19 A kind of browser volume adjusting method and device Active CN105677286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410665496.4A CN105677286B (en) 2014-11-19 2014-11-19 A kind of browser volume adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410665496.4A CN105677286B (en) 2014-11-19 2014-11-19 A kind of browser volume adjusting method and device

Publications (2)

Publication Number Publication Date
CN105677286A CN105677286A (en) 2016-06-15
CN105677286B true CN105677286B (en) 2019-11-26

Family

ID=56945015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410665496.4A Active CN105677286B (en) 2014-11-19 2014-11-19 A kind of browser volume adjusting method and device

Country Status (1)

Country Link
CN (1) CN105677286B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112116371A (en) * 2019-06-20 2020-12-22 浙江汉朔电子科技有限公司 Price tag adjusting method, device and equipment for advertisement screen and storage medium
CN111475134B (en) * 2020-06-23 2020-10-09 杭州翔毅科技有限公司 Webpage volume adjusting method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6397253B1 (en) * 1998-10-06 2002-05-28 Bull Hn Information Systems Inc. Method and system for providing high performance Web browser and server communications
CN101650725A (en) * 2009-04-30 2010-02-17 北京搜狗科技发展有限公司 Method and system for controlling sound in browser
CN103646046A (en) * 2012-12-03 2014-03-19 北京奇虎科技有限公司 Method and device for sound control in browser and browser

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789001B (en) * 2009-04-30 2013-07-24 北京搜狗科技发展有限公司 Method and system for controlling sound in browser

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6397253B1 (en) * 1998-10-06 2002-05-28 Bull Hn Information Systems Inc. Method and system for providing high performance Web browser and server communications
CN101650725A (en) * 2009-04-30 2010-02-17 北京搜狗科技发展有限公司 Method and system for controlling sound in browser
CN103646046A (en) * 2012-12-03 2014-03-19 北京奇虎科技有限公司 Method and device for sound control in browser and browser

Also Published As

Publication number Publication date
CN105677286A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
US10056113B2 (en) Video processing method and associated electronic device
CN105208442A (en) Video playing method of video playing application program and apparatus thereof
WO2020249044A1 (en) Method for window-level switching, device, equipment, and storage medium
WO2019179264A1 (en) Video playing method and device, electronic equipment and storage medium
CN103106005A (en) Method and device for arranging status bar icons of mobile appliance
CN103092551B (en) The method of adjustment display effect and device
CN106293426A (en) Screenshotss method and apparatus based on browser of mobile terminal
WO2021027485A1 (en) Information processing method and apparatus, storage medium, and electronic device
CN106293478A (en) Application starts method and device
CN103713828A (en) Method of deleting two desktop icons by collision
CN108881616A (en) A kind of display control method, device, storage medium and terminal
TW201807559A (en) Information input method and device
CN105677286B (en) A kind of browser volume adjusting method and device
CN110119515A (en) A kind of interpretation method, device, terminal and readable storage medium storing program for executing
WO2017045480A1 (en) Webpage animation rendering method and apparatus
CN104216639A (en) Terminal operation method
CN104793836A (en) Information processing method and device based on user operations and terminal
CN104808916B (en) A kind of screenshot method
CN108509189B (en) A kind of component of the H5 time gate based on DOM unifies implementation method
CN107741917B (en) Improved IO current limiting processing method and system
CN107958152A (en) Tamper resistant method, device and equipment based on Virtual File System
CN109213534A (en) A kind of method and device of extension live streaming software function
CN109271601A (en) A kind of page prompts method and electronic equipment based on educational system
CN106484232B (en) A kind of interface display system
WO2014187202A1 (en) Method, device, terminal, and computer storage medium for implementing webpage layout

Legal Events

Date Code Title Description
C06 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