CN103809950B - Flash player plug-in unit mute method and device - Google Patents

Flash player plug-in unit mute method and device Download PDF

Info

Publication number
CN103809950B
CN103809950B CN201210450334.XA CN201210450334A CN103809950B CN 103809950 B CN103809950 B CN 103809950B CN 201210450334 A CN201210450334 A CN 201210450334A CN 103809950 B CN103809950 B CN 103809950B
Authority
CN
China
Prior art keywords
function
sql
audio
played
pointer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210450334.XA
Other languages
Chinese (zh)
Other versions
CN103809950A (en
Inventor
关亮亮
尚子峰
宫晓妍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210450334.XA priority Critical patent/CN103809950B/en
Publication of CN103809950A publication Critical patent/CN103809950A/en
Application granted granted Critical
Publication of CN103809950B publication Critical patent/CN103809950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)

Abstract

The present invention relates to a kind of flash player plug-in unit mute method and device.The flash player plug-in unit mute method includes step:The process of audio to be played is obtained, and calls the audio play function in the process of audio to be played;The pointer of audio play function in the process of audio to be played is pointed into SQL;And silence processing is carried out to the audio to be played in audio play function by SQL.The invention further relates to a kind of flash player plug-in unit silencing apparatus, flash player plug-in unit mute method and device SQL of the invention carries out silence processing to audio to be played, simply and easily realizes the Jing Yin of whole flash player plug-in units.

Description

Flash player plug-in unit mute method and device
Technical field
The present invention relates to Internet technical field, more particularly to a kind of simply and easily flash player plug-in unit is Jing Yin Method and device.
Background technology
Flash player is the player of a high-performance, light-type and great expressive force, can be broadcast in various main flows Powerful and consistent Consumer's Experience is provided on place system, browser and mobile device.User can also be by flash player Plug-in unit is installed in browser so that browser is able to play swf files.
User often opens multiple pages simultaneously when carrying out web page browsing, and being provided with flash in such as each page broadcasts Device plug-in unit is put, the broadcasting of multiple swf files may be carried out simultaneously.At this moment user is such as real to these flash player plug-in units Show Jing Yin, it is necessary to which the page carries out the Jing Yin of flash player plug-in unit one by one, mute operation is comparatively laborious.
Therefore, it is necessary to a kind of simply and easily flash player plug-in unit mute method and device are provided, to solve existing skill The problems of art.
The content of the invention
Carry out silence processing to audio to be played to realize by SQL it is an object of the invention to provide one kind Whole flash player plug-in units Jing Yin flash player plug-in unit mute method and device, are played with solving existing flash Device plug-in unit can not realize individually Jing Yin technical problem.
To solve the above problems, the technical scheme that the present invention is provided is as follows:
The present invention relates to a kind of flash player plug-in unit mute method, it includes step:
The process of audio to be played is obtained, and calls the audio play function in the process of the audio to be played;
The pointer of audio play function in the process of the audio to be played is pointed into SQL;And
Silence processing is carried out to the audio to be played in the audio play function by the SQL.
The invention further relates to a kind of flash player plug-in unit silencing apparatus, it includes:
Function acquisition module, for obtaining the process of audio to be played, and is called in the process of the audio to be played Audio play function;
Redirection module, it is self-defined for the pointer of the audio play function in the process of the audio to be played to be pointed to Function;And
Jing Yin module, for being entered the audio to be played in the audio play function by the SQL Row silence processing.
Compared to prior art, flash player plug-in unit mute method of the invention and device pass through SQL pair Audio to be played carries out silence processing, simply and easily realizes the Jing Yin of whole flash player plug-in units, solves existing Flash player plug-in unit can not realize individually Jing Yin technical problem.
For the above of the present invention can be become apparent, preferred embodiment cited below particularly, and coordinate institute's accompanying drawings, make Describe in detail as follows:
Brief description of the drawings
Fig. 1 is the flow chart of the first preferred embodiment of the flash player plug-in unit mute method of the present invention;
Fig. 2 is the flow chart of the second preferred embodiment of the flash player plug-in unit mute method of the present invention;
Fig. 3 is the flow chart of the third preferred embodiment of the flash player plug-in unit mute method of the present invention;
Fig. 4 is the structural representation of the preferred embodiment of the flash player plug-in unit silencing apparatus of the present invention;
Wherein, description of reference numerals is as follows:
41st, SQL creation module;
42nd, function acquisition module;
43rd, redirection module;
44th, Jing Yin module.
Embodiment
The explanation of following embodiment is the particular implementation implemented to illustrate the present invention can be used to reference to additional schema Example.The direction term that the present invention is previously mentioned, such as " on ", " under ", "front", "rear", "left", "right", " interior ", " outer ", " side " Deng being only the direction with reference to annexed drawings.Therefore, the direction term used is to illustrate and understand the present invention, and is not used to The limitation present invention.
In figure, the similar unit of structure is represented with identical label.
Fig. 1 is refer to, Fig. 1 is the flow of the first preferred embodiment of the flash player plug-in unit mute method of the present invention Figure.The flash player plug-in unit mute method of this preferred embodiment includes:
Step 101, SQL is created according to audio play function;
Step 102, the process of audio to be played is obtained, and calls the audio play function in the process of audio to be played;
Step 103, the pointer of the audio play function in the process of audio to be played is pointed into SQL;
Step 104, silence processing is carried out to the audio to be played in audio play function by SQL.
The flash player plug-in unit mute method of this preferred embodiment ends at step 104.
The flash player plug-in unit mute method of this preferred embodiment is created certainly according to corresponding audio play function first Defined function, such as audio play function are a series of functions, then while also creating a series of SQL;Here it preferably is selected from The parameter type of defined function is identical with the parameter type of audio play function, so that derived from defined function and audio play function Between have it is more preferably compatible;The not necessarily step of the establishment of SQL herein, it is such as well-established corresponding self-defined Function also can skip the operation that the step directly carries out next step.
Then obtain and call flash player plug-in unit audio to be played process in audio play function.
The pointer of these audio play functions is then directed to corresponding SQL.
Position of the audio to be played in internal memory in audio play function is obtained finally by SQL, this is treated Play audio and carry out silence processing.Because the audio to be played of audio play function has carried out silence processing, therefore finally can The audio play function is normally run, and simply and easily realizes the Jing Yin of flash player plug-in unit.
Because for different operating system, audio play function is also different, separately below for XP systems and Win7 systems How to realize that flash player plug-in unit is Jing Yin under system to be described in detail.
Fig. 2 is refer to, Fig. 2 is the flow of the second preferred embodiment of the flash player plug-in unit mute method of the present invention Figure.The flash player plug-in unit mute method of this preferred embodiment is used to realize that the flash player plug-in unit under XP systems is quiet Sound.
The flash player plug-in unit mute method of this preferred embodiment includes:
Step 201, SQL is created according to audio play function;
Step 202, sound creation function is obtained, and the pointer of sound creation function is pointed into the self-defined letter of sound creation Number;
Step 203, according to sound creation function, the establishment sound cache function for playing target voice is obtained, and will create The pointer of sound cache function, which is pointed to, creates sound caching SQL;
Step 204, according to sound cache function function is created, the unblock function of sound cache object is obtained, and will unblock The pointer of function points to unblock SQL;
Step 205, SQL is cached by sound creation SQL, establishment sound and unlocks self-defined letter Number empties the internal memory of the position of the audio to be played unlocked in function.
The flash player plug-in unit mute method of this preferred embodiment ends at step 205.
In the preferred embodiment, the dynamic link library for playing sound is dsound.dll, and sound creation function is DirectSoundCreate series of functions, broadcasting target voice is object DirectSound, creates sound cache function and is CreateSoundBuffer functions, sound cache object is object DirectSoundBuffer, and unblock function is Unlock letters Number.
In step 201, the DirectSoundCreate series of functions in dsound.dll is respectively created self-defined DirectSoundCreate functions(That is sound creation function SQL), customized CreateSoundBuffer letters Several and customized Unlock functions.
In step 202., dsound.dll is loaded first, obtains dsound.dll DirectSoundCreate functions, The pointer of the DirectSoundCreate functions of audio play function is pointed into customized DirectSoundCreate letters again Number.The parameter class of the DirectSoundCreate functions of audio play function and customized DirectSoundCreate functions Type is identical, is:(LPCGUID,LPDIRECTSOUND *, LPUNKNOWN).
In step 203, the parameter LPDIRECTSOUND * returning an object values of DirectSoundCreate functions are passed through DirectSound, then obtains object DirectSound CreateSoundBuffer functions, and should The pointer of CreateSoundBuffer functions points to customized CreateSoundBuffer functions.Object DirectSound CreateSoundBuffer functions it is identical with the parameter type of customized CreateSoundBuffer functions, For:(LPCDSBUFFERDESC, LPDIRECTSOUNDBUFFER *,LPUNKNOWN).
In step 204, by the parameter LPDIRECTSOUNDBUFFER * of CreateSoundBuffer functions, return Object DirectSoundBuffer, then obtains object DirectSoundBuffer Unlock functions, and by the Unlock The pointer of function points to customized Unlock functions.Object DirectSoundBuffer Unlock functions with it is customized The parameter type of Unlock functions is identical, is:(LPVOID, DWORD,LPVOID, DWORD).
In step 205, customized DirectSoundCreate functions are passed sequentially through, it is customized CreateSoundBuffer functions and customized Unlock functions by first parameter LPVOID in Unlock functions and Internal memory pointed by 3rd parameter LPVOID is emptied.
So can be achieved same process under XP systems whole flash player plug-in units it is Jing Yin.
Fig. 3 is refer to, Fig. 3 is the flow of the third preferred embodiment of the flash player plug-in unit mute method of the present invention Figure.The flash player plug-in unit mute method of this preferred embodiment is used to realize that the flash player plug-in unit under Win7 systems is quiet Sound.
The flash player plug-in unit mute method of this preferred embodiment includes:
Step 301, SQL is created according to audio play function;
Step 302, obtain class object and obtain function, and the pointer sense(-)class object acquisition that class object is obtained into function is made by oneself Adopted function;
Step 303, function is obtained according to class object, the example for obtaining class factory interface creates function, and example is created The pointer of function points to example and creates SQL;
Step 304, function is created according to example, the default audio terminal for obtaining media device enumerates interface obtains function, And default audio terminal is obtained to the pointer sensing default audio terminal acquisition SQL of function;
Step 305, function is obtained according to default audio terminal, obtains the activation primitive of media device interface, and will activation The pointer of function points to activation SQL;
Step 306, according to activation primitive, the service acquisition function of audio agents interface is obtained, and by service acquisition function Pointer point to service acquisition SQL;
Step 307, according to service acquisition function, the caching release function that audio renders proxy interface is obtained, and will caching The pointer for discharging function points to caching release SQL;
Step 308, SQL, example are obtained by class object and creates SQL, the acquisition of default audio terminal SQL, activation SQL, service acquisition SQL and caching release SQL are cached to release Audio to be played in function carries out silence processing.
The flash player plug-in unit mute method of this preferred embodiment ends at step 308.
In the preferred embodiment, the dynamic link library for playing media is MMDecApi.dll, media device enumeration function For IMMDeviceEnumerator series of functions, it is DllGetClassObject functions that class object, which obtains function, and class factory connects Mouth is IClassFactory interfaces, and it is CreateInstance functions that example, which creates function, and media device enumerates interface is IMMDeviceEnumerator, it is GetDefaultAudioEndpoint functions that default audio terminal, which obtains function, and media are set Standby interface is IMMDevice interfaces, and activation primitive is Activate functions, and audio agents interface is IAudioClient interfaces, Service acquisition function is GetService functions, and audio renders proxy interface for AudioRenderClient interfaces, caching release Function is ReleaseBuffer functions.
In step 301, the IMMDeviceEnumerator series of functions in MMDecApi.dll is respectively created certainly The DllGetClassObject functions of definition(I.e. class object obtains SQL), customized CreateInstance letters It is several, customized GetDefaultAudioEndpoint functions, customized Activate functions, customized GetService functions and customized ReleaseBuffer functions.
In step 302, MMDecApi.dll is loaded first, obtains MMDecApi.dll DllGetClassObject Function, and the pointer of DllGetClassObject functions is pointed into customized DllGetClassObject functions. The parameter type of MMDecApi.dll DllGetClassObject functions and customized DllGetClassObject functions It is identical, be:(REFCLSID, REFIID, void **).
In step 303, in MMDecApi.dll DllGetClassObject functions, such as parameter REFCLSID For _ _ uuidof (MMDeviceEnumerator), then the void * * returned are IClassFactory interfaces, are obtained The CreateInstance functions of IClassFactory interfaces, and the pointer sensing of CreateInstance functions is self-defined CreateInstance functions.The CreateInstance functions of IClassFactory interfaces with it is customized The parameter type of CreateInstance functions is identical, is: (IClassFactory *, IUnknown *, REFIID, void **)。
In step 304, in the CreateInstance functions of IClassFactory interfaces, parameter REFIID is IID_IMMDeviceEnumerator, then the void * * returned are IMMDeviceEnumerator interfaces, are obtained The GetDefaultAudioEndpoint functions of IMMDeviceEnumerator interfaces, and will The pointer of GetDefaultAudioEndpoint functions points to customized GetDefaultAudioEndpoint functions. The GetDefaultAudioEndpoint functions of IMMDeviceEnumerator interfaces with it is customized The parameter type of GetDefaultAudioEndpoint functions is identical, is: (IMMDeviceEnumerator *, EDataFlow, ERole, IMMDevice **)。
In step 305, GetDefaultAudioEndpoint function creations IMMDevice interfaces, are obtained The Activate functions of IMMDevice interfaces, and the pointer of Activate functions is pointed into customized Activate functions. The Activate functions of IMMDevice interfaces are identical with the parameter type of customized Activate functions, are: (IMMDevice *, REFIID, DWORD, PROPVARIANT *,void **)。
Within step 306, in the Activate functions of IMMDevice interfaces, parameter REFIID is IID_ IAudioClient, then the void * * returned are IAudioClient interfaces, obtain IAudioClient interfaces GetService functions, and the pointer of GetService functions is pointed into customized GetService functions. The GetService functions of IAudioClient interfaces are identical with the parameter type of customized GetService functions, For:( IAudioClient *,REFIID,void **).
In step 307, in the GetService functions of IAudioClient interfaces, such as parameter REFIID is IID_ IAudioRenderClient, then it is AudioRenderClient interfaces to return to void * *, obtains AudioRenderClient The ReleaseBuffer functions of interface, and the pointer of ReleaseBuffer functions is pointed into customized ReleaseBuffer Function.The ginseng of the ReleaseBuffer functions of AudioRenderClient interfaces and customized ReleaseBuffer functions Several classes of types are identical, are:(IAudioRenderClient *, UINT32, DWORD).
In step 308, customized DllGetClassObject functions are passed sequentially through, it is customized CreateInstance functions, customized GetDefaultAudioEndpoint functions, customized Activate functions, Customized GetService functions and customized ReleaseBuffer functions are by the ginseng in ReleaseBuffer functions Number DWORD is set to AUDCLNT_BUFFERFLAGS_SILENT, that is, completes the silence processing of audio to be played.
So can be achieved same process under Win7 systems whole flash player plug-in units it is Jing Yin.
The invention further relates to a kind of flash player plug-in unit silencing apparatus, as shown in figure 4, flashs of the Fig. 4 for the present invention The structural representation of the preferred embodiment of player plug-in unit silencing apparatus.The flash player plug-in unit silencing apparatus includes making by oneself Adopted function creation module 41, function acquisition module 42, redirection module 43 and Jing Yin module 44.
Wherein SQL creation module 41 is used to create SQL according to audio play function;Function obtains mould Block 42 is used for the process for obtaining audio to be played, and calls the audio play function in the process of audio to be played;Redirect mould Block 43 is used to the pointer of the audio play function in the process of audio to be played pointing to SQL;Jing Yin module 44 is used for Audio to be played in audio play function is carried out by silence processing by SQL.
The flash player plug-in unit silencing apparatus of the present invention is in use, SQL creation module 41 is according to phase first The audio play function answered creates SQL, and such as audio play function is a series of functions, then while also creating a series of SQL;Here the parameter type of preferred SQL is identical with the parameter type of audio play function, to cause Have between SQL and audio play function more preferably compatible.
Then the audio that function acquisition module 42 is obtained in the process of the audio to be played of flash player plug-in unit plays letter Number.
The pointer of these audio play functions is directed to corresponding SQL by subsequent redirection module 43.
Last Jing Yin module 44 obtains audio to be played in audio play function in internal memory by SQL Position, silence processing is carried out to the audio to be played.Because the audio to be played of audio play function has carried out silence processing, because This finally can normally run the audio play function, and simply and easily realize the Jing Yin of flash player plug-in unit.
Such as flash player plug-in unit silencing apparatus is used to realize that the flash player plug-in unit under XP systems is Jing Yin, XP systems The sound creation series of functions in dynamic link library of the audio play function to play sound under system.
The redirection module 43 includes the first directed element, the second directed element and the 3rd directed element.First orientation Unit is used to obtain sound creation function, and the pointer of sound creation function is pointed into sound creation SQL;Second determines It is used for unit according to sound creation function, obtains the establishment sound cache function for playing target voice, and delay sound is created The pointer of store function, which is pointed to, creates sound caching SQL;3rd directed element is used for according to establishment sound cache function, The unblock function of sound cache object is obtained, and the pointer for unlocking function is pointed into unblock SQL.
Jing Yin module 44 includes Jing Yin unit.Jing Yin unit is used for sound creation SQL, creates sound caching certainly Defined function and unblock SQL empty the internal memory of the position of the audio to be played unlocked in function.
Such as flash player plug-in unit silencing apparatus is used to realize that the flash player plug-in unit under Win7 systems is Jing Yin, The media device in dynamic link library of the audio play function to play media under Win7 systems enumerates series of functions.
It is single that the redirection module 43 includes the first directed element, the second directed element, the 3rd directed element, the 4th orientation Member, the 5th directed element and the 6th directed element.First directed element, which is used to obtaining class object, obtains function, and by class object Obtain the pointer sense(-)class object acquisition SQL of function;Second directed element is used to obtain function according to class object, obtains The example of class factory interface is taken to create function, and the pointer that example is created into function points to example and creates SQL;3rd Directed element is used to create function according to example, and the default audio terminal for obtaining media device enumerates interface obtains function, and will The pointer that default audio terminal obtains function points to default audio terminal acquisition SQL;4th directed element is used for basis Default audio terminal obtains function, obtains the activation primitive of media device interface, and the pointer of activation primitive is pointed into activation certainly Defined function;5th directed element is used for the service acquisition function that audio agents interface is obtained according to activation primitive, and will service The pointer for obtaining function points to service acquisition SQL;6th directed element is used to, according to service acquisition function, obtain sound Frequency renders the caching release function of proxy interface, and will cache the pointer sensing caching release SQL for discharging function.
Jing Yin module 44 includes Jing Yin unit, and Jing Yin unit is used to obtain SQL, example establishment by class object SQL, default audio terminal obtain SQL, activation SQL, service acquisition SQL and delayed Deposit release SQL and silence processing is carried out to the audio to be played in release cache function.
The specifically used process of flash player plug-in unit silencing apparatus of the present invention, particularly in various specific operating systems On specifically used process is identical with the use flow of the specific embodiment of above-mentioned flash player plug-in unit mute method or phase Seemingly, the specific embodiment of flash player plug-in unit mute method is referred to.
The flash player plug-in unit mute method and device of the present invention is carried out quiet by SQL to audio to be played Sound processing, simply and easily realizes the Jing Yin of whole flash player plug-in units, solves existing flash player plug-in unit Individually Jing Yin technical problem can not be realized.
In summary, although the present invention it is disclosed above with preferred embodiment, but above preferred embodiment and be not used to limit The system present invention, one of ordinary skill in the art without departing from the spirit and scope of the present invention, can make various changes and profit Adorn, therefore protection scope of the present invention is defined by the scope that claim is defined.

Claims (12)

1. a kind of flash player plug-in unit mute method, it is characterised in that including step:
The process of audio to be played is obtained, and calls the audio play function in the process of the audio to be played;
The pointer of audio play function in the process of the audio to be played is pointed into SQL;And
Silence processing is carried out to the audio to be played in the audio play function by the SQL;
Audio play function is the sound creation function in the dynamic link library of broadcasting sound as described,
The step of pointer of the audio play function by the process of the audio to be played points to SQL is specific For:
The sound creation function is obtained, and the pointer of the sound creation function is pointed into sound creation SQL;
According to the sound creation function, the establishment sound cache function for playing target voice is obtained, and by the establishment sound The pointer of cache function, which is pointed to, creates sound caching SQL;And
According to it is described establishment sound cache function, obtain sound cache object unblock function, and by it is described unblock function finger Pin points to unblock SQL;
It is described that silence processing is carried out to the audio to be played in the audio play function by the SQL Step is specially:
SQL and the self-defined letter of the unblock are cached by the sound creation SQL, the establishment sound Number empties the internal memory of the position of the audio to be played in the unblock function.
2. flash player plug-in unit mute method according to claim 1, it is characterised in that
The SQL is created according to the audio play function.
3. flash player plug-in unit mute method according to claim 2, it is characterised in that
The parameter type of the SQL is identical with the parameter type of the audio play function.
4. a kind of flash player plug-in unit mute method, it is characterised in that including step:
The process of audio to be played is obtained, and calls the audio play function in the process of the audio to be played;
The pointer of audio play function in the process of the audio to be played is pointed into SQL;And
Silence processing is carried out to the audio to be played in the audio play function by the SQL;
Audio play function is the media device enumeration function in the dynamic link library of broadcasting media as described,
The step of pointer of the audio play function by the process of the audio to be played points to SQL is specific For:
Obtain class object obtain function, and by the class object obtain function pointer sense(-)class object acquisition SQL;
Function is obtained according to the class object, the example for obtaining class factory interface creates function, and the example is created into function Pointer point to example create SQL;
Function is created according to the example, the default audio terminal for obtaining media device enumerates interface obtains function, and will be described The pointer that default audio terminal obtains function points to default audio terminal acquisition SQL;
Function is obtained according to the default audio terminal, the activation primitive of media device interface is obtained, and by the activation primitive Pointer point to activation SQL;
According to the activation primitive, the service acquisition function of audio agents interface is obtained, and by the finger of the service acquisition function Pin points to service acquisition SQL;And
According to the service acquisition function, obtain audio and render the caching release function of proxy interface, and the caching is discharged The pointer of function points to caching release SQL;
It is described that silence processing is carried out to the audio to be played in the audio play function by the SQL Step is specially:
SQL, the example are obtained by the class object and create SQL, default audio terminal acquisition SQL, the activation SQL, the service acquisition SQL and the caching discharge self-defined letter Several audios to be played in the release cache function carry out silence processing.
5. flash player plug-in unit mute method according to claim 4, it is characterised in that
The SQL is created according to the audio play function.
6. flash player plug-in unit mute method according to claim 5, it is characterised in that
The parameter type of the SQL is identical with the parameter type of the audio play function.
7. a kind of flash player plug-in unit silencing apparatus, it is characterised in that including:
Function acquisition module, for obtaining the process of audio to be played, and calls the audio in the process of the audio to be played Play function;
Redirection module, for the pointer of the audio play function in the process of the audio to be played to be pointed into self-defined letter Number;And
Jing Yin module, it is quiet for being carried out the audio to be played in the audio play function by the SQL Sound processing;
Audio play function is the sound creation function in the dynamic link library of broadcasting sound as described,
The redirection module includes:
First directed element, sound is pointed to for obtaining the sound creation function, and by the pointer of the sound creation function Create SQL;
Second directed element, for according to the sound creation function, obtaining the establishment sound cache function for playing target voice, And the pointer of the establishment sound cache function is pointed into establishment sound caching SQL;And
3rd directed element, for according to the establishment sound cache function, obtaining the unblock function of sound cache object, and will The pointer of the unblock function points to unblock SQL;
The Jing Yin module includes:
Jing Yin unit, for caching SQL and institute by the sound creation SQL, the establishment sound Unblock SQL is stated to empty the internal memory of the position of the audio to be played in the unblock function.
8. flash player plug-in unit silencing apparatus according to claim 7, it is characterised in that the flash player is inserted Part silencing apparatus also includes:
SQL creation module, for creating the SQL according to the audio play function.
9. flash player plug-in unit silencing apparatus according to claim 8, it is characterised in that
The parameter type for the SQL that the SQL creation module is created and the audio play function Parameter type is identical.
10. a kind of flash player plug-in unit silencing apparatus, it is characterised in that including:
Function acquisition module, for obtaining the process of audio to be played, and calls the audio in the process of the audio to be played Play function;
Redirection module, for the pointer of the audio play function in the process of the audio to be played to be pointed into self-defined letter Number;And
Jing Yin module, it is quiet for being carried out the audio to be played in the audio play function by the SQL Sound processing;
Audio play function is the media device enumeration function in the dynamic link library of broadcasting media as described,
The redirection module includes:
First directed element, for obtain class object obtain function, and by the class object obtain function pointer sense(-)class pair As obtaining SQL;
Second directed element, for obtaining function according to the class object, the example for obtaining class factory interface creates function, and will The pointer that the example creates function points to example establishment SQL;
3rd directed element, for creating function according to the example, obtains the default audio terminal of media device enumerates interface Function is obtained, and the pointer that the default audio terminal is obtained into function points to default audio terminal and obtains SQL;
4th directed element, for obtaining function according to the default audio terminal, obtains the activation primitive of media device interface, And the pointer of the activation primitive is pointed into activation SQL;
5th directed element, for according to the activation primitive, obtaining the service acquisition function of audio agents interface, and will be described The pointer of service acquisition function points to service acquisition SQL;And
6th directed element, for according to the service acquisition function, obtaining the caching release function that audio renders proxy interface, And the pointer that the caching discharges function is pointed into caching release SQL;
The Jing Yin module includes:
Jing Yin unit, SQL, the acquiescence are created for obtaining SQL, the example by the class object Voice frequency terminal obtains SQL, the activation SQL, the service acquisition SQL and the caching Discharge SQL and silence processing is carried out to the audio to be played in the release cache function.
11. flash player plug-in unit silencing apparatus according to claim 10, it is characterised in that the flash player Plug-in unit silencing apparatus also includes:
SQL creation module, for creating the SQL according to the audio play function.
12. flash player plug-in unit silencing apparatus according to claim 11, it is characterised in that
The parameter type for the SQL that the SQL creation module is created and the audio play function Parameter type is identical.
CN201210450334.XA 2012-11-12 2012-11-12 Flash player plug-in unit mute method and device Active CN103809950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210450334.XA CN103809950B (en) 2012-11-12 2012-11-12 Flash player plug-in unit mute method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210450334.XA CN103809950B (en) 2012-11-12 2012-11-12 Flash player plug-in unit mute method and device

Publications (2)

Publication Number Publication Date
CN103809950A CN103809950A (en) 2014-05-21
CN103809950B true CN103809950B (en) 2017-08-25

Family

ID=50706786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210450334.XA Active CN103809950B (en) 2012-11-12 2012-11-12 Flash player plug-in unit mute method and device

Country Status (1)

Country Link
CN (1) CN103809950B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133847B (en) * 2014-07-01 2018-04-24 北京奇虎科技有限公司 A kind of method and apparatus that sound control is carried out in browser
CN104133849B (en) * 2014-07-01 2018-02-02 北京奇虎科技有限公司 A kind of method and apparatus that sound control is carried out in browser
CN105512146B (en) * 2014-10-09 2020-04-21 腾讯科技(深圳)有限公司 Method and device for controlling webpage sound

Citations (1)

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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7426637B2 (en) * 2003-05-21 2008-09-16 Music Public Broadcasting, Inc. Method and system for controlled media sharing in a network

Patent Citations (1)

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

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SetWindowsHookEx原理;匿名;《博客网站》;20110124;第1-4页 *
怎么让浏览器静音;匿名;《网易博客》;20081229;第1页 *

Also Published As

Publication number Publication date
CN103809950A (en) 2014-05-21

Similar Documents

Publication Publication Date Title
CN105117391B (en) Interpreter language
CN103809950B (en) Flash player plug-in unit mute method and device
KR101912177B1 (en) System and method for maintaining speach recognition dynamic dictionary
WO2009023572A3 (en) Methods and systems for bulk activation of multiple, disparate stored value accounts
KR20110105625A (en) Odor shooting method and mobile device supporting the same
TW200941167A (en) Automated recording of virtual device interface
EP2507691A1 (en) User input
CN111383631A (en) Voice interaction method, device and system
JP6518649B2 (en) Method and system for collecting game data
CN105702271A (en) Multimedia playing method and electronic equipment
US20190258641A1 (en) System and method for object-oriented pattern matching in arbitrary data object streams
WO2016184095A1 (en) Operation event execution method and apparatus, and terminal
BRPI0520132A2 (en) Method and system for producing ringtones on an electronic device having at least one stored Audio file, electronic device, and computer program product
CN107957887A (en) A kind of component loading method of equipment, device and Internet of things system
CN106484411A (en) A kind of method for pushing of mobile terminal wallpaper and mobile terminal
CN106202422A (en) The treating method and apparatus of Web page icon
WO2008018465A1 (en) Event processor
CN106815079A (en) The method and mobile terminal of a kind of popular application control
CN104281354B (en) Multimedia messages playing method and device
CN105573596B (en) A kind of the playing sequence method of adjustment and user terminal of playlist
WO2009110991A3 (en) Method and system for assigning unique and dynamic information-carrying serial numbers
CN104133847B (en) A kind of method and apparatus that sound control is carried out in browser
CN107423150A (en) A kind of fingerprint module control method and equipment
CN105760479A (en) Song playing control method and device, mobile terminal, server and system
CN106559705A (en) A kind of processing method of voice data, device and system

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