Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

DirectShowVideoWindowMBS.AutoShow as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: Whether the video renderer automatically shows the video window when it receives video data.
Notes:
Lasterror is set.
By default, when the filter graph changes state to paused or running, the video renderer shows the video window and moves it to the foreground. If the user closes the window, it will not automatically reappear.
(Read and Write computed property)

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.BackgroundPalette as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: Whether the video window realizes its palette in the background.
Notes:
Lasterror is set.
If BackgroundPalette is true and the video image requires a palette, the video renderer will realize that palette in the background. Any colors that the palette uses will change to their closest match in the display palette prior to drawing. This ensures that an application will not have its palette disturbed. However, it imposes severe performance penalties on the video.
(Read and Write computed property)

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.BorderColor as color
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The color that appears around the edges of the destination rectangle.
Notes:
Lasterror is set.
If the destination rectangle is smaller than the client area of the video window, a border is exposed around the edges of the video. The default color is black. Use this method to override the default color. If a palette is in use, a nonsystem color is converted to its closest match.
(Read and Write computed property)

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.Caption as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The video window caption.
Notes:
Lasterror is set.
(Read and Write computed property)

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The private constructor to create a new video window.

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.FullScreenMode as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: Enables or disables full-screen video rendering.
Notes:
Set to true to switch to full-screen mode. Set to false to disable full-screen mode. (Default.)
Lasterror is set.

Depending on the video renderer, the switch to full-screen mode may not be visible until the application runs or pauses the graph. In full-screen mode, if the user switches away from the application (for example, using ALT + TAB), the Filter Graph Manager sends an EC_FULLSCREEN_LOST event.
The following remarks describe how the Filter Graph Manager implements full-screen mode. Application developers can probably ignore this information, but it may be useful if you are writing a custom video renderer.
When an application switches to full-screen mode, the Filter Graph Manager searches for a video renderer that will function most efficiently. In order of preference, these are:

  • Any video renderer in the filter graph that natively supports full-screen mode.
  • Any video renderer in the filter graph that can stretch the video to full-screen without a significant performance cost.
  • The Full Screen Renderer filter.
  • Any video renderer in the filter graph that supports DirectShowVideoWindowMBS.

