Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for page mute

A mute and page technology, applied in the Internet field, can solve problems such as page mute failure, and achieve the effect of solving page mute failure

Active Publication Date: 2018-02-23
TENCENT TECH (SHENZHEN) CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiment of the present invention is to provide a method for page mute, to solve the problem that the page mute fails under the webkit kernel in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for page mute
  • Method and device for page mute
  • Method and device for page mute

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] figure 1 The implementation flow of the page muting method provided by Embodiment 1 of the present invention is shown, and the method process is described in detail as follows:

[0025] In step S101, a first function in a dynamic link library is called to create an interface.

[0026] In this embodiment, the specific process of calling the first function (such as the CoCreateInstanceEx function) in the dynamic link library (such as ole32.dll) includes:

[0027] Create a first function, the created first function contains the same parameters as the first function in the dynamic link library;

[0028] The pointer of the first function in the dynamic link library is replaced with the created pointer of the first function, so as to complete the HooK of the first function in the dynamic link library.

[0029] The purpose of the first function in the dynamic link library described in the present embodiment HooK is to make subsequent calls to the first function in the dynami...

Embodiment 2

[0058] figure 2 The specific flow of the page mute method provided by Embodiment 2 of the present invention is shown, and the process of the method is described in detail as follows:

[0059] In step S201, HooK CoCreateInstanceEx function to create the first interface.

[0060] In this embodiment, the CoCreateInstanceEx function is a function in the dynamic link library ole32.dll. Among them, the CoCreateInstanceEx function prototype example is as follows:

[0061] HRESULT CoCreateInstanceEx(

[0062] REFCLSID rclsid,

[0063] IUnknown*punkOuter,

[0064] DWORD dwClsCtx,

[0065] COSERVERINFO*pServerInfo,

[0066] ULONG cmq,

[0067] MULTI_QI*pResults);

[0068] In the present embodiment, the specific process of the HooK CoCreateInstanceEx function is to create the CoCreateInstanceEx function, the CoCreateInstanceEx function created and the CoCreateInstanceEx function in the ole32.dll assembly contain the same parameters, and the pointer of the CoCreateInstanceEx func...

Embodiment 3

[0081] image 3 The composition structure of the page mute device provided by the third embodiment of the present invention is shown, and for the convenience of description, only the parts related to the embodiment of the present invention are shown.

[0082] The page mute device may be a software unit, a hardware unit, or a combination of software and hardware running in each player, or it may be integrated into the player or the application system of the player as an independent pendant.

[0083] The page mute device includes a first calling unit 31 , a second calling unit 32 and a mute unit 33 . Among them, the specific functions of each unit are as follows:

[0084] The first calling unit 31 is used to call the first function in the dynamic link library to create an interface;

[0085] The second calling unit 32 is configured to call the second function in the first interface to create an interface when the created interface is the first interface;

[0086] The mute uni...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention is applicable to the technical field of the Internet, and provides a method and device for muting pages. The method includes: calling the first function in the dynamic link library to create an interface; when the created interface is the first interface, calling The second function in the first interface creates an interface; when the interface created by the second function is the second interface, call the third function in the second interface, and set the mute through the third function called . The invention can effectively solve the problem of page mute failure under the webkit kernel.

Description

technical field [0001] The invention belongs to the technical field of the Internet, and in particular relates to a method and a device for muting pages under the webkit kernel. Background technique [0002] At present, mainstream browsers all provide a page mute function. By controlling the browser process related to sound playback, the current browsing page can be muted. [0003] However, under the webkit kernel, the process related to sound playback on some pages (such as Qzone) is an independent process, that is, the sound playback and other processes are not in the webkit process, so the mute control of the page cannot be performed under the webkit kernel . Contents of the invention [0004] The purpose of the embodiments of the present invention is to provide a method for page mute, so as to solve the problem that the page mute fails under the webkit kernel in the prior art. [0005] The embodiment of the present invention is achieved in this way, a method for page...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/48
Inventor 尚子峰关亮亮
Owner TENCENT TECH (SHENZHEN) CO LTD