Copyright © 2001-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 "BOOL_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 object section.

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

 

 

Syntax

 

[Visual Basic]

control.VideoPlayer.DisableVMR7 (

bDisable as enumBoolean

) as enumErrorCodes


 

[C++]

short control.VideoPlayer.DurationGet (

short 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

BOOL_FALSE (default)

0

The VMR7 video renderer is enabled

BOOL_TRUE

1

The VMR7 video renderer is disabled

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful