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

Method and system for controlling sound in browser Download PDF

Info

Publication number
CN101789001A
CN101789001A CN 200910262081 CN200910262081A CN101789001A CN 101789001 A CN101789001 A CN 101789001A CN 200910262081 CN200910262081 CN 200910262081 CN 200910262081 A CN200910262081 A CN 200910262081A CN 101789001 A CN101789001 A CN 101789001A
Authority
CN
China
Prior art keywords
sound
page
thread
browser
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200910262081
Other languages
Chinese (zh)
Other versions
CN101789001B (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.)
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
Priority claimed from CN200910083405A external-priority patent/CN101650725A/en
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN 200910262081 priority Critical patent/CN101789001B/en
Publication of CN101789001A publication Critical patent/CN101789001A/en
Application granted granted Critical
Publication of CN101789001B publication Critical patent/CN101789001B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a system for controlling sound in a browser, and the method for controlling sound in the browser comprises the following steps: acquiring a thread on which sound is located from a webpage; controlling the sound in a specific webpage in a browser by controlling the thread on which the sound is located; or, acquiring a player control element embedded in a specific webpage in the browser; and controlling the sound in the specific webpage in the browser by controlling the player control element. By the invention, the relationship between sound and a webpage can be acquired, and the sound in the browser can be flexibly controlled based on 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 sound place thread in the page;
By controlling described sound place thread, the sound in the specific webpage in the described browser is controlled.
Preferably, if having sound at least two pages in the described browser, then,
Describedly know that the thread at the sound place in the page comprises: know the sound thread at place separately in each page;
Described by the described sound of control place thread, sound in the specific webpage in the described browser controlled comprise:, the sound that is in the browser in the different pages is independently controlled respectively by controlling the sound thread at place separately in described each page.
Preferably, describedly know that the sound place thread in the page comprises:
When the function that plays sound is called, obtain the sign of the thread that calls the described function that plays sound, the corresponding thread of described sign is defined as sound place thread;
Determine to create the page of this sound place thread according to described sign, this sound place thread is defined as sound place thread in this page.
Preferably, described by control described sound place thread, the sound in the specific webpage in the described browser controlled comprise:
By revising the function that is used to play sound of the sound place thread dispatching in the specific webpage, the sound in the specific webpage in the described browser is controlled;
Perhaps,
By interrupting the function calls of sound place thread in the specific webpage, the sound in the specific webpage in the described browser is carried out quiet control to being used to play sound;
Perhaps,
By hanging up the sound place thread in the specific webpage, the sound in the specific webpage in the described browser is carried out quiet control.
Preferably, also comprise: provide the control inlet to the user;
Described sound in the specific webpage in the described browser is controlled comprises: after receiving user's instruction by described control inlet, according to user instruction the sound in the specific webpage in the described browser is controlled.
Preferably, described by control described sound place thread, the sound in the specific webpage in the described browser controlled comprise:
Only when described specific webpage 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.
A kind of system that sound in the browser is controlled comprises:
Thread is known the unit, is used for knowing the sound place thread of the page;
The first page sound control module is used for by controlling described sound place thread 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 thread is known the unit, and the sound that specifically is used for knowing each page is the thread at place separately;
The described first page sound control module specifically is used for the sound thread at place separately by controlling described each page, and the sound that is in the browser in the different pages is independently controlled respectively.
Preferably, described thread knows that the unit comprises:
The thread determining unit is used for obtaining the sign of the thread that calls the described function that plays sound when the function that plays sound is called, and the corresponding thread of described sign is defined as sound place thread;
The thread analytic unit is used for determine creating according to described sign the page of this sound place thread, and this sound place thread is defined as sound place thread in this page.
Preferably, the described first page sound control module comprises:
Function is revised subelement, is used for the function that is used to play sound by the sound place thread dispatching of revising specific webpage, and the sound in the specific webpage in the described browser is controlled;
Perhaps,
Call the interruption subelement, be used for the sound in the specific webpage in the described browser being carried out quiet control by interrupting the function calls of sound place thread to being used to play sound of specific webpage;
Perhaps,
The thread suspension subelement is used for by hanging up the sound place thread of specific webpage the sound in the specific webpage in the described browser being carried out quiet control.
Preferably, also comprise:
The control inlet provides the unit, and being used for provides the control inlet to the user;
The described first page sound control module after specifically being used for receiving user's instruction by described control inlet, carries out corresponding control according to user instruction to the sound in the specific webpage in the browser.
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, the described first 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.
A kind of method that sound in the browser is controlled comprises:
Know the player control element that embeds in the specific webpage in the browser;
By controlling described player control element, the sound in the specific webpage in the described browser is controlled.
Preferably, if having sound at least two pages in the described browser, then,
Describedly know that the player control element that embeds in the page comprises: the player control element of knowing each self-embedding in each page;
Described by the described player control element of control, sound in the specific webpage in the described browser controlled comprise:, the various sound that are in the browser in the different pages are independently controlled respectively by controlling the player control element of each self-embedding in described each page.
Preferably, described passing through controlled described player control element, the sound in the specific webpage in the described browser controlled comprise:
Call the interface that is used for sound control that the player control element that embeds in the described specific webpage externally provides, the sound in the specific webpage in the described browser is controlled.
Preferably, described passing through controlled described player control element, the sound in the specific webpage in the described browser controlled comprise:
Only when described specific webpage 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.
A kind of system that sound in the browser is controlled comprises:
Player control is known the unit, is used for knowing the player control element that embeds in the browser specific webpage;
The second page sound control module is used for by controlling described player control element the sound in the specific webpage in the described browser being controlled.
Preferably, if having sound at least two pages in the described browser, then,
Described player control is known the unit, specifically is used for knowing the player control element of each each self-embedding of the page;
The described second page sound control module specifically is used for by controlling the player control element of described each each self-embedding of the page the various sound that are in the browser in the different pages independently being controlled respectively.
Preferably, described player control knows that the unit comprises:
Inquire about subelement, be used for the DOM Document Object Model of query page, obtaining bookmark name is the ClassID of the page elements of object;
Determine subelement, be used for ClassID is met the player control element that the page elements of prerequisite is defined as embedding.
Preferably, the described second page sound control module specifically is used for calling the interface that is used for sound control that player control element that described specific webpage embeds externally provides, and the sound in the specific webpage in the described browser is controlled.
Preferably, also comprise:
The control inlet provides the unit, and being used for provides the control inlet to the user;
The described second page sound control module after specifically being used for receiving user's instruction by described control inlet, carries out corresponding control according to user instruction to the sound in the specific webpage in the browser.
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, the described second 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 provide wherein several.
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, the perhaps sound of playing in the player control in being embedded into browser, perhaps can also be the sound of playing as the background music of certain webpage, or the like.But, no matter be to use the flash control still to be embedded into the player of browser, or music as a setting, 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.That is to say, at first know the thread at sound place, according to thread and create corresponding relation between the page of this thread, know the corresponding relation between the sound place thread in the page and this page then, just can know sound place thread in the page by this corresponding relation.Therefore, " know the sound place thread in the page " double implication is arranged: need know that certain thread is a sound place thread, and need know this thread is by which page creation, it is a plurality of to be that the page has, sound place thread also has a plurality of, need know corresponding relation between the sound place thread in the page and this page (as, sound place thread among the page A is thread a, sound place thread among the page B is thread b, or the like), like this, in the time need controlling to the sound in certain specific webpage, just can find the sound place thread in this page, control sound in this page by controlling this thread then.
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.In other words, utilize the anti-page of looking into of thread exactly, thereby know the thread at the sound place in 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.Promptly, when the function that plays sound is called, obtain the sign of the thread that calls the described function that plays sound, the corresponding thread of described sign is defined as sound place thread, then, just can determine create the page of this sound place thread according to described sign, this sound place thread is defined as sound place thread in this page.So just be equivalent to have set up the corresponding relation between the thread at sound place in the page and this page, and then, in the time need controlling to the sound in the specific webpage, just utilize this corresponding relation, come the sound in this specific webpage is controlled by the thread of controlling sound place in this specific webpage.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.This shows, when the function that plays sound is called, obtain the sign (comprising thread identifier or pseudo-handle etc.) of the thread that calls the described function that plays sound, then, according to the page at this definite described sound place of sign, the thread that this sign is corresponding is defined as the sound place thread in this page.
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, in the time need carrying out quiet control to the sound in certain page, also can be behind the function that intercepting and capturing play sound, the thread that interrupts sound place in this page is to this function calls, be equivalent to this thread this moment and do not call any function about playing sound, naturally also just can't play out any sound, therefore, can realize being changed to the sound in certain page quiet automatically.
In addition, except interrupt thread to the function calls that plays sound, can also control the sound in the page by other modes.For example, can the sound in the specific webpage in the described browser be controlled by revising the function that plays sound of the sound place thread dispatching in this specific webpage.During specific implementation, for example, known that in a first step the sound place thread among the specific webpage A is thread a, when then the sound among the page A being controlled, can intercept and capture the function that plays sound that thread a calls, revise this function then, just can realize the sound among the page A is controlled.For example, this function can be revised as and be used for quiet function, then can realize making this page A quiet.
For instance, the function that is used to play sound in the supposing the system is function a, when the sound in certain page need be play, then needs to create a thread A, calls this function a by this thread A then and plays sound; For the sound in this page is controlled, the method that the embodiment of the invention adopts is exactly: intercept and capture thread A calling function a, and to thread A return function b, this function b may be another function that system provides, and also may be that some parameter of having revised among the function a obtains afterwards.
Need to prove, in this manner, in fact the audio files in the page is still being play, just may carry out the quiet control of Denging to it, the user may can't hear its sound, but the progress bar that can see audio player is still normally advancing, even, if the sound in the page is from certain video, then the user can see that the picture of video still playing, but can't hear sound.
Preceding dual mode all is by controlling thread to function calls, realize the sound in the page is controlled, in addition, can also realizing the sound in the page is controlled by the control to thread itself.For example, can adopt the mode of hanging up sound place thread, make the thread break-off that plays sound or quit work, when thread recovered to carry out, sound can continue to play or recover to be play.Promptly, in the time need carrying out quiet control, can find the thread at the sound place in this page at first according to the corresponding relation between the thread of sound place in the page of setting up before and the page to the sound on certain page, with this thread suspension, the sound in this page will be muted then.Certainly, because the sound place thread in other pages can not be affected, therefore, can not influence the broadcast of sound in other pages.
Under the mode of this hang-up sound place thread, because the thread that plays sound suspends or quits work, therefore, the sound in the page also will suspend or stop to play, the also just natural sound that can't hear in this page of user.That is, in this manner, the progress bar of the audio player in the page will not readvance yet.
Need to prove, if the sound in the page is from certain video, then have following two kinds of situations: a kind of situation is that picture and sound are at same thread, at this moment, if with the thread suspension at sound place, when then sound stops to play, picture also will stop to play, be in the sound of user in can't hear this page, can see that the picture of the video player in the page stops to play, the progress bar of video player also halts.Another kind of situation is that picture and sound is not at same thread, the thread that is the thread at picture place and sound place is separate, at this moment, if thread suspension with the sound place, when then sound stopped to play, picture can continue to play, promptly in the sound of user in can't hear this page, the picture that can see the video player in the page is also continuing broadcast, and the progress bar of video player is also moving on.
Need to prove in addition, because no matter whether picture and sound all are by the data of main thread in its corresponding thread synchronization distribution buffer memory, realization picture and the synchronous broadcast of sound at same thread.Usually, the thread of broadcasting pictures can be after the data that successfully play the main thread distribution, play successful message to the main thread feedback, after main thread is received, can continue distribution down one piece of data (for the whether broadcast success of sound thread, main thread can neglect usually, therefore, as long as receive the message that picture is successfully play, main thread will synchronously be distributed new data); Otherwise, if receiving, main thread do not play successful feedback information, then can not continue to distribute one piece of data down.Therefore, under the situation at same thread, after the thread suspension with the sound place, sound and picture all can suspend broadcast at picture and sound, and therefore, main thread can't be received and play successful information, also can not continue to distribute new data; After thread recovers to carry out, can begin to proceed to play from time-out.
But at picture and sound not under the situation at same thread, after the thread suspension with the sound place, sound can stop to play, but picture is also continuing broadcast, the thread at picture place can return to main thread and play successful message, therefore, main thread still can be to the new data of thread synchronization distribution at picture and sound place, and just this moment, sound was not successfully play.Therefore, after thread recovers to carry out, can play sound from the position that current picture has been played to picture synchronization.
In a word, all be by control sound place thread, realize the sound of specific webpage in the browser is controlled.Certainly, the thread at said here control sound place is sensu lato control, promptly, the thread that can comprise control sound place is to the function calls that plays sound (as interrupt function call or revise the function that calls etc.), also can comprise control sound place thread itself (as hanging up the thread at sound place), or the like.In a word, the content relevant with sound place thread controlled, all belonged to the category of control sound place thread as long as make.
Certainly, when having sound at least two pages in the browser, can know the sound thread at place separately in each page,, the sound that is in the browser in the different pages independently be controlled respectively by controlling the sound thread at place separately in described each page.
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.
The method that the described sound in the browser that the embodiment of the invention is provided of preamble is controlled describes in detail, wherein, in actual applications, can be controlled automatically by browser, also can semi-automatically control in conjunction with user's needs.Below this is at length introduced.
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 sound place thread in the page when carrying out; By controlling described sound place thread, 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; That is, sound is arranged when playing in finding browser, determine the thread at sound place, only determined that this thread is used to play sound this moment, but can't determine this thread is by which page creation;
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.That is, after the thread of having determined the sound place, determine this thread, so just can set up the corresponding relation between the thread at the sound place on the page and this page by which page creation.
As can be seen, the function finished jointly of above-mentioned thread determining unit U2011 and two unit of thread analytic unit U2012 mainly is to know the thread at the sound place in the page.Certainly, the division of said two units is based on the logical perspective consideration, the function that also said two units can be finished is finished separately by a unit in actual applications, can claim that this unit is that thread is known the unit, described thread knows that the unit is used for knowing the sound place thread of the page.
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, and can also be the signs such as pseudo-handle of thread certainly;
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.
By foregoing description as can be known, the thread determining unit can specifically comprise intercepting api calls subelement and definite subelement when specific implementation, in like manner, the division of this unit is also considered from logical perspective, when specific implementation, also can realize the function of intercepting api calls subelement and two subelements of definite subelement by unit of thread determining unit, it is the thread determining unit, specifically be used for when the function that plays sound is called, obtain the sign of the thread that calls the described function that plays sound, the corresponding thread of described sign is defined as sound place thread.Corresponding, the thread analytic unit specifically is used for determining to create according to described sign the page of this sound place thread, and this sound place thread is defined as sound place thread in this page.
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.
Corresponding with the technical characterictic of preceding method embodiment, specifically when the sound in the specific webpage is controlled, mainly control by control sound place thread.Particularly, page sound control module U202 can comprise: the first page sound control module is used for by controlling described sound place thread the sound in the specific webpage in the described browser being controlled.
The described first page sound control module can be controlled the sound in the specific webpage in the described browser in several ways, and is concrete, and the described first page sound control module can comprise:
Function is revised subelement, is used for the function that is used to play sound by the sound place thread dispatching of revising specific webpage, and the sound in the specific webpage in the described browser is controlled;
Perhaps,
Call the interruption subelement, be used for the sound in the specific webpage in the described browser being carried out quiet control by interrupting the function calls of sound place thread to being used to play sound of specific webpage;
Perhaps,
The thread suspension subelement is used for by hanging up the sound place thread of specific webpage the sound in the specific webpage in the described browser being carried out quiet control.
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.
From the above, this system can also comprise:
The control inlet provides the unit, and being used for provides the control inlet to the user; Accordingly, the described first page sound control module after specifically being used for receiving user's instruction by described control inlet, carries out corresponding control according to user instruction to the sound in the specific webpage in the browser.
In addition, the described first page sound control module can comprise: automatic control sub unit, only be used for when the page at the sound place of described browser is in focus condition, opening 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.
In previously described embodiment, need at first know the sound place thread in the page, realize the sound in the specific webpage is controlled by control then to thread.In the process of the sound place thread in knowing the page, can know earlier has sound to play, and then, utilizes and calls the thread that plays sound, and searches the page of setting up this thread, like this, is the equal of the process of searching the page according to sound.In other embodiments of the invention, can also search sound, below this be described in detail according to the page.
During specific implementation, can at first analyze the page elements in the page, judge the player control element that wherein whether comprises embedding, if comprise, then can determine to have in this page sound is playing maybe and can play, simultaneously, can know the page at the sound place in the browser according to the player control element in the described definite page.That is, under this embodiment, not necessarily have only in progress sound just can be identified, as long as but can in this page, play, no matter whether the audio or video in this player is play, can identify, and can determine the page at this sound place.
During specific implementation, owing to be embedded into label (tag) title of player control in the page in the browser and be object (<object 〉), simultaneously, because it is an ActiveX control, its specific ClassId (class identifier) is arranged, therefore, as long as can know the ClassId of player control in advance, getting access to the tag title be<object〉page elements after, just the ClassId of the ClassId of these page elements and known player control can be compared, if identical, then can determine to comprise in the page audio/video player control.
Certainly, the ClassId of different player control has nothing in common with each other, for identical player control, difference along with version, its ClassId also may be different, therefore, can enumerate the ClassId of various player control in advance, the ClassId of page elements is as long as with wherein any one is identical, can determine to comprise in the page audio/video player control.
Specifically for certain page, can know the page at the sound place in the browser by following steps: the DOM Document Object Model of query page (DOM), obtaining bookmark name is the ClassID of the page elements of object; ClassID is met the player control element that the page elements of prerequisite is defined as embedding; According to the corresponding relation of the player control element of the page and embedding, just can know the page at the sound place in the browser.
Under the situation of having known the player control element that embeds in the page, can the sound in the specific webpage in the described browser be controlled directly by the described player control element of control.Concrete, owing to can know the player control that comprises in the page, and player control all externally provides the interface that is used for sound control usually, therefore, can the sound in the specific webpage in the described browser be controlled directly by the interface that is used for sound control of described audio/video player.
Need to prove, in this manner, need player control externally to be provided for the interface of sound control, that is, have only when player control externally provides the interface that is used for sound control, can adopt this mode to realize.For example, for Windows operating system, the player control Windows Media Player of Microsoft just externally provides the interface that is used for sound control.
By above specific implementation as seen, the method controlled of the sound in the browser that provides of the embodiment of the invention can may further comprise the steps:
Step 1: know the player control element that embeds in the page;
From preamble as can be known, during specific implementation, can analyze, therefrom search whether comprise player control element page elements.For example, DOM Document Object Model that can query page, obtaining bookmark name is the ClassID of the page elements of object; ClassID is met the player control element that the page elements of prerequisite is defined as embedding.
Step 2:, the sound in the specific webpage in the described browser is controlled by controlling described player control element.Concrete, because player control element can externally be provided for the interface of sound control usually, therefore, can realize the sound in the specific webpage in the described browser is controlled by calling this interface.Provide mute and two interfaces of volume as media player, can accomplish quiet respectively and the adjusting volume by calling these two interfaces.
From representing on the interface, after having called the interface that player control externally provides, player control also can change to some extent representing on the interface.For example, when having called the mute interface, the button of the volume on the corresponding player control also can be shown as quiet state, just as having been order mute button by the user.In fact, when the user clicks mute button, also be to want player also to need to call the mute interface to realize quietly, just this interface also can be called by other programs.For the embodiment of the invention, if realize the method that the embodiment of the invention provides, then just be equivalent to call the mute interface that mediaplayer provides by browser by browser, realized making the quiet purpose of sound in this player control.
In a word, under this implementation, concrete implementation procedure can be such: by knowing the player control element that embeds in the page, be equivalent to set up the corresponding relation between the page and the player control; When needs carry out sound when control to certain specific webpage, the corresponding relation by setting up before finds the player control that embeds in this page, and the interface that sound is controlled that calls then that this player control provides just can be realized the control to sound.
Similarly, if have sound at least two pages in the described browser, then, can know the player control element of each self-embedding in each page, then, can the various sound that be in the browser in the different pages independently be controlled respectively by the player control element of each self-embedding in described each page of control.
Equally, also may there be the situation that comprises multiple sound in the same page, then, can know each player control element that embeds in the same page, then, also can unify control to the various sound in this page by each player control element in the described same page of control.
Certainly, owing to be player control element by page elements analysis is known, therefore, there is following possibility: can be from the information such as literal on the page, know the sound of each player control element correspondence, for example, if there are the information such as title of the sound of player control element broadcast on the page, then can directly obtain the corresponding relation between sound and the player control element.At this moment, can the various sound in this page be controlled separately by controlling each player control element in the described same page respectively.That is to say, in this case, can control sound specified.
Need to prove that the purpose of the embodiment of the invention is that the sound in the specific page is controlled, for example, if have sound to play in certain page, then can realize the sound in this page quietly, therefore, browser does not need to know that what play in the page specifically is that first song.That is to say that the sound described in the embodiment of the invention is not the sound that is meant concrete certain first song correspondence.Therefore, in embodiments of the present invention, only need know which or which operand is operated, can realize that the specific page is carried out sound control to get final product.
Similar with the method for utilizing thread to control, under this implementation, can control automatically by browser equally, also can semi-automatically control in conjunction with user's needs.During specific implementation, can repeat no more here with reference to carrying out.
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 player control element that embeds in the specific webpage in the browser when carrying out; By controlling described player control element, 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 above-mentioned method that sound in the browser is controlled, the embodiment of the invention also provides the system that the sound in the browser is controlled, and this system can comprise:
Player control is known the unit, is used for knowing the player control element that embeds in the browser specific webpage;
The second page sound control module is used for by controlling described player control element the sound in the specific webpage in the described browser being controlled.
Wherein, if having sound at least two pages in the described browser, then,
Described player control is known the unit, specifically is used for knowing the player control element of each each self-embedding of the page;
The described second page sound control module specifically is used for by controlling the player control element of described each each self-embedding of the page the various sound that are in the browser in the different pages independently being controlled respectively.
During specific implementation, described player control knows that the unit comprises:
Inquire about subelement, be used for the DOM Document Object Model of query page, obtaining bookmark name is the ClassID of the page elements of object;
Determine subelement, be used for ClassID is met the player control element that the page elements of prerequisite is defined as embedding.
The interface that is used for sound control that externally provides by the player control element that described specific webpage embeds specifically is provided the described second page sound control module, and the sound in the specific webpage in the described browser is controlled.
Equally, can carry out automanual control to the sound in the browser, at this moment, this system also comprises:
The control inlet provides the unit, and being used for provides the control inlet to the user;
The described second page sound control module after specifically being used for receiving user's instruction by described control inlet, carries out corresponding control according to user instruction to the sound in the specific webpage in the browser.
In addition, 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.
Certainly, also can carry out automanual control to the sound in the browser, at this moment, the described second 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.
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 (24)

1. the method that the sound in the browser is controlled is characterized in that, comprising:
Know the sound place thread in the page;
By controlling described sound place thread, the sound in the specific webpage in the described browser is controlled.
2. method according to claim 1 is characterized in that, if having sound at least two pages in the described browser, then,
Describedly know that the thread at the sound place in the page comprises: know the sound thread at place separately in each page;
Described by the described sound of control place thread, sound in the specific webpage in the described browser controlled comprise:, the sound that is in the browser in the different pages is independently controlled respectively by controlling the sound thread at place separately in described each page.
3. method according to claim 1 is characterized in that, describedly knows that the sound place thread in the page comprises:
When the function that plays sound is called, obtain the sign of the thread that calls the described function that plays sound, the corresponding thread of described sign is defined as sound place thread;
Determine to create the page of this sound place thread according to described sign, this sound place thread is defined as sound place thread in this page.
4. according to each described method of claim 1 to 3, it is characterized in that, described by control described sound place thread, the sound in the specific webpage in the described browser controlled comprise:
By revising the function that is used to play sound of the sound place thread dispatching in the specific webpage, the sound in the specific webpage in the described browser is controlled;
Perhaps,
By interrupting the function calls of sound place thread in the specific webpage, the sound in the specific webpage in the described browser is carried out quiet control to being used to play sound;
Perhaps,
By hanging up the sound place thread in the specific webpage, the sound in the specific webpage in the described browser is carried out quiet control.
5. according to each described method of claim 1 to 3, it is characterized in that, also comprise: provide the control inlet to the user;
Described sound in the specific webpage in the described browser is controlled comprises: after receiving user's instruction by described control inlet, according to user instruction the sound in the specific webpage in the described browser is controlled.
6. according to each described method of claim 1 to 3, it is characterized in that, described by control described sound place thread, the sound in the specific webpage in the described browser controlled comprise:
Only when described specific webpage 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.
7. the system that the sound in the browser is controlled is characterized in that, comprising:
Thread is known the unit, is used for knowing the sound place thread of the page;
The first page sound control module is used for by controlling described sound place thread the sound in the specific webpage in the described browser being controlled.
8. system according to claim 7 is characterized in that, if the sound in the described browser comprises two or more sound, then:
Described thread is known the unit, and the sound that specifically is used for knowing each page is the thread at place separately;
The described first page sound control module specifically is used for the sound thread at place separately by controlling described each page, and the sound that is in the browser in the different pages is independently controlled respectively.
9. system according to claim 7 is characterized in that, described thread knows that the unit comprises:
The thread determining unit is used for obtaining the sign of the thread that calls the described function that plays sound when the function that plays sound is called, and the corresponding thread of described sign is defined as sound place thread;
The thread analytic unit is used for determine creating according to described sign the page of this sound place thread, and this sound place thread is defined as sound place thread in this page.
10. according to each described system of claim 7 to 9, it is characterized in that the described first page sound control module comprises:
Function is revised subelement, is used for the function that is used to play sound by the sound place thread dispatching of revising specific webpage, and the sound in the specific webpage in the described browser is controlled;
Perhaps,
Call the interruption subelement, be used for the sound in the specific webpage in the described browser being carried out quiet control by interrupting the function calls of sound place thread to being used to play sound of specific webpage;
Perhaps,
The thread suspension subelement is used for by hanging up the sound place thread of specific webpage the sound in the specific webpage in the described browser being carried out quiet control.
11. according to each described system of claim 7 to 9, it is characterized in that, also comprise:
The control inlet provides the unit, and being used for provides the control inlet to the user;
The described first page sound control module after specifically being used for receiving user's instruction by described control inlet, carries out corresponding control according to user instruction to the sound in the specific webpage in the browser.
12. according to each described system of claim 7 to 9, it is characterized in that, 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.
13., it is characterized in that the described first page sound control module comprises according to each described system of claim 7 to 9:
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.
14. the method that the sound in the browser is controlled is characterized in that, comprising:
Know the player control element that embeds in the specific webpage in the browser;
By controlling described player control element, the sound in the specific webpage in the described browser is controlled.
15. method according to claim 14 is characterized in that, if having sound at least two pages in the described browser, then,
Describedly know that the player control element that embeds in the page comprises: the player control element of knowing each self-embedding in each page;
Described by the described player control element of control, sound in the specific webpage in the described browser controlled comprise:, the various sound that are in the browser in the different pages are independently controlled respectively by controlling the player control element of each self-embedding in described each page.
16. method according to claim 14 is characterized in that, and is described by the described player control element of control, the sound in the specific webpage in the described browser controlled comprise:
Call the interface that is used for sound control that the player control element that embeds in the described specific webpage externally provides, the sound in the specific webpage in the described browser is controlled.
17. according to each described method of claim 14 to 16, it is characterized in that, described by the described player control element of control, the sound in the specific webpage in the described browser controlled comprise:
Only when described specific webpage 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.
18. the system that the sound in the browser is controlled is characterized in that, comprising:
Player control is known the unit, is used for knowing the player control element that embeds in the browser specific webpage;
The second page sound control module is used for by controlling described player control element the sound in the specific webpage in the described browser being controlled.
19. system according to claim 18 is characterized in that, if having sound at least two pages in the described browser, then,
Described player control is known the unit, specifically is used for knowing the player control element of each each self-embedding of the page;
The described second page sound control module specifically is used for by controlling the player control element of described each each self-embedding of the page the various sound that are in the browser in the different pages independently being controlled respectively.
20. system according to claim 18 is characterized in that, described player control knows that the unit comprises:
Inquire about subelement, be used for the DOM Document Object Model of query page, obtaining bookmark name is the ClassID of the page elements of object;
Determine subelement, be used for ClassID is met the player control element that the page elements of prerequisite is defined as embedding.
21. system according to claim 18, it is characterized in that, the described second page sound control module specifically is used for calling the interface that is used for sound control that player control element that described specific webpage embeds externally provides, and the sound in the specific webpage in the described browser is controlled.
22. according to each described system of claim 18 to 21, it is characterized in that, also comprise:
The control inlet provides the unit, and being used for provides the control inlet to the user;
The described second page sound control module after specifically being used for receiving user's instruction by described control inlet, carries out corresponding control according to user instruction to the sound in the specific webpage in the browser.
23. according to each described system of claim 18 to 21, it is characterized in that, 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.
24., it is characterized in that the described second page sound control module comprises according to each described system of claim 18 to 21:
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.
CN 200910262081 2009-04-30 2009-12-23 Method and system for controlling sound in browser Active CN101789001B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910262081 CN101789001B (en) 2009-04-30 2009-12-23 Method and system for controlling sound in browser

Applications Claiming Priority (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
CN200910083405.5 2009-04-30
CN 200910262081 CN101789001B (en) 2009-04-30 2009-12-23 Method and system for controlling sound in browser

Related Child Applications (1)

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

Publications (2)

Publication Number Publication Date
CN101789001A true CN101789001A (en) 2010-07-28
CN101789001B CN101789001B (en) 2013-07-24

Family

ID=42532217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910262081 Active CN101789001B (en) 2009-04-30 2009-12-23 Method and system for controlling sound in browser

Country Status (1)

Country Link
CN (1) CN101789001B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915317A (en) * 2012-03-08 2013-02-06 北京金山安全软件有限公司 sound control method and device
CN103019710A (en) * 2012-12-03 2013-04-03 北京奇虎科技有限公司 Device and method for controlling sound of browser
CN103246665A (en) * 2012-02-08 2013-08-14 腾讯科技(深圳)有限公司 Method and apparatus for keeping music playing during web page switching
CN103279321A (en) * 2013-05-07 2013-09-04 青岛海信电器股份有限公司 Audio and video control device and audio and video control method
CN103530100A (en) * 2012-07-05 2014-01-22 腾讯科技(深圳)有限公司 Method and device for muting WMP assembly and player
CN103646046A (en) * 2012-12-03 2014-03-19 北京奇虎科技有限公司 Method and device for sound control in browser and browser
CN103809950A (en) * 2012-11-12 2014-05-21 腾讯科技(深圳)有限公司 Flash player plug-in muting method and device
CN103853747A (en) * 2012-11-30 2014-06-11 腾讯科技(深圳)有限公司 Method and device for controlling sound source webpage
CN103886057A (en) * 2014-03-14 2014-06-25 联想(北京)有限公司 Method for processing information and electronic equipment
CN104133847A (en) * 2014-07-01 2014-11-05 北京奇虎科技有限公司 Method and device for controlling sound in browser
CN104133849A (en) * 2014-07-01 2014-11-05 北京奇虎科技有限公司 Method and device for carrying out sound control in browser
CN104216772A (en) * 2013-06-03 2014-12-17 上海帛茂信息科技有限公司 Method for electronic equipment supporting multiple windows to control audio frequency corresponding to different windows
CN104239547A (en) * 2014-09-23 2014-12-24 可牛网络技术(北京)有限公司 Method for processing page resources of browser and device
CN104298502A (en) * 2014-09-18 2015-01-21 上海二三四五网络科技有限公司 Method and device for muting browser
CN105677286A (en) * 2014-11-19 2016-06-15 腾讯科技(武汉)有限公司 Volume adjustment method and device for browser
CN107302724A (en) * 2016-04-14 2017-10-27 北京搜狗科技发展有限公司 A kind of video playing control method, device and electronic equipment
CN111984223A (en) * 2020-08-21 2020-11-24 上海二三四五网络科技有限公司 Control method and control device for muting original page after browser switches new window
CN114339277A (en) * 2021-12-22 2022-04-12 武汉斗鱼鱼乐网络科技有限公司 Live broadcast room sound shielding method and related equipment

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246665B (en) * 2012-02-08 2015-07-01 腾讯科技(深圳)有限公司 Method and apparatus for keeping music playing during web page switching
CN103246665A (en) * 2012-02-08 2013-08-14 腾讯科技(深圳)有限公司 Method and apparatus for keeping music playing during web page switching
CN102915317A (en) * 2012-03-08 2013-02-06 北京金山安全软件有限公司 sound control method and device
CN102915317B (en) * 2012-03-08 2016-01-20 北京金山安全软件有限公司 sound control method and device
CN103530100B (en) * 2012-07-05 2017-12-15 腾讯科技(深圳)有限公司 A kind of Jing Yin method, apparatus of WMP components and player
CN103530100A (en) * 2012-07-05 2014-01-22 腾讯科技(深圳)有限公司 Method and device for muting WMP assembly and player
CN103809950B (en) * 2012-11-12 2017-08-25 腾讯科技(深圳)有限公司 Flash player plug-in unit mute method and device
CN103809950A (en) * 2012-11-12 2014-05-21 腾讯科技(深圳)有限公司 Flash player plug-in muting method and device
CN103853747B (en) * 2012-11-30 2018-09-04 腾讯科技(深圳)有限公司 A kind of control method and device of sound source webpage
CN103853747A (en) * 2012-11-30 2014-06-11 腾讯科技(深圳)有限公司 Method and device for controlling sound source webpage
CN103019710B (en) * 2012-12-03 2016-08-03 北京奇虎科技有限公司 Audio control method and device for browser
CN103019710A (en) * 2012-12-03 2013-04-03 北京奇虎科技有限公司 Device and method for controlling sound of browser
CN103646046A (en) * 2012-12-03 2014-03-19 北京奇虎科技有限公司 Method and device for sound control in browser and browser
CN103279321A (en) * 2013-05-07 2013-09-04 青岛海信电器股份有限公司 Audio and video control device and audio and video control method
CN104216772A (en) * 2013-06-03 2014-12-17 上海帛茂信息科技有限公司 Method for electronic equipment supporting multiple windows to control audio frequency corresponding to different windows
CN103886057A (en) * 2014-03-14 2014-06-25 联想(北京)有限公司 Method for processing information and electronic equipment
CN104133849B (en) * 2014-07-01 2018-02-02 北京奇虎科技有限公司 A kind of method and apparatus that sound control is carried out in browser
CN104133849A (en) * 2014-07-01 2014-11-05 北京奇虎科技有限公司 Method and device for carrying out sound control in browser
CN104133847B (en) * 2014-07-01 2018-04-24 北京奇虎科技有限公司 A kind of method and apparatus that sound control is carried out in browser
CN104133847A (en) * 2014-07-01 2014-11-05 北京奇虎科技有限公司 Method and device for controlling sound in browser
CN104298502A (en) * 2014-09-18 2015-01-21 上海二三四五网络科技有限公司 Method and device for muting browser
CN104298502B (en) * 2014-09-18 2017-09-05 上海二三四五网络科技有限公司 browser mute method and device
CN104239547A (en) * 2014-09-23 2014-12-24 可牛网络技术(北京)有限公司 Method for processing page resources of browser and device
CN105677286A (en) * 2014-11-19 2016-06-15 腾讯科技(武汉)有限公司 Volume adjustment method and device for browser
CN107302724A (en) * 2016-04-14 2017-10-27 北京搜狗科技发展有限公司 A kind of video playing control method, device and electronic equipment
CN111984223A (en) * 2020-08-21 2020-11-24 上海二三四五网络科技有限公司 Control method and control device for muting original page after browser switches new window
CN114339277A (en) * 2021-12-22 2022-04-12 武汉斗鱼鱼乐网络科技有限公司 Live broadcast room sound shielding method and related equipment

Also Published As

Publication number Publication date
CN101789001B (en) 2013-07-24

Similar Documents

Publication Publication Date Title
CN101789001B (en) Method and system for controlling sound in browser
CN102622222B (en) Method and system for controlling sound in browser
US8756505B2 (en) Browser interpretable document for controlling a plurality of media players and systems and methods related thereto
US6081263A (en) System and method of a user configurable display of information resources
US6219047B1 (en) Training agent
CN101706796B (en) Method and device for showing webpage resources
US8181110B2 (en) DOM based media viewer
US9141718B2 (en) Clipview applications
US7757173B2 (en) Voice menu system
CN101889278B (en) Summarizing portlet usage captured responsive to trigger events in a portal page
US8966373B2 (en) Method and system for presenting network resources
US20080235142A1 (en) System and methods for obtaining rights in playlist entries
CN102752664B (en) Display method and device for text subtitle information in webpage
US20060277460A1 (en) Webview applications
US20060277481A1 (en) Presenting clips of content
US20110271171A1 (en) Creating and Managing Reference Elements of Deployable Web Archive Files
JP2001524282A (en) Newsroom user interface including multi-panel workspace
CN103034695A (en) Method and device for sound control in browser
EP3391250A2 (en) Web browser extension
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
CN106155507A (en) A kind of page content display method and electronic equipment
JP2006302243A (en) Task-based interface with underlying extensible framework
CN104735549A (en) Method and device for displaying text caption information in webpage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant