Class WebView2SourceSettings
- Namespace
- VisioForge.Core.Types.X.Sources
- Assembly
- VisioForge.Core.dll
Settings for the WebView2 video source block that renders web pages as video. Windows-only.
public class WebView2SourceSettings : IMediaBlockSettingsInheritance
Implements
Inherited Members
Constructors
WebView2SourceSettings()
Initializes a new instance of the VisioForge.Core.Types.X.Sources.WebView2SourceSettings class.
public WebView2SourceSettings()WebView2SourceSettings(string)
Initializes a new instance of the VisioForge.Core.Types.X.Sources.WebView2SourceSettings class with a URL.
public WebView2SourceSettings(string location)Parameters
locationstring-
The URL to display.
Properties
Adapter
Gets or sets the DXGI adapter index (-1 for any device).
public int Adapter { get; set; }Property Value
JavaScript
Gets or sets JavaScript to run on navigation completed.
public string JavaScript { get; set; }Property Value
Location
Gets or sets the URL to display.
public string Location { get; set; }Property Value
ProcessingDeadline
Gets or sets the maximum processing time for a buffer in nanoseconds.
public ulong ProcessingDeadline { get; set; }Property Value
UserDataFolder
Gets or sets the absolute path to WebView2 user data folder location.
public string UserDataFolder { get; set; }Property Value
Methods
CreateBlock()
Creates a new MediaBlock instance configured with the settings contained in this object. This factory method allows for separation of configuration from instantiation, making it easier to serialize settings or create multiple blocks with the same configuration.
public MediaBlock CreateBlock()Returns
- MediaBlock
-
A new MediaBlock instance configured according to this settings object.