CN102110130A - Method for implementing microphone detection on web page - Google Patents

Method for implementing microphone detection on web page Download PDF

Info

Publication number
CN102110130A
CN102110130A CN2010102910836A CN201010291083A CN102110130A CN 102110130 A CN102110130 A CN 102110130A CN 2010102910836 A CN2010102910836 A CN 2010102910836A CN 201010291083 A CN201010291083 A CN 201010291083A CN 102110130 A CN102110130 A CN 102110130A
Authority
CN
China
Prior art keywords
webpage
microphone
unit
flash plug
state
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
CN2010102910836A
Other languages
Chinese (zh)
Other versions
CN102110130B (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.)
Nantong Construction Engineering Co ltd
Original Assignee
Suzhou Codyy 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
Application filed by Suzhou Codyy Network Technology Co Ltd filed Critical Suzhou Codyy Network Technology Co Ltd
Priority to CN2010102910836A priority Critical patent/CN102110130B/en
Publication of CN102110130A publication Critical patent/CN102110130A/en
Application granted granted Critical
Publication of CN102110130B publication Critical patent/CN102110130B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention belongs to the technical field of networks, and particularly relates to a method for implementing microphone detection on a web page. The method comprises the following steps of: accessing the web page by a user, automatically loading a Flash plug-in, performing local microphone detection through the Flash plug-in by calling a microphone operating application program interface (API), and then returning the detection result to the web page so that the web page can acquire the detection result of the microphone. The method can be used for directly detecting the local microphone on the web page, and has strong timeliness and accuracy.

Description

Realize the method that microphone detects on a kind of webpage
Technical field
The invention belongs to networking technology area, be specifically related to realize on a kind of webpage the method that microphone detects.
Background technology
The development of, hardware soft along with the internet, multimedia messagesization is popularized, people's interchange has in daily life also used multimedia technology more, such as mobile phone, phone, speech communication etc., especially more and more is subjected to people's favor especially based on the voice-over-net communication of computer.Present speech communication is to need down loading mounting software mostly, it is to realize voice on webpage that some products are also arranged certainly, but in use find, the good microphone of these product neither ones detects to be handled, the situation of voice often appears can't hear, looking into its reason, is that the other side does not have microphone or the incorrect microphone apparatus of opening, and brings very big inconvenience to communication.Even if these products can be implemented in the line microphone and detect, also need to download some controls, realize the detection of microphone then by these control invokes local resources.So just can not accomplish green test, and these webpage controls installations are many, will influence the travelling speed of user computer.
Realize the method that microphone detects on a kind of webpage, exactly in order to solve the existing problem of present stage microphone detection mode, and can be directly at the enterprising line operate of webpage, need not to download any control, can realize green test, be a kind of popular technology of truly can popularizing, and realize that principle is simple, can embed easily in the various internet, applications.
Summary of the invention
The objective of the invention is: provide and realize the method that microphone detects on a kind of webpage.
For achieving the above object, technical scheme of the present invention is: realize on a kind of webpage may further comprise the steps the method that microphone detects:
1) user capture webpage, webpage load automatically and are used to detect microphone Flash plug-in unit, and the Flash plug-in unit calls Flash plug-in unit microphone operation A PI and obtains microphone state after loading and finishing;
2) after the Flash plug-in unit is finished dealing with microphone state, state is kept at Flash array variable the inside;
3) the Flash plug-in unit imports the data variable of preserving microphone state into by the mutual API Calls webpage of webpage function;
4) the webpage function is by handling the array variable that the Flash plug-in unit passes over, to obtain the microphone current state.
In the technique scheme, wherein step 1) comprises following process:
The user capture webpage, and load the Flash plug-in unit, the Flash plug-in unit calls Flash plug-in unit microphone operation A PI automatically and obtains microphone state after loading and finishing.
In the technique scheme, step 2 wherein) comprise following process:
After the Flash plug-in unit gets access to microphone state, handle, result comprises that the state of camera has: normal, busy, disable access, occupied are kept at the array variable the inside to result then.
In the technique scheme, wherein step 3) comprises following process:
The Flash plug-in unit will be kept at the testing result of array variable the inside, use the mutual API Calls webpage of Flash plug-in unit webpage JavaScript function, and import testing result into to the JavaScript function.
In the technique scheme, wherein step 4) comprises following process:
When webpage JavaScript function receives the testing result that the Flash plug-in unit passes over, just can on webpage, carry out further logical process, can realize carrying out the detection of microphone state.
The present invention compared with prior art has following advantage:
1) user does not need unnecessary operation and setting, and whole testing process is full-automatic;
2) can on webpage, carry out on-line operation, not need to install any software;
3) testing process fast, does not in time consume any resource;
4) by carrying out being convenient to embed other application alternately with JavaScript well.
Description of drawings
Accompanying drawing 1 in the Figure of description, Fig. 2 are detail flowcharts of the present invention.
Embodiment
Realize the method that microphone detects on a kind of webpage, may further comprise the steps:
1) user capture webpage, and load the Flash plug-in unit, the Flash plug-in unit calls Flash plug-in unit microphone operation A PI automatically and obtains microphone state after loading and finishing;
2) after the Flash plug-in unit gets access to microphone state, handle, result comprises that the state of camera has: normal, busy, disable access, occupied are kept at the array variable the inside to result then;
3) the Flash plug-in unit will be kept at the testing result of array variable the inside, use the mutual API Calls webpage of Flash plug-in unit webpage JavaScript function, and import testing result into to the JavaScript function;
When 4) webpage JavaScript function receives the testing result that the Flash plug-in unit passes over, just can on webpage, carry out further logical process, can realize carrying out the detection of microphone state.
Further describe method of the present invention below:
Referring to the accompanying drawing in the Figure of description 1, accompanying drawing 2, the user capture webpage, and load the Flash plug-in unit, the Flash plug-in unit calls Flash plug-in unit microphone operation A PI automatically and obtains microphone state after loading and finishing; After the Flash plug-in unit gets access to microphone state, handle, result comprises that the state of camera has: normal, busy, disable access, occupied are kept at the array variable the inside to result then; The Flash plug-in unit will be kept at the testing result of array variable the inside, use the mutual API Calls webpage of Flash plug-in unit webpage JavaScript function, and import testing result into to the JavaScript function; When webpage JavaScript function receives the testing result that the Flash plug-in unit passes over, just can on webpage, carry out further logical process, can realize carrying out the detection of microphone state.

Claims (5)

1. realize the method that microphone detects on a webpage, it is characterized in that, may further comprise the steps:
1) user capture webpage, webpage load automatically and are used to detect microphone Flash plug-in unit, and the Flash plug-in unit calls Flash plug-in unit microphone operation A PI and obtains microphone state after loading and finishing;
2) after the Flash plug-in unit is finished dealing with microphone state, state is kept at Flash array variable the inside;
3) the Flash plug-in unit imports the data variable of preserving microphone state into by the mutual API Calls webpage of webpage function;
4) the webpage function is by handling the array variable that the Flash plug-in unit passes over, to obtain the microphone current state.
2. realize the method that microphone detects on a kind of webpage as claimed in claim 1, it is characterized in that wherein step 1) comprises following process:
The user capture webpage, and load the Flash plug-in unit, the Flash plug-in unit calls Flash plug-in unit microphone operation A PI automatically and obtains microphone state after loading and finishing.
3. realize the method that microphone detects on a kind of webpage as claimed in claim 1, it is characterized in that, wherein step 2) comprise following process:
After the Flash plug-in unit gets access to microphone state, handle, result comprises that the state of camera has: normal, busy, disable access, occupied are kept at the array variable the inside to result then.
4. realize the method that microphone detects on a kind of webpage as claimed in claim 1, it is characterized in that wherein step 3) comprises following process:
The Flash plug-in unit will be kept at the testing result of array variable the inside, use the mutual API Calls webpage of Flash plug-in unit webpage JavaScript function, and import testing result into to the JavaScript function.
5. realize the method that microphone detects on a kind of webpage as claimed in claim 1, it is characterized in that: wherein step 4) comprises following process:
When webpage JavaScript function receives the testing result that the Flash plug-in unit passes over, just can on webpage, carry out further logical process, can realize carrying out the detection of microphone state.
CN2010102910836A 2010-09-17 2010-09-17 Method for implementing microphone detection on web page Active CN102110130B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102910836A CN102110130B (en) 2010-09-17 2010-09-17 Method for implementing microphone detection on web page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102910836A CN102110130B (en) 2010-09-17 2010-09-17 Method for implementing microphone detection on web page

Publications (2)

Publication Number Publication Date
CN102110130A true CN102110130A (en) 2011-06-29
CN102110130B CN102110130B (en) 2012-09-26

Family

ID=44174292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102910836A Active CN102110130B (en) 2010-09-17 2010-09-17 Method for implementing microphone detection on web page

Country Status (1)

Country Link
CN (1) CN102110130B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981738A (en) * 2012-10-31 2013-03-20 北京百度网讯科技有限公司 Method and system and browser for carrying out interaction with webpage through microphone
CN105677498A (en) * 2015-12-29 2016-06-15 山东大学 Optimization method of View control state saving on Android system
CN111078448A (en) * 2019-08-06 2020-04-28 华为技术有限公司 Method for processing audio abnormity and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080056232A1 (en) * 2006-08-30 2008-03-06 Accton Technology Corporation Webphone voice & data communications interface under sip framework
CN101188620A (en) * 2006-11-17 2008-05-28 张立伟 Method for creating Internet virtual reception hall and realizing synchronous and asynchronous exchange by using flash plug-in technology
CN101217554A (en) * 2008-01-14 2008-07-09 张尧森 An instant communication method realized on website
CN101483682A (en) * 2008-01-08 2009-07-15 香港商浩扬网通股份有限公司 Web page telephone system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080056232A1 (en) * 2006-08-30 2008-03-06 Accton Technology Corporation Webphone voice & data communications interface under sip framework
CN101188620A (en) * 2006-11-17 2008-05-28 张立伟 Method for creating Internet virtual reception hall and realizing synchronous and asynchronous exchange by using flash plug-in technology
CN101483682A (en) * 2008-01-08 2009-07-15 香港商浩扬网通股份有限公司 Web page telephone system
CN101217554A (en) * 2008-01-14 2008-07-09 张尧森 An instant communication method realized on website

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《多媒体世界》 20001231 徐雨明 《利用Agent技术给网页增加一些情趣》 111-112 1-5 , *
ZRONG: "《检测摄像头和麦克风状态并自动进行处理的类》", 《HTTP://ZENGRONG.NET/POST/212.HTM 》 *
ZRONG: "《检测摄像头和麦克风状态并自动进行处理的类》", 《HTTP://ZENGRONG.NET/POST/212.HTM 》, 4 July 2006 (2006-07-04) *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981738A (en) * 2012-10-31 2013-03-20 北京百度网讯科技有限公司 Method and system and browser for carrying out interaction with webpage through microphone
CN102981738B (en) * 2012-10-31 2017-03-15 北京百度网讯科技有限公司 Method, system and the browser interacted by mike and webpage
CN105677498A (en) * 2015-12-29 2016-06-15 山东大学 Optimization method of View control state saving on Android system
CN105677498B (en) * 2015-12-29 2018-05-25 山东大学 The optimization method that View controls state preserves on a kind of Android system
CN111078448A (en) * 2019-08-06 2020-04-28 华为技术有限公司 Method for processing audio abnormity and electronic equipment
CN111078448B (en) * 2019-08-06 2022-04-05 华为技术有限公司 Method for processing audio abnormity and electronic equipment

Also Published As

Publication number Publication date
CN102110130B (en) 2012-09-26

Similar Documents

Publication Publication Date Title
US9972343B1 (en) Multi-step validation of wakeup phrase processing
CN106507445B (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
CN105100330B (en) The method and mobile terminal of a kind of equipment effects,sound optimization
CN102104690A (en) Method and device for saving electric energy as well as mobile terminal
CN102023860A (en) Method for turning off camera on webpage
CN103220392B (en) A kind of method of automatic recording, device and mobile terminal
CN104581846B (en) A kind of method and device of double card double standby mobile phone intelligent high-speed online
CN106095051B (en) A kind of processing method of application program for mobile terminal, device and mobile terminal
CN103002102B (en) The method and apparatus that a kind of managing contact number is thin
CN106230492A (en) The changing method of a kind of terminal antenna, device and mobile terminal
CN102110130B (en) Method for implementing microphone detection on web page
CN105096977A (en) Control method for multimedia playing and mobile terminal
CN110290280A (en) A kind of recognition methods of the SOT state of termination, device and storage medium
WO2018214871A1 (en) Radio frequency interference processing method and electronic device
CN105874773A (en) Task processing device, intelligent apparatus, task processing method and baseband processor
CN101951336A (en) Method for displaying states of user microphones in webpage version web conference
CN103034403A (en) Application selection method and application selection system for mobile terminals
CN106131333B (en) A kind of adjusting method of terminal current, speaking circuit and mobile terminal
CN105786572B (en) Using installation position selection method and apply installation position selection device
CN102202090A (en) Webpage-based audio equipment detection method and system
CN102117208A (en) Method for realizing detection of camera on webpage
CN106066814A (en) A kind of application controls method and mobile terminal
CN115174724A (en) Call noise reduction method, device and equipment and readable storage medium
CN105682160B (en) A kind of selection method and device of communication network
CN104424260A (en) Browser information sharing 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
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 215121 Jiangsu province Suzhou Industrial Park No. 666 Feng Ting Avenue Weiting Intelligent Industrial Park Building 8

Patentee after: Kuo Di education and science company limited

Address before: 215121 Jiangsu province Suzhou Industrial Park No. 666 Feng Ting Avenue Weiting Intelligent Industrial Park Building 8

Patentee before: Suzhou Kuodi Network Technology Co., Ltd.

TR01 Transfer of patent right

Effective date of registration: 20201123

Address after: 226100 Guangzhou road Jiangsu city Nantong Province Haimen Economic and Technological Development Zone No. 999

Patentee after: Nantong Construction Engineering Co.,Ltd.

Address before: 215121 Jiangsu province Suzhou Industrial Park No. 666 Feng Ting Avenue Weiting Intelligent Industrial Park Building 8

Patentee before: CODYY EDUCATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right