Copyright © 2005-2023 MultiMedia Soft

VideoPlayer.DisableVMR7 method

Previous pageReturn to chapter overviewNext page

Remarks

 

Enables/disables the usage of the VMR7 video renderer.

 

The usage of this method should be considered when dealing with buggy video drivers on Windows 10 and higher versions: the VMR7 video renderer, which uses DirectDraw for its rendering, is quite efficient in terms of CPU usage and speed but it has been found that many video drivers are unable to manage its video flow properly and this could result in a blank video window that could be totally white or totally black: when this method is invoked with the bDisable parameter set to "true", the VMR7 video renderer will be disabled and the older version of VMR, based upon GDI, will be used.

 

For further details about the use of the embedded video player see the VideoPlayer class section.

For details about video clips rendering refer to the How to play video files through DirectShow tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function DisableVMR7 (

bDisable as Boolean

) as enumErrorCodes


 

[C#]

public enumErrorCodes DisableVMR7 (

bool bDisable

);


 

[C++]

public: enumErrorCodes DisableVMR7 (

bool bDisable

);


 

Parameter

Description

 

 

bDisable

Boolean flag that specifies if the VMR7 video renderer should be disabled.

Supported values are the following:

Mnemonic constant

Value

Meaning

false (default)

0

The VMR7 video renderer is enabled

true

1

The VMR7 video renderer is disabled

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.