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

A method, device and player for wmp component mute

A player and mute technology, applied in the field of players, can solve the problem of mute failure of WMP components, and achieve the effect of solving mute failure

Active Publication Date: 2017-12-15
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present invention is to provide a method for mute of WMP components, to solve the problem of invalid mute of WMP components 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
  • A method, device and player for wmp component mute
  • A method, device and player for wmp component mute
  • A method, device and player for wmp component mute

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] figure 1 The implementation flow of the WMP component mute method provided by Embodiment 1 of the present invention is shown, and the method process is described in detail as follows:

[0026] In step S101, the function of creating an instance object of WMP is called to create an object.

[0027] In this embodiment, the concrete process of calling WMP to create an instance object function to create an object includes:

[0028] Create a create instance object function (eg CreateInstance function), the created instance object function and the WMP create instance object function contain the same parameters;

[0029] The pointer to the function of creating an instance object of WMP is replaced with the pointer of the function of creating an instance object to complete the HooK of the function of creating an instance object in WMP.

[0030] The purpose of creating an instance object function in the HooK WMP of this embodiment is to make subsequent calls to the instance obj...

Embodiment 2

[0045] figure 2 The specific flow of the WMP component mute method provided by the second embodiment of the present invention is shown, and the method process is described in detail as follows:

[0046] In step S201, HooK DllGetClassObject function.

[0047] In this embodiment, the DllGetClassObject function is the derived function of the com component program. After receiving the object creation instruction, the com component library calls the DllGetClassObject function of the com component in the process to create the class factory object and returns the class factory pointer.

[0048] In step S202, it is judged whether the class factory object created by the DllGetClassObject function after the HooK is WMP, if the judgment result is "yes", then step S203 is executed, otherwise, the process ends.

[0049] In this embodiment, the parameters of the DllGetClassObject function are (REFCLSID, REFIID, void**). According to the REFCLSID, it is judged whether the currently create...

Embodiment 3

[0075] image 3 The composition structure of the device for muting the WMP component 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.

[0076] The WMP component 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.

[0077] The WMP component muting device includes a calling unit 31 , a judging unit 32 and a muting unit 33 . Among them, the specific functions of each unit are as follows:

[0078] The calling unit 31 is used to call the function of creating an instance object of WMP to create an object;

[0079] A judging unit 32, configured to judge whether the object created by the function of creating an instance object called by the calling unit 31 is the first object;

...

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 players, and provides a method, a device and a broadcaster for WMP component mute. The method includes: calling the function of creating an instance object of WMP to create an object; judging the object created by the function of creating an instance object Whether it is the first object; if so, call the first mute function or the second mute function of the first object, and set the mute through the called first mute function or the second mute function. The invention can effectively solve the mute failure problem of the WMP component under the webkit kernel.

Description

technical field [0001] The invention belongs to the technical field of players, and in particular relates to a method, a device and a player for muting WMP components. Background technique [0002] Windows Media Player (WMP) is a player that comes with the Windows system. When the browser opens a web page, it will call the COM component WMP.dll provided by WMP to play audio and video files in formats such as MP3, WMA, WAV, AVI, MPEG-1, MPEG-2, and DVD. [0003] However, under the webkit kernel, because the object created by WMP is different from the object created under the IE kernel, the object created by WMP under the webkit kernel cannot call the mute function in the object created by WMP under the IE kernel, resulting in the mute failure of the WMP component. Contents of the invention [0004] The purpose of the embodiments of the present invention is to provide a method for muting a WMP component, so as to solve the problem in the prior art that the muting of the WMP...

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/44
Inventor 尚子峰
Owner TENCENT TECH (SHENZHEN) CO LTD