CN104298502A - Method and device for muting browser - Google Patents

Method and device for muting browser Download PDF

Info

Publication number
CN104298502A
CN104298502A CN201410478110.9A CN201410478110A CN104298502A CN 104298502 A CN104298502 A CN 104298502A CN 201410478110 A CN201410478110 A CN 201410478110A CN 104298502 A CN104298502 A CN 104298502A
Authority
CN
China
Prior art keywords
browser
control
quiet
multimedia object
page
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
CN201410478110.9A
Other languages
Chinese (zh)
Other versions
CN104298502B (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.)
SHANGHAI 2345 NETWORK TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI 2345 NETWORK TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=52318245&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=CN104298502(A) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by SHANGHAI 2345 NETWORK TECHNOLOGY Co Ltd filed Critical SHANGHAI 2345 NETWORK TECHNOLOGY Co Ltd
Priority to CN201410478110.9A priority Critical patent/CN104298502B/en
Publication of CN104298502A publication Critical patent/CN104298502A/en
Application granted granted Critical
Publication of CN104298502B publication Critical patent/CN104298502B/en
Ceased legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a method and device for muting a browser. The method comprises the procedures of recognizing multimedia object elements on webpages; establishing corresponding muting control scripts according to the types of the multimedia object elements so as to enable each muting control script to control the starting and closing of a sound channel of the corresponding multimedia object element; forming a corresponding page sound control function for all the muting control scripts of each webpage; generating a corresponding control key for each page sound control function; displaying the control key on an interaction interface of the browser. According to the method and device for muting the browser, the webpages can be muted independently, global muting can be carried out on all the webpages of the browser, the method and device for muting the browser are quite convenient to use, and local volume control cannot be influenced.

Description

Browser mute method and device
Technical field
The present invention relates to browser quietness technology.
Background technology
User is when using browser browsing pages; often can hear the number voice sent in browser; such as, advertisement in pop-up window; access the sound effect of this webpage during certain webpage; when entering the space page of friend; automatically play the background music in this space, these some all make user feel puzzlement.
In these cases, if the player of equipment of itself carries out quiet by user, then can affect local sound effect, such as user wants to listen to the music oneself liked in this locality, therefore, need carry out quiet to browser, and local sound normal play can not be affected.
Summary of the invention
The object of the invention is to propose a kind of browser mute method, it solution independently can must not carry out quiet problem to the page.
In order to achieve the above object, the technical solution adopted in the present invention is as follows:
Browser mute method, it comprises the following steps:
Identify the multimedia object element in Webpage;
According to the type of multimedia object element, create corresponding quiet control script, with the keying of the sound channel of the multimedia object element making quiet control Script controlling corresponding;
The all quiet control script of each Webpage is formed a corresponding page sound control function;
Each page sound control function is generated a corresponding control button;
The interactive interface described control button being placed in browser shows.
Preferably, the type of described multimedia object element comprises one or more in audio player, video player, Audio Controls, video control.
Preferably, described quiet control script is JavaScript.Described JavaScript is based on JQuery framework.
Preferably, described page sound control function is JavaScript function.
The present invention also proposes a kind of browser silencing apparatus, and it comprises with lower module:
Identification module, for identifying the multimedia object element in Webpage;
Creation module, for the type according to multimedia object element, creates corresponding quiet control script, with the keying of the sound channel of the multimedia object element making quiet control Script controlling corresponding;
Function forms module, for all quiet control script of each Webpage being formed a corresponding page sound control function;
Generation module, for generating a corresponding control button by each page sound control function;
Display module, shows on the interactive interface described control button being placed in browser.
The present invention has following beneficial effect:
Can independently carry out quiet to Webpage, also can carry out the overall situation to all Webpages of browser quiet, use very convenient, can't control impact to local volume.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the browser mute method of present pre-ferred embodiments;
Fig. 2 is the functional block diagram of the browser silencing apparatus of present pre-ferred embodiments.
Embodiment
Below, by reference to the accompanying drawings and embodiment, the present invention is described further.
As shown in Figure 1, a kind of browser mute method, it comprises the following steps:
When step S1, user use browser, after opening Webpage in a browser, identify the multimedia object element in each Webpage.Described multimedia object element is the control that can play sound, such as audio player, video player, Audio Controls, video control etc.Concrete, the sound such as, play in flash control in a browser, or be embedded into the sound play in the player control in browser, or as the sound of web page background music, etc.
Step S2, type (audio player, video player, Audio Controls, video control etc.) according to multimedia object element, create corresponding quiet control script, with the keying of the sound channel of the multimedia object element making quiet control Script controlling corresponding.That is, whether quiet control Script controlling multimedia object element can play sound.Described quiet control script is the JavaScript based on JQuery framework.
Step S3, all quiet control script of each Webpage formed a corresponding page sound control function.Described page sound control function is JavaScript function.That is, whether a Webpage controls it by a page sound control function of correspondence and can play sound.Webpage and page sound control function form one-to-one relationship.
Step S4, each page sound control function generated corresponding one and control button.One controls button and whether is in state of activation for controlling a corresponding page sound control function.In addition, one can also be generated and control all page sound control functions overall situation mute button, each control button need not be made all to be in closed condition to make user and could realize overall quiet.
Step S5, described control button is placed in browser interactive interface on show, to make user, described control button is controlled.
As shown in Figure 2, the present embodiment also discloses a kind of browser silencing apparatus corresponding with browser mute method, and it comprises with lower module:
Identification module, for identifying the multimedia object element in Webpage;
Creation module, for the type according to multimedia object element, creates corresponding quiet control script, with the keying of the sound channel of the multimedia object element making quiet control Script controlling corresponding;
Function forms module, for all quiet control script of each Webpage being formed a corresponding page sound control function;
Generation module, for generating a corresponding control button by each page sound control function;
Display module, shows on the interactive interface described control button being placed in browser.
Below, the principle of work of the present embodiment is described in detail.
The present embodiment has carried out multi-level analysis and shielding to the sound in browser, and preventing portion divides the situation of the sound shielding omission in webpage, reaches the effect that browser page is quiet.First the present embodiment controls from the sound of the level of page process to browser the effect reaching shielding.In order to prevent part browser page from occurring sound shielding omission situation, the present embodiment again to check the sound in the page at browser page thread level and shields, to realize the quiet effect of the browser overall situation.The present embodiment, by inquiring about the multimedia object element of the page of specifying, obtains the control that can play sound, and controls these controls, to reach the effect of shielded sound.
The present embodiment realizes carrying out interception to the sound in browser by script (JavaScript, JS) and controls, and reaches the quiet or overall quiet effect of browser page.The present embodiment not only reaches the specific muting function of browser, also has rapidity and dirigibility.The present embodiment does not create extra thread in the interception shielding of sound, therefore memory headroom and threading logic processing time is saved, and during multiple page process, also without the logical relation between processing page thread and page process, browser page can be realized immediately quiet.
The present embodiment is under can operating in each windows platform, for browser provides the muting schemes of applicable Consumer's Experience.The feature of the present embodiment is spanning operation system platform, across multimedia application, accomplishes that each page controls separately the quiet and quiet result of use combined of the overall situation.Major technique be adopt in the page injection script realize, by browser control need load realize the quiet script of the page.User can be facilitated by the interactive interface of browser and the selection of close friend needs quiet scope (current page is quiet or overall quiet), and then browser decides to need injection script in which page by these user options to realize the page quiet.The script performing the page quiet can perform renewal by the download channel of browser, the multimedia application scene of the various webpage of convenient reply.This quiet script is based on JQuery framework, has good compatibility, the difference of the multimedia application of the various operating system of the maximized support of energy.Its principle of work is the multimedia object element screened after webpage loads in webpage, increases the quiet control script (controlling open quiet and cancel quiet) of these objects, and is extracted as unified JS script function, directly call for browser.After user is provided with silence switch, browser realizes the mute function to the page according to the quiet JS function arranging the specific Uniform Name of the page calling association.The sharpest edges of the present embodiment are controlling functions is realized by script, and not be used in browser and originally increase how many function codes with it, and JS is free to upgrading, and do not need wait new edition browser issue could adapt to Web-page Multi-media new change functionally.
Ripe browser architectures is all multithreading, multi-process framework, and the muting schemes of the present embodiment is also perform based on such framework.User is arranged through interprocess communication to notify relevant page place process by quiet in interactive interface process, and then navigate to specific page thread, only go to perform quiet JS function at this specific page thread, just can reach the quiet effect of the page.
Here, use Baidu music website the action principle of JS to be described for example: with Baidu's music site, this website support at least 3 kinds of media players, corresponding unlatching is quiet and to cancel quiet associated script also different.
(1) player fmp_mp3.swf (being used for playing mp3)
Quiet script: flashObject.setData (" mute ", 1);
Cancel quiet script: flashObject.setData (" mute ", 0);
(2) player fmp_aac.swf (being used for playing the forms such as mp4, m4a)
Quiet script: audio.muted=true;
Cancel quiet script: audio.muted=false;
(3) player wmp (window media player plays mp3, wma), then directly use the object of the built-in support of WMP
Quiet script: wmp_id.settings.mute=true;
Cancel quiet script: wmp_id.settings.mute=false.
User in use, directly clicks control button and can realize quiet or overall quiet, very convenient to specified page on the interactive interface of browser.
For a person skilled in the art, according to technical scheme described above and design, other various corresponding change and distortion can be made, and all these change and distortion all should belong within the protection domain of the claims in the present invention.

Claims (10)

1. browser mute method, is characterized in that, comprises the following steps:
Identify the multimedia object element in Webpage;
According to the type of multimedia object element, create corresponding quiet control script, with the keying of the sound channel of the multimedia object element making quiet control Script controlling corresponding;
The all quiet control script of each Webpage is formed a corresponding page sound control function;
Each page sound control function is generated a corresponding control button;
The interactive interface described control button being placed in browser shows.
2. browser mute method as claimed in claim 1, is characterized in that, the type of described multimedia object element comprise in audio player, video player, Audio Controls, video control one or more.
3. browser mute method as claimed in claim 1, it is characterized in that, described quiet control script is JavaScript.
4. browser mute method as claimed in claim 3, it is characterized in that, described JavaScript is based on JQuery framework.
5. browser mute method as claimed in claim 1, it is characterized in that, described page sound control function is JavaScript function.
6. browser silencing apparatus, is characterized in that, comprises with lower module:
Identification module, for identifying the multimedia object element in Webpage;
Creation module, for the type according to multimedia object element, creates corresponding quiet control script, with the keying of the sound channel of the multimedia object element making quiet control Script controlling corresponding;
Function forms module, for all quiet control script of each Webpage being formed a corresponding page sound control function;
Generation module, for generating a corresponding control button by each page sound control function;
Display module, shows on the interactive interface described control button being placed in browser.
7. browser silencing apparatus as claimed in claim 6, is characterized in that, the type of described multimedia object element comprise in audio player, video player, Audio Controls, video control one or more.
8. browser silencing apparatus as claimed in claim 6, it is characterized in that, described quiet control script is JavaScript.
9. browser silencing apparatus as claimed in claim 8, it is characterized in that, described JavaScript is based on JQuery framework.
10. browser silencing apparatus as claimed in claim 6, it is characterized in that, described page sound control function is JavaScript function.
CN201410478110.9A 2014-09-18 2014-09-18 browser mute method and device Ceased CN104298502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410478110.9A CN104298502B (en) 2014-09-18 2014-09-18 browser mute method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410478110.9A CN104298502B (en) 2014-09-18 2014-09-18 browser mute method and device

Publications (2)

Publication Number Publication Date
CN104298502A true CN104298502A (en) 2015-01-21
CN104298502B CN104298502B (en) 2017-09-05

Family

ID=52318245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410478110.9A Ceased CN104298502B (en) 2014-09-18 2014-09-18 browser mute method and device

Country Status (1)

Country Link
CN (1) CN104298502B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107390992A (en) * 2017-07-21 2017-11-24 北京三快在线科技有限公司 Webpage manipulation exchange method, device and Website server
CN108536415A (en) * 2018-02-28 2018-09-14 广东欧珀移动通信有限公司 Using method for controlling volume, device, mobile terminal and computer-readable medium
CN111984223A (en) * 2020-08-21 2020-11-24 上海二三四五网络科技有限公司 Control method and control device for muting original page after browser switches new window
CN113849241A (en) * 2020-06-10 2021-12-28 Oppo(重庆)智能科技有限公司 Audio playing control method, intelligent watch and device with storage function

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478669A (en) * 2008-08-29 2009-07-08 百视通网络电视技术发展有限责任公司 Media playing control method based on browser on IPTV system
CN101789001A (en) * 2009-04-30 2010-07-28 北京搜狗科技发展有限公司 Method and system for controlling sound in browser
US20130238996A1 (en) * 2012-03-08 2013-09-12 Beijing Kingsoft Internet Security Software Co., Ltd. Controlling sound of a web browser

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478669A (en) * 2008-08-29 2009-07-08 百视通网络电视技术发展有限责任公司 Media playing control method based on browser on IPTV system
CN101789001A (en) * 2009-04-30 2010-07-28 北京搜狗科技发展有限公司 Method and system for controlling sound in browser
US20130238996A1 (en) * 2012-03-08 2013-09-12 Beijing Kingsoft Internet Security Software Co., Ltd. Controlling sound of a web browser

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107390992A (en) * 2017-07-21 2017-11-24 北京三快在线科技有限公司 Webpage manipulation exchange method, device and Website server
CN107390992B (en) * 2017-07-21 2020-12-04 北京三快在线科技有限公司 Webpage manipulation interaction method and device and website server
CN108536415A (en) * 2018-02-28 2018-09-14 广东欧珀移动通信有限公司 Using method for controlling volume, device, mobile terminal and computer-readable medium
CN113849241A (en) * 2020-06-10 2021-12-28 Oppo(重庆)智能科技有限公司 Audio playing control method, intelligent watch and device with storage function
CN111984223A (en) * 2020-08-21 2020-11-24 上海二三四五网络科技有限公司 Control method and control device for muting original page after browser switches new window

Also Published As

Publication number Publication date
CN104298502B (en) 2017-09-05

Similar Documents

Publication Publication Date Title
CN105630787B (en) Animation realization method and device based on dynamic portable network graphics
CN106406867B (en) Screen reading method and device based on android system
US20170324859A1 (en) Information processing method, terminal, and computer-readable storage medium
CN102915317B (en) sound control method and device
KR20110105625A (en) Odor shooting method and mobile device supporting the same
CN106055996A (en) Method and mobile terminal for multimedia information sharing
CN104298502A (en) Method and device for muting browser
JP6783339B2 (en) Methods and devices for processing audio
CN106970977A (en) A kind of webpage redirects processing method and processing device
CN106412282B (en) A kind of real-time messages phonetic prompt method and mobile terminal
CN103905644A (en) Generating method and equipment of mobile terminal call interface
MXPA05009208A (en) System and method for selecting test case execution behaviors for reproducible test automation.
CN103092981B (en) A kind of method and electronic equipment setting up phonetic symbol
US20080080678A1 (en) Method and system for personalized voice dialogue
WO2019000723A1 (en) Method and apparatus for achieving popup interaction event, and computer device
CN103970839A (en) Method for controlling webpage browsing through voice
CN104111728A (en) Electronic device and voice command input method based on operation gestures
CN103544008A (en) Method and device for playing audio in browsers
CN103019710B (en) Audio control method and device for browser
CN104898821A (en) Information processing method and electronic equipment
CN104536787B (en) Resource preloads method and device
CN106648530A (en) Voice control method and terminal
CN105808233A (en) Screen recording method and apparatus
JP2010160788A (en) Method, system, and computer program for dynamically improving performance of interactive voice response system using complex event processor
CN105095289A (en) Webpage access method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
IW01 Full invalidation of patent right

Decision date of declaring invalidation: 20181205

Decision number of declaring invalidation: 37920

Granted publication date: 20170905

IW01 Full invalidation of patent right