CN101650725A - Method and system for controlling sound in browser - Google Patents

Method and system for controlling sound in browser Download PDF

Info

Publication number
CN101650725A
CN101650725A CN200910083405A CN200910083405A CN101650725A CN 101650725 A CN101650725 A CN 101650725A CN 200910083405 A CN200910083405 A CN 200910083405A CN 200910083405 A CN200910083405 A CN 200910083405A CN 101650725 A CN101650725 A CN 101650725A
Authority
CN
China
Prior art keywords
sound
browser
page
thread
place
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.)
Pending
Application number
CN200910083405A
Other languages
Chinese (zh)
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.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN200910083405A priority Critical patent/CN101650725A/en
Priority to CN201110452007.3A priority patent/CN102622222B/en
Priority to CN 200910262081 priority patent/CN101789001B/en
Publication of CN101650725A publication Critical patent/CN101650725A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a system for controlling sound in a browser, wherein the method comprises the following steps: acknowledging a webpage in which the sound of the browser exists; and controlling the sound in a particular webpage in the browser on the basis of a corresponding relationship between the sound in the browser and the webpage in which the sound exists. Due to the method and the system, the corresponding relationship between the sound and the webpage can be acknowledged and the sound in the browser can be flexibly controlled on the basis of the webpage.

Description

A kind of method and system that sound in the browser is controlled
Technical field
The present invention relates to the browser technology field, particularly relate to a kind of method and system that sound in the browser is controlled.
Background technology
The user not have through regular meeting to hear the number voice that sends in the browser under the situation of expection when using the browser browsing page, the user is felt unexpectedly even is interfered.For example, when entering someone blog, can play the background music of this blog automatically, at this moment, if the user is using certain local player to listen to the music, then can be subjected to the interference of this background music, this moment, the user can only select player to cut out or suspend, which which perhaps this webpage is closed under from the situation of webpage, if can't determine to disturb from webpage then can only directly browser cut out in the known background music.But the result who does like this is, or can't continue to listen to the music, or can't browse the article in the blog, even need reopen browser and could continue browsing page.
For this reason, the browser that has provides overall mute function, and this function can be quiet with whole browser, can so that in the browser all sound all will be in mute state.For example, the user if do not want to be subjected to the interference of the sound in the browser, then can directly start this function when using local player to listen to the music, so just can listen the music in the local player, and meanwhile in browser browsed web content.
But at present increasing user is chosen in online listening to the music on the webpage, and the overall mute function of above-mentioned browser can't satisfy this user's demand.For example, certain user just listens to the music on certain music site, and a plurality of other webpages have been opened simultaneously, at this moment, if be subjected to the interference of the sound in the browser, in a single day then can't eliminate this interference,, then also can't on this music site, listen to the music because start this function by starting the browser mute function.At this moment, the user can only try every possible means to find interference from which webpage, and it is closed; If the user can't find the source of interference, then the webpage beyond the described music site can only be closed singly, up to interference eliminated.As seen, implementation underaction, the convenience of the sound in the prior art control browser.
Summary of the invention
The embodiment of the invention provides a kind of method and system that sound in the browser is controlled, and can control neatly the sound in the browser based on the page.
For achieving the above object, the invention provides following scheme:
A kind of method that sound in the browser is controlled comprises:
Know the page at the sound place in the browser;
Based on the corresponding relation between the sound in the described browser and the place page thereof, the sound in the specific webpage in the described browser is controlled.
Preferably, if the sound in the described browser comprises two or more sound, then:
Describedly know that the page at the sound place in the browser comprises: know in the browser every kind of sound page at place separately;
Described based on the corresponding relation between the sound in the described browser and the place page thereof, sound in the specific webpage in the browser controlled comprise:, the various sound that are in the browser in the different pages are independently controlled respectively based on the corresponding relation separately between every kind of sound and its place page in the browser.
Preferably, describedly know that the page at the sound place in the browser comprises:
Determine the thread at the sound place in the browser;
Determine the page at the sound place in the described browser according to the thread at the sound place in the described browser.
Preferably, the thread at the sound place in described definite browser comprises:
When intercepting the function that plays sound, obtain the thread identifier of the thread that calls the described function that plays sound;
The thread of described thread identifier correspondence is defined as the thread at the sound place in the described browser.
Preferably, also comprise: the function of thread, the sub-thread of record page upper thread journey are created in interception in advance;
Described thread according to the sound place in the described browser determines that the page at the sound place in the described browser comprises: when the thread at the thread at the sound place in the browser and page place is not same thread, by counter father's thread of looking into the thread at the sound place in the described browser, determine the page at the sound place in the described browser.
Preferably, also comprise: provide the first control inlet to the user;
Described sound in the specific webpage in the browser is controlled comprises: after receiving user's instruction by the described first control inlet, according to user instruction the sound on the specific webpage in the browser is carried out corresponding control.
Preferably, also comprise:
Provide the second control inlet to the user;
After receiving user's instruction, the sound in the browser is carried out the control of the overall situation according to user instruction by the described second control inlet.
Preferably, also comprise:
Show that in the window at page place this page has the prompting sign of sound with described sound.
Preferably, described prompting sign comprises the 3rd control inlet, and described sound in the specific webpage in the described browser is controlled comprises:
After receiving user's instruction, the sound on the specific webpage in the browser is carried out corresponding control according to user instruction by described the 3rd control inlet.
Preferably, described based on the corresponding relation between the sound in the described browser and the place page thereof, the sound in the specific webpage in the described browser controlled comprise:
Only when the page at the sound place in the described browser is in focus condition, open the sound in this page, otherwise, with the audible closure in this page;
When carrying out the page when switching, switch the unlatching of sound in the page or close.
Preferably, the sound on the specific webpage in the described browser is controlled comprised: the sound on the specific webpage in the described browser is opened, closed and volume is regulated.
A kind of system that sound in the browser is controlled comprises:
Page determining unit is used for knowing the page at the sound place of browser;
The page sound control module is used for based on the sound of described browser and the corresponding relation between the page of place thereof the sound in the specific webpage in the described browser being controlled.
Preferably, if the sound in the described browser comprises two or more sound, then:
Described page determining unit specifically is used for knowing every kind of sound of browser page at place separately;
Described page sound control module specifically is used for based on the corresponding relation separately between every kind of sound of browser and its place page the various sound that are in the browser in the different pages independently being controlled respectively.
Preferably, described page determining unit comprises:
The thread determining unit is used for determining the thread at the sound place of browser;
The thread analytic unit is used for determining according to the thread at the sound place of described browser the page at the sound place in the described browser.
Preferably, described thread determining unit comprises:
The intercepting api calls subelement when being used to intercept the function that plays sound, obtains the thread identifier of the thread that calls the described function that plays sound;
Determine subelement, be used for the thread of described thread identifier correspondence is defined as the thread at the sound place of described browser.
Preferably, also comprise:
The thread record cell is used for when creating thread, and the function of thread, the sub-thread of record page upper thread journey are created in interception;
Described thread analytic unit comprises:
The anti-subelement of looking into of thread is used for by counter father's thread of looking into the thread at the sound place in the described browser, determining the page at the sound place in the described browser when the thread at the thread at the sound place of browser and page place is not same thread.
Preferably, also comprise:
The first control inlet provides the unit, and being used for provides the first control inlet to the user;
Described page sound control module after specifically being used for receiving user's instruction by the described first control inlet, carries out corresponding control according to user instruction to the sound in the specific webpage in the browser.
Preferably, also comprise:
The second control inlet provides the unit, and being used for provides the second control inlet to the user;
The global sound control module after being used for receiving user's instruction by the described second control inlet, carries out the control of the overall situation to the sound in the browser according to user instruction.
Preferably, also comprise:
Tip element, the window that is used at the page place with described sound shows that this page has the prompting sign of sound.
Preferably, described prompting sign comprises the 3rd control inlet; Described page sound control module after specifically being used for receiving user's instruction by described the 3rd control inlet, carries out corresponding control according to user instruction to the sound in the browser.
Preferably, described page sound control module comprises:
Automatically control sub unit only is used for opening the sound in this page when the page at the sound place of described browser is in focus condition, otherwise, with the audible closure in this page; When carrying out the page when switching, switch the unlatching of sound in the page or close.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
The embodiment of the invention is by knowing the page at the sound place in the browser; Based on the corresponding relation between the sound in the described browser and the place page thereof, the sound on the specific webpage in the described browser is controlled.As seen, the embodiment of the invention can be known the corresponding relation of the sound and the page, therefore can control neatly the sound in the browser based on the page.
In addition, the embodiment of the invention can also be notified on which page of user in many ways has sound to play, and makes the user can know clearly the corresponding relation of the sound and the page.Sound control inlet can also be provided, select the broadcast of sound on certain page or quiet voluntarily by the user.In addition, can also accomplish only to play the sound on the page that is in focus condition, and the unlatching of sound or close on the automatic switchover page when switching the page.
Description of drawings
Fig. 1 is the process flow diagram of the method that provides of the embodiment of the invention;
Fig. 2 is the synoptic diagram of the system that provides of the embodiment of the invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Referring to Fig. 1, the method that the sound in the browser that the embodiment of the invention provides is controlled may further comprise the steps:
S101: the page of knowing the sound place in the browser;
S102:, the sound in the specific webpage in the described browser is controlled based on the corresponding relation between the sound in the described browser and the place page thereof.
Wherein, described sound on the specific webpage in the described browser is controlled comprises: (being changed to the sound on the specific webpage quiet) and volume adjusting are opened, closed to the sound on the specific webpage in the described browser.Sound in the described browser is meant the various forms of sound content of playing that the user can hear in browser, such as music, song, background music or video or the like.
If the sound in the described browser comprises two or more sound, when then knowing the page at the sound place in the browser, can know in the browser every kind of sound page at place separately respectively; And can carry out independently sound control respectively to the various sound that are in the browser in the different pages based on the corresponding relation separately between every kind of sound and its place page in the browser.
Below above-mentioned two steps are described in detail respectively.Wherein,, promptly know the corresponding relation between the sound and the place page thereof, multiple specific implementation is arranged for the page of knowing the sound place in the browser.Below exemplary two kinds of providing wherein.
Sound in the described browser of the embodiment of the invention is meant the sound of playing in browser process, be included in the sound of playing in the flash control in the browser, perhaps sound of playing in the player control in being embedded into browser etc.But, no matter be flash control or the player that is embedded into browser, all be the broadcast of in browser process, carrying out sound.
First kind of specific implementation of knowing the corresponding relation between the sound and the place page thereof:
Because the various resources on the webpage all need at first to download these resources to server, just can be distributed on the webpage.When downloaded resources, need send the solicited message of downloaded resources to server, can comprise the person's of sending the unified resource location information of unified resource location information, the solicited message of the resource that request is downloaded in this solicited message.In the practical application, described unified resource location information can be unified resource identifier (Uniform Resource Identifier, URI), URI can comprise URL(uniform resource locator) (Uniform Resource Locator, URL), perhaps the unified resource title (Uniform ResourceName, URN), describing for convenient, all is that example is introduced with URL in the embodiment of the invention.Wherein, in the URL of resource, can comprise the suffix name of resource, with the type of expression resource.For example, the suffix name of certain sound in the browser may be mp3, rm, wma etc.
Therefore, the request of the downloaded resources that browser sends to server be can tackle, and sound in the browser and the corresponding relation between the page determined according to this solicited message.For example, intercept certain request back and find the suffix mp3 by name of resource URL, think that then this resource is a sound, from solicited message, get access to the person's of sending of solicited message URL then, because the person of sending of request may be a webpage itself, also may be the player that is embedded in the webpage, therefore, if the person of sending is a webpage itself, then can directly determine sound in the browser and the corresponding relation between the page; If the person of sending is the player of embedded web page, then can also be again according to the corresponding relation between player and the webpage, determine sound in the browser and the corresponding relation between the webpage.Certainly, in order to improve accuracy, the method for the response message that can also return by intercept server realizes.
Above-mentioned first kind of specific implementation of knowing the corresponding relation between the sound and the place page thereof, need all requests of downloading all resources in the webpage mutually of interception, perhaps the response message returned of server is searched the information relevant with sound then in numerous solicited messages or response message.This specific implementation is more effective at the background music of sound of playing in the flash control in the browser and webpage.
Second kind of specific implementation of knowing the corresponding relation between the sound and the place page thereof: determine the thread at the sound place in the browser, determine the page at the sound place in the described browser then according to the thread at the sound place in the described browser.
Particularly, application program is always created corresponding process in operational process, and can create at least one thread in the process, calls api function then and finish every concrete operation in thread; And each thread all has a unique thread identifier, is used to distinguish different threads.When using browser to open certain page, at first need to create page thread, may under described page thread, create a plurality of sub-threads then, finish every concrete operation jointly; For example, broadcast of the representing of figure, sound etc. is all realized by the calling system function by page thread or its sub-thread.Therefore,, can at first determine the thread in progress sound place in the browser, just can determine the page at the sound place in the described browser then according to this thread for sound in definite browser and the corresponding relation between the page.
That is to say, can work as sound in the described browser when playing, determine the thread at the sound place in the browser, then, can determine the page at the sound place in the described browser according to the thread at the sound place in the browser.Because application program all is API (the Application Programming Interface by calling system (for example windows operating system), application programming interface) function plays sound, when the function that is used to play sound is called, illustrating necessarily has sound to play, therefore, can judge whether that sound plays by the function that interception plays sound.Be called if intercept the function that plays sound, then proof has sound to play, and the interface that can utilize system to provide simultaneously gets access to the thread identifier of the thread that calls this specific api function, determines the thread at the sound place in the browser with this.
That is to say, in order to determine the corresponding relation of the sound and the page, in the time of can being called at the function that interception plays sound (illustrating in certain page has sound to play), the function (GetCurrent Thread Id) that provides by system gets access to the thread identifier of the thread that calls this function that plays sound.So just, the function that plays sound of can having known which thread dispatching.According to this thread, just can determine the page at the sound place in the browser then.Certainly, also can get access to the thread at the sound place in the browser in other way.
Need to prove,, all have the thread of creating the page no matter be that browser is to adopt one process mode, multi-process mode or hybrid mode.With many based tab navigations device is example, under the multi-process mode, and the corresponding independent process of each Shipping Options Page possibility, but this process is also created in certain thread.That is to say, though the corresponding independent process of Shipping Options Page, always also have the thread of creating the page.Process is a relatively more empty notion for thread, and process is not done concrete operation, and thread is only the least unit of operation code, can find the page at sound place by thread.
Wherein, the thread at the sound place in the described browser and page thread may be same threads, flash that plays in the page etc. for example, the function that can directly play sound by page thread dispatching, at this moment, after having determined the thread at the sound place in the browser, just can directly determine the page at this sound place.But, also having certain situation, the thread at the sound place in the browser is not a page thread, but certain sub-thread of page thread.At this moment, for sound in definite browser and the relation between the page, can be when creating thread, the function of thread is created in interception, and preserves the set membership of thread creation, and this sample can obtain all sub-threads of each page thread.After the thread identifier of the thread at the sound place in getting access to browser, can determine the page thread at this thread place by counter father's thread of looking into this thread, and then just can determine the page at the sound place in the browser.Certainly, also can determine it is which thread, for example can also obtain the mode of the pseudo-handle of thread and determine by the thread identifier of knowing thread, or the like.
Need to prove that though the embodiment of the invention has been tackled the function that plays sound, can be only used for knowing that this function has been called, then, this function that plays sound can continue normal operation, promptly the sound in the page can normal play.Meanwhile, the embodiment of the invention can be operated asynchronously, realizes determining the function of sound and page corresponding relation.Certainly, also can interrupt this function calls behind the function that intercepting and capturing play sound, can realize being changed to the sound in certain page quiet automatically this moment.
Above-mentioned second kind of specific implementation of knowing the corresponding relation between the sound and the place page thereof, not only more effective at the background music of sound of playing in the flash control in the browser and webpage, and it is also very effective to be embedded into the sound that the player control of browser plays for the sort of use.
When specifically the sound in the browser being controlled, can form interaction, also can automatically control with the user.In order to form interaction with the user, can provide the first control inlet to the user, can comprise unlatching in this first control inlet, close, button such as volume adjusting (also can make other modes such as menu, follow-up is the example explanation in the mode of button only), the user can send request by clicking above-mentioned button; After receiving user's instruction, the sound on the specific webpage is carried out corresponding control according to user instruction by the described first control inlet.For example, the user can click mute button (being equivalent to audible closure) and select the sound in certain page quiet (promptly closing), can also play the sound in this page by clicking broadcast button (being equivalent to sound opens) again.
Wherein, described to the user provide the first control inlet to browser in the sound of specific webpage control specifically multiple implementation can be arranged, include but not limited to following several situation:
1) can locate to provide first control to enter the mouth at label hurdle or taskbar etc. to the sound in this page to the user.For example, if find on certain page sound is arranged, then can provide the described first control inlet on the label of this page, the user can control the sound on this page by this first control inlet.If on a plurality of pages sound is arranged, the described first control inlet then can be provided on the label of each page respectively, by the first control inlet separately the sound on each page is controlled respectively.That is to say, in this case,, then have a plurality of described first control inlets if on a plurality of page sound is arranged.
2) also can only in browser window, provide described first a control inlet,, can control the sound on the page that is in focus condition by this first control inlet.That is to say,, also only the sound on the page that is in focus condition is controlled by this first control inlet even on a plurality of page sound is arranged.And, when carrying out page switching, can also can change by the page that this first control inlet is controlled sound thereupon.
3) in this case, also be that described first a control inlet only is provided in browser window, but the corresponding relation of the sound and the page can be provided in the first control inlet.For example, on a plurality of pages of front opening, sound is arranged all, the user clicks this first control inlet, can provide the control that the sound on each page is controlled inlet to the user with forms such as menus, and the user can control the sound on the specific webpage by these control inlets.For example, after the user clicks the first control inlet, can see a menu with many records, writing down the URL (or webpage title) of a webpage of working as front opening and the sound control knob of this webpage in every record, so the user can control the sound in a plurality of pages simultaneously according to this menu.
Like this, the user just can freely select to play the sound in which page, is changed to the sound in which page quiet.For example, the user just listens to the music on certain music site, browses other websites simultaneously; When playing certain sound on certain webpage, the webpage that the embodiment of the invention just can point out the user to play this sound, the user can directly close this webpage then.Perhaps provide sound control inlet to the user, the user can be changed to the sound of playing in this page quiet by clicking mute button; If the sound on this page is interested, can also play the sound on this page at any time by clicking broadcast button, be changed to described music site quiet simultaneously.As seen, the embodiment of the invention has realized based on the flexible control of the page to sound.
In addition, can also provide the second control inlet, after receiving user's instruction, the sound in the browser be carried out the control of the overall situation according to user instruction by the described second control inlet to the user.That is to say, can carry out overall situation control to the sound in the browser by the described second control inlet.The user can select whole browser (being the sound in current all pages of opening in browser) is quiet by overall situation control inlet, or the sound in the browser all opened, like this, if the user is using local player to listen to the music, then can whole browser be changed to quiet (promptly cutting out sound) by the inlet of overall situation control, and need not be singly with the audible closure on each page.Wherein, the position that is provided with of the described second control inlet includes but not limited to that status bar, address field or menu bar etc. locate.
In addition, after the page of having determined the sound place in the browser, can also notify on which page of user has the sound that can play.Concrete, can show in the window at page place that this page has the prompting sign of sound with sound.For example, can adopt modes such as locating to provide icon at Shipping Options Page, address field, status bar etc. to provide the prompting sign.The user can find on which page sound is arranged very intuitively like this, if do not want by this sound interference, can directly select this page close; If want to appreciate the sound in this page, then can operate accordingly.Certainly, also can directly described prompting sign be entered the mouth as the 3rd control, similar to the described first control inlet, after receiving user's instruction, can carry out corresponding control to the sound on the specific webpage according to user instruction by described the 3rd control inlet.
Under auto-control mode, can only play the sound in the page that is in focus condition.Wherein, the described page that is in focus condition is meant and currently is in that top layer user can directly see and to the page of its operation.Certainly, the user may dwindle a plurality of windows, make currently can see a plurality of pages, but can operate have only one.Therefore, if in certain page sound is arranged, have only when this page is in focus condition, the sound in this page just can be played, otherwise is changed to the sound in this page quiet automatically.And can be when switching the page, the broadcast of sound or quiet in the automatic switchover page.
Wherein, for many based tab navigations device, switching the page can be direct switch labels page or leaf (can directly finish switching by clicking on the label hurdle); And for multi-window browser, the label of each window is presented in the taskbar, switch the page and can be meant that the user switches to focus condition by clicking certain label with certain window in taskbar, can also be that the user directly minimizes the current window that is in focus condition, this moment, system can switch to focus condition with another window automatically.Certainly, can also be under automatic control mode automatically with the sound Close All in the whole browser, the user can be according to the broadcast of the inlet of the control on the page based on page control sound.
Need to prove that the method that the embodiment of the invention provides goes for the browser of the many labels of single window, also go for the browser of multiwindow.In many based tab navigations device, the described page of the embodiment of the invention is a Shipping Options Page, and in multi-window browser, the described page of the embodiment of the invention is a window.In addition, the described sound of the embodiment of the invention can be the sound of the audio frequency play in browser, video, flash etc.
As seen, pass through the embodiment of the invention, can know on which page sound is arranged, there is not sound on which page, and can control the volume whether page arbitrarily plays sound or regulate sound, can also carry out sound control to the browser overall situation, realize opening apace or closing the sound of whole browser.And when on the page sound being arranged, can notify the user in several ways, and make the source that the user can sound recognition, and the inlet based on page control sound can be provided, make the user to control the unlatching of sound or close according to own demand.In addition, can also accomplish only to play the sound on the page that is in focus condition, and the unlatching of sound or close on the automatic switchover page when switching the page.By the method that the embodiment of the invention provided, the user can discern and control the sound in the browser more easily, has embodied great convenience and dirigibility, and it is used for the user in depth to excavate internet information resource.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, this program comprises the steps: to know the page at the sound place in the browser when carrying out; Based on the corresponding relation between the sound in the described browser and the place page thereof, the sound in the specific webpage in the described browser is controlled.Described storage medium, as: ROM/RAM, magnetic disc, CD etc.
Corresponding with the method that the sound in the browser that the embodiment of the invention provides is controlled, the embodiment of the invention also provides a kind of system that sound in the browser is controlled, and referring to Fig. 2, this system comprises:
Page determining unit U201 is used for knowing the page at the sound place of browser;
Page sound control module U202 is used for based on the sound of described browser and the corresponding relation between the page of place thereof the sound in the specific webpage in the described browser being controlled.
If the sound in the described browser comprises two or more sound, then:
Units of pages U201 specifically is used for knowing every kind of sound of browser page at place separately;
Page sound control module U202 specifically is used for based on the corresponding relation separately between every kind of sound of browser and its place page the various sound that are in the browser in the different pages independently being controlled respectively.
Wherein, can adopt the method for thread analysis to know the page at the sound place in the browser, at this moment, page determining unit U201 comprises:
Thread determining unit U2011 is used for determining the thread at the sound place of browser;
Thread analytic unit U2012 is used for determining according to the thread at the sound place of described browser the page at the sound place in the described browser.
Because the broadcast of sound is to realize by call the function that plays sound in certain thread, and each thread all has a unique thread identifier, and system can provide the function that obtains thread identifier, therefore can determine the thread in progress sound place by thread identifier, at this moment, the thread determining unit can comprise:
The intercepting api calls subelement when being used to intercept the function that plays sound, obtains the thread identifier of the thread that calls the described function that plays sound;
Determine subelement, be used for the thread of described thread identifier correspondence is defined as the thread at the sound place of described browser.
The intercepting api calls subelement is intercepted the function that plays sound, and can determine that just current must be to have sound playing; Just can determine the thread at the sound place in the browser by the anti-thread that calls this function that plays sound of looking into this moment; Then, the thread analytic unit can be determined the page at the sound place in the described browser according to the thread in progress sound place in the described browser; Finally, page sound control module U202 just can control the sound in the described browser according to the corresponding relation between the page at sound in the described browser and place thereof.
Because the thread and the page thread at some sound place are not same thread, therefore possibly can't directly determine the page at sound place by the thread at sound place.But the thread at sound place must be the sub-thread of the page thread of the sound place page, therefore can determine the page at sound place by the method for the anti-father's of looking into thread.At this moment, this system also comprises:
Thread record cell U203 is used for when creating thread, and the function of thread, the sub-thread of record page upper thread journey are created in interception;
Thread analytic unit U2012 comprises:
The anti-subelement of looking into of thread is used for by counter father's thread of looking into the thread at the sound place in the described browser, determining the page at the sound place in the described browser when the thread at the thread at the sound place of browser and page place is not same thread.
When the sound in the page is controlled, can form interaction with the user.For this reason, can provide the first control inlet, at this moment, this system also comprises:
The first control inlet provides unit U204, and being used for provides the first control inlet to the user; At this moment, page sound control module U202 carries out corresponding control according to user instruction to the sound in the browser after being used for receiving user's instruction by the described first control inlet.
Wherein, the first control inlet provides unit U204 specifically to be used for window at the page place with described sound, provides control inlet to the sound in this page to the user.
Except carrying out to carry out the overall situation to the sound in the browser and controlling the sound control to the sound in the browser, promptly open or close the sound on each page in the browser, the volume of perhaps regulating sound in the browser on the whole based on the page.At this moment, this system can also comprise:
The second control inlet provides unit U205, and being used for provides the second control inlet to the user;
Global sound control module U206 after being used for receiving user's instruction by the described second control inlet, carries out the control of the overall situation to the sound in the browser according to user instruction.
In addition, behind the sound and the corresponding relation between the page in getting access to browser, can give notice to the user, inform on which page of user sound is arranged, if the user wants to close the page of sound like this, then can directly find this page, and without another attempting closing.At this moment, this system also comprises:
Tip element U207, the window that is used at the page place with described in progress sound shows that this page has the prompting sign of sound.When specifically carrying out sound playing control, can directly described prompting sign be entered the mouth as the 3rd control, at this moment, page sound control module U202 carries out corresponding control according to user instruction to the sound in the browser after being used for receiving user's instruction by described the 3rd control inlet.
In addition, page sound control module U202 also can carry out Play Control to the sound in the browser automatically, can comprise:
Automatically control sub unit only is used for opening the sound in this page when the page at the sound place of described browser is in focus condition, otherwise, with the audible closure in this page; When carrying out the page when switching, switch the unlatching of sound in the page or close.
System and method described in the embodiment of the invention is applicable in diverse network or the client environment, for example can be implemented in the computer equipment such as PC device, perhaps can be implemented in such as in other electronic equipments such as mobile phone, mobile communication equipment, PDA(Personal Digital Assistant).
More than to a kind of method and system that sound in the browser is controlled provided by the present invention, be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, part in specific embodiments and applications all can change.In sum, this description should not be construed as limitation of the present invention.

Claims (21)

1, a kind of method that sound in the browser is controlled is characterized in that, comprising:
Know the page at the sound place in the browser;
Based on the corresponding relation between the sound in the described browser and the place page thereof, the sound in the specific webpage in the described browser is controlled.
2, method according to claim 1 is characterized in that, if the sound in the described browser comprises two or more sound, then:
Describedly know that the page at the sound place in the browser comprises: know in the browser every kind of sound page at place separately;
Described based on the corresponding relation between the sound in the described browser and the place page thereof, sound in the specific webpage in the browser controlled comprise:, the various sound that are in the browser in the different pages are independently controlled respectively based on the corresponding relation separately between every kind of sound and its place page in the browser.
3, method according to claim 1 is characterized in that, describedly knows that the page at the sound place in the browser comprises:
Determine the thread at the sound place in the browser;
Determine the page at the sound place in the described browser according to the thread at the sound place in the described browser.
4, method according to claim 3 is characterized in that, the thread at the sound place in described definite browser comprises:
When intercepting the function that plays sound, obtain the thread identifier of the thread that calls the described function that plays sound;
The thread of described thread identifier correspondence is defined as the thread at the sound place in the described browser.
5, method according to claim 3 is characterized in that, also comprises: the function of thread, the sub-thread of record page upper thread journey are created in interception in advance;
Described thread according to the sound place in the described browser determines that the page at the sound place in the described browser comprises: when the thread at the thread at the sound place in the browser and page place is not same thread, by counter father's thread of looking into the thread at the sound place in the described browser, determine the page at the sound place in the described browser.
6, method according to claim 1 is characterized in that, also comprises: provide the first control inlet to the user;
Described sound in the specific webpage in the browser is controlled comprises: after receiving user's instruction by the described first control inlet, according to user instruction the sound on the specific webpage in the browser is carried out corresponding control.
7, method according to claim 1 is characterized in that, also comprises:
Provide the second control inlet to the user;
After receiving user's instruction, the sound in the browser is carried out the control of the overall situation according to user instruction by the described second control inlet.
8, method according to claim 1 is characterized in that, also comprises:
Show that in the window at page place this page has the prompting sign of sound with described sound.
9, method according to claim 8 is characterized in that, described prompting sign comprises the 3rd control inlet, and described sound in the specific webpage in the described browser is controlled comprises:
After receiving user's instruction, the sound on the specific webpage in the browser is carried out corresponding control according to user instruction by described the 3rd control inlet.
10, method according to claim 1 is characterized in that, and is described based on the corresponding relation between the sound in the described browser and the place page thereof, the sound in the specific webpage in the described browser controlled comprise:
Only when the page at the sound place in the described browser is in focus condition, open the sound in this page, otherwise, with the audible closure in this page;
When carrying out the page when switching, switch the unlatching of sound in the page or close.
11, according to each described method in the claim 1 to 10, it is characterized in that, the sound on the specific webpage in the described browser is controlled comprised: the sound on the specific webpage in the described browser is opened, closed and volume is regulated.
12, a kind of system that sound in the browser is controlled is characterized in that, comprising:
Page determining unit is used for knowing the page at the sound place of browser;
The page sound control module is used for based on the sound of described browser and the corresponding relation between the page of place thereof the sound in the specific webpage in the described browser being controlled.
13, system according to claim 12 is characterized in that, if the sound in the described browser comprises two or more sound, then:
Described page determining unit specifically is used for knowing every kind of sound of browser page at place separately;
Described page sound control module specifically is used for based on the corresponding relation separately between every kind of sound of browser and its place page the various sound that are in the browser in the different pages independently being controlled respectively.
14, system according to claim 12 is characterized in that, described page determining unit comprises:
The thread determining unit is used for determining the thread at the sound place of browser;
The thread analytic unit is used for determining according to the thread at the sound place of described browser the page at the sound place in the described browser.
15, system according to claim 14 is characterized in that, described thread determining unit comprises:
The intercepting api calls subelement when being used to intercept the function that plays sound, obtains the thread identifier of the thread that calls the described function that plays sound;
Determine subelement, be used for the thread of described thread identifier correspondence is defined as the thread at the sound place of described browser.
16, system according to claim 14 is characterized in that, also comprises:
The thread record cell is used for when creating thread, and the function of thread, the sub-thread of record page upper thread journey are created in interception;
Described thread analytic unit comprises:
The anti-subelement of looking into of thread is used for by counter father's thread of looking into the thread at the sound place in the described browser, determining the page at the sound place in the described browser when the thread at the thread at the sound place of browser and page place is not same thread.
17, system according to claim 12 is characterized in that, also comprises:
The first control inlet provides the unit, and being used for provides the first control inlet to the user;
Described page sound control module after specifically being used for receiving user's instruction by the described first control inlet, carries out corresponding control according to user instruction to the sound in the specific webpage in the browser.
18, system according to claim 12 is characterized in that, also comprises:
The second control inlet provides the unit, and being used for provides the second control inlet to the user;
The global sound control module after being used for receiving user's instruction by the described second control inlet, carries out the control of the overall situation to the sound in the browser according to user instruction.
19, system according to claim 12 is characterized in that, also comprises:
Tip element, the window that is used at the page place with described sound shows that this page has the prompting sign of sound.
20, system according to claim 19 is characterized in that, described prompting sign comprises the 3rd control inlet; Described page sound control module after specifically being used for receiving user's instruction by described the 3rd control inlet, carries out corresponding control according to user instruction to the sound in the browser.
21, system according to claim 12 is characterized in that, described page sound control module comprises:
Automatically control sub unit only is used for opening the sound in this page when the page at the sound place of described browser is in focus condition, otherwise, with the audible closure in this page; When carrying out the page when switching, switch the unlatching of sound in the page or close.
CN200910083405A 2009-04-30 2009-04-30 Method and system for controlling sound in browser Pending CN101650725A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN200910083405A CN101650725A (en) 2009-04-30 2009-04-30 Method and system for controlling sound in browser
CN201110452007.3A CN102622222B (en) 2009-04-30 2009-12-23 Method and system for controlling sound in browser
CN 200910262081 CN101789001B (en) 2009-04-30 2009-12-23 Method and system for controlling sound in browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910083405A CN101650725A (en) 2009-04-30 2009-04-30 Method and system for controlling sound in browser

Publications (1)

Publication Number Publication Date
CN101650725A true CN101650725A (en) 2010-02-17

Family

ID=41672964

Family Applications (2)

Application Number Title Priority Date Filing Date
CN200910083405A Pending CN101650725A (en) 2009-04-30 2009-04-30 Method and system for controlling sound in browser
CN201110452007.3A Active CN102622222B (en) 2009-04-30 2009-12-23 Method and system for controlling sound in browser

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201110452007.3A Active CN102622222B (en) 2009-04-30 2009-12-23 Method and system for controlling sound in browser

Country Status (1)

Country Link
CN (2) CN101650725A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135902A (en) * 2011-03-01 2011-07-27 深圳市快播科技有限公司 Method for controlling Flash game
CN102594813A (en) * 2012-02-10 2012-07-18 奇智软件(北京)有限公司 Multi-account login method and device
CN102662721A (en) * 2012-04-06 2012-09-12 厦门游家网络有限公司 Method and device for adding mute function on Flash games in batch
CN102915317A (en) * 2012-03-08 2013-02-06 北京金山安全软件有限公司 sound control method and device
CN103456332A (en) * 2012-05-28 2013-12-18 富泰华工业(深圳)有限公司 Audio playing device and volume adjusting method
CN103577028A (en) * 2012-07-25 2014-02-12 深圳市快播科技有限公司 Playing control method and device and player
WO2014206319A1 (en) * 2013-06-28 2014-12-31 Tencent Technology (Shenzhen) Company Limited Systems and methods for webpage sound control
WO2015074548A1 (en) * 2012-12-03 2015-05-28 北京奇虎科技有限公司 Method for sound control in browser, and browser
CN105512146A (en) * 2014-10-09 2016-04-20 腾讯科技(深圳)有限公司 Method and device for controlling web page sound
CN105677286A (en) * 2014-11-19 2016-06-15 腾讯科技(武汉)有限公司 Volume adjustment method and device for browser
WO2016161877A1 (en) * 2015-04-07 2016-10-13 北京锤子数码科技有限公司 Method and system for determining application program currently playing audio content
CN111475134A (en) * 2020-06-23 2020-07-31 杭州翔毅科技有限公司 Webpage volume adjusting method, device, equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103886057A (en) * 2014-03-14 2014-06-25 联想(北京)有限公司 Method for processing information and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6262662B1 (en) * 2000-02-25 2001-07-17 Xerox Corporation Systems and methods that detect proximity information using electric field sensing devices and a page identification using embedded identification tags

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135902A (en) * 2011-03-01 2011-07-27 深圳市快播科技有限公司 Method for controlling Flash game
CN102135902B (en) * 2011-03-01 2015-01-14 深圳市天趣网络科技有限公司 Method for controlling Flash game
CN102594813A (en) * 2012-02-10 2012-07-18 奇智软件(北京)有限公司 Multi-account login method and device
CN105610870B (en) * 2012-02-10 2019-08-20 北京奇虎科技有限公司 More account login methods and device
CN105610870A (en) * 2012-02-10 2016-05-25 北京奇虎科技有限公司 Multi-account login method and device
CN102594813B (en) * 2012-02-10 2016-03-30 北京奇虎科技有限公司 Many account login methods and device
CN102915317B (en) * 2012-03-08 2016-01-20 北京金山安全软件有限公司 sound control method and device
CN102915317A (en) * 2012-03-08 2013-02-06 北京金山安全软件有限公司 sound control method and device
CN102662721A (en) * 2012-04-06 2012-09-12 厦门游家网络有限公司 Method and device for adding mute function on Flash games in batch
CN103456332A (en) * 2012-05-28 2013-12-18 富泰华工业(深圳)有限公司 Audio playing device and volume adjusting method
CN103577028A (en) * 2012-07-25 2014-02-12 深圳市快播科技有限公司 Playing control method and device and player
CN103577028B (en) * 2012-07-25 2016-10-05 深圳市快播科技有限公司 Control method for playing back, device and player
WO2015074548A1 (en) * 2012-12-03 2015-05-28 北京奇虎科技有限公司 Method for sound control in browser, and browser
CN104252353A (en) * 2013-06-28 2014-12-31 腾讯科技(深圳)有限公司 Control method and device for page voice in browser
CN104252353B (en) * 2013-06-28 2018-10-02 腾讯科技(深圳)有限公司 The control method and device of page sound in browser
WO2014206319A1 (en) * 2013-06-28 2014-12-31 Tencent Technology (Shenzhen) Company Limited Systems and methods for webpage sound control
CN105512146A (en) * 2014-10-09 2016-04-20 腾讯科技(深圳)有限公司 Method and device for controlling web page sound
CN105677286A (en) * 2014-11-19 2016-06-15 腾讯科技(武汉)有限公司 Volume adjustment method and device for browser
CN105677286B (en) * 2014-11-19 2019-11-26 腾讯科技(武汉)有限公司 A kind of browser volume adjusting method and device
WO2016161877A1 (en) * 2015-04-07 2016-10-13 北京锤子数码科技有限公司 Method and system for determining application program currently playing audio content
CN111475134A (en) * 2020-06-23 2020-07-31 杭州翔毅科技有限公司 Webpage volume adjusting method, device, equipment and storage medium
CN111475134B (en) * 2020-06-23 2020-10-09 杭州翔毅科技有限公司 Webpage volume adjusting method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN102622222B (en) 2015-02-18
CN102622222A (en) 2012-08-01

Similar Documents

Publication Publication Date Title
CN101789001B (en) Method and system for controlling sound in browser
CN101650725A (en) Method and system for controlling sound in browser
US9218110B2 (en) Information processing apparatus, information processing method, information processing program and recording medium for storing the program
US8756505B2 (en) Browser interpretable document for controlling a plurality of media players and systems and methods related thereto
EP2522079B1 (en) Method and apparatus for setting section of a multimedia file in mobile device
US9477401B2 (en) Function executing method and apparatus for mobile terminal
US8959438B2 (en) Media control pane in browser
US20080235588A1 (en) Media player playlist creation and editing within a browser interpretable document
US20170177171A1 (en) Web browser extension
US20080235142A1 (en) System and methods for obtaining rights in playlist entries
CN103034695A (en) Method and device for sound control in browser
MX2014008565A (en) People presence detection in a multidocument knowledge base.
CN103151057A (en) Music playing method and third party application
CN103019710B (en) Audio control method and device for browser
TW200925972A (en) Modifying hover help for a user interface
KR20070026547A (en) Saving multiple browser instances as a selectable web project
CN110069734A (en) A kind of page assembly shows method and apparatus
US8930842B2 (en) Method for generating a search query
CN106502487A (en) A kind of application call devices and methods therefor
CN110045895B (en) Information processing method, system, medium, and computing device
KR101973180B1 (en) Method And System For Transmission of Additional Information based on a Message Service, Service Device And Terminal supporting the same
CN104123292B (en) Information recording method, device, browser and electronic equipment
WO2022262680A1 (en) Display method and apparatus, and readable storage medium
Walker et al. Extending the auditory display space in handheld computing devices
KR100866893B1 (en) System of providing information on music using widget application and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20100217