For the first option, the Filter Graph Manager sets FullScreenMode on every video renderer in the graph. Most renderers return E_NOTIMPL, indicating the filter does not natively support full-screen mode. If any renderer returns a value not equal to E_NOTIMPL, the Filter Graph Manager uses that one.
For the second option, the Filter Graph Manager calls GetMaxIdealImageSize and GetMinIdealImageSize on every video renderer in the graph. If the size of the display falls within the filter's reported range, it indicates that the filter can stretch the video without a significant performance cost.
Note If the graph is stopped, the Filter Graph Manager pauses each renderer before calling these methods. This gives the renderer an opportunity to initialize any resources it needs, because many renderers cannot determine these values while they are stopped.
Except on older hardware, the second option will generally succeed. The third option is to use the Full Screen Renderer filter, adding it to the graph if necessary. The fourth option is simply to find the first renderer in the graph that supports DirectShowVideoWindowMBS, and stretch the video regardless of performance.
(Read and Write computed property)

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.GetMaxIdealImageSize(byref width as Integer, byref height as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The GetMaxIdealImageSize method retrieves the maximum ideal image size for the video image.
Notes:
Width: Receives the maximum ideal width, in pixels.
Height: Receives the maximum ideal height, in pixels.
Lasterror is set.

The maximum ideal size may differ from the native video size, because the video hardware might have specific stretching requirements.

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.GetMinIdealImageSize(byref width as Integer, byref height as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The GetMinIdealImageSize method retrieves the minimum ideal size for the video image.
Notes:
Width: Receives the minimum ideal width, in pixels.
Height: Receives the minimum ideal height, in pixels.
Lasterror is set.

The maximum ideal size may differ from the native video size, because the video hardware might have specific stretching requirements.

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.GetRestorePosition(byref left as Integer, byref top as Integer, byref width as Integer, byref height as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The GetRestorePosition method retrieves the restored window position.
Notes:
Left: Receives the x-coordinate, in pixels.
Top: Receives the y-coordinate, in pixels.
Width: Receives the width of the window, in pixels.
Height: Receives the height of the window, in pixels.
Lasterror is set.

If the video window is minimized or maximized, you can use this method to get the window's restored position.

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.GetWindowPosition(byref left as Integer, byref top as Integer, byref width as Integer, byref height as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The GetWindowPosition method retrieves the position of the video window.
Notes:
Left: Receives the x-coordinate, in pixels.
Top: Receives the y-coordinate, in pixels.
Width: Receives the width of the window, in pixels.
Height: Receives the height of the window, in pixels.

Lasterror is set.
This method has the same effect as querying left, top, width and height methods.

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.Height as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The height of the video window.
Notes:
Lasterror is set.
(Read and Write computed property)

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.HideCursor(hide as boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The HideCursor method shows or hides the cursor when the mouse is positioned over the video window.
Notes:
Hide: Whether to hide or show the cursor.
Lasterror is set.

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.IsCursorHidden as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The IsCursorHidden method queries whether the cursor is hidden.
Notes: Lasterror is set.

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.Left as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The x-coordinate of the video window.
Notes:
Lasterror is set.
(Read and Write computed property)

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.MessageDrain as Window
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No No No
Function: The window to receive mouse and keyboard messages from the video window.
Notes:
Lasterror is set.
This method enables an application to respond to mouse and keyboard events generated within the video window.
If Drain is non-nil, the video renderer forwards certain messages to the specified window, using the PostMessage function. Which messages are forwarded might depend on the video renderer in use.
(Read and Write computed property)

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.Owner as Window
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No No No
Function: The parent window for the video window.
Notes:
Lasterror is set.
Use this method to display videos in a compound document. This method changes the parent of the video window and sets the WS_CHILD style for the video window.
Reset the owner to nil before releasing the Filter Graph Manager. Otherwise, messages will continue to be sent to this window and errors will likely occur when the application is terminated.
(Read and Write computed property)

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.SetWindowForeground(Focus as Boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The SetWindowForeground method places the video window at the top of the Z order.
Notes:
Focus: whether to give the window focus.
Lasterror is set.

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.SetWindowPosition(left as Integer, top as Integer, width as Integer, height as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The SetWindowPosition method sets the position of the video window.
Notes:
Left: The x-coordinate, in pixels.
Top: The y-coordinate, in pixels.
Width: The width, in pixels.
Height: The height, in pixels.
Lasterror is set.

This method has the same effect as setting the Left, Top, Width, and Height methods.
If resizing the window to the specified dimensions is impossible, this method modifies the window's size and location to make the window fit. Call the GetWindowPosition method to determine the result.

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.Top as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The y-coordinate of the video window.
Notes:
Lasterror is set.
(Read and Write computed property)

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.Visible as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: Shows or hides the video window.
Notes:
Set to true to show the window or set to false to hide the window.
Lasterror is set.
(Read and Write computed property)

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.Width as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The width of the video window.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.WindowState as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: Shows, hides, minimizes, or maximizes the video window.
Notes:
Lasterror is set.

See MSDN page for ShowWindow for SW_* constants:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633548(v=vs.85).aspx
(Read and Write computed property)

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.WindowStyle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The window styles on the video window.
Notes:
Lasterror is set.
See MSDN for SetWindowLong for details on the WS_* constants.
(Read and Write computed property)

Feedback, Comments & Corrections

DirectShowVideoWindowMBS.WindowStyleEx as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property DirectShow MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: The window extended styles on the video window.
Notes:
Lasterror is set.
See MSDN for SetWindowLong for details on the WS_EX_* constants.
(Read and Write computed property)

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Win Plugin.

The biggest plugin in space...




Links
MBS Xojo Chart Plugins