CoreWebView2Environment.CreateTextureStream(String, Object) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Registers the stream id that the host can handle, providing a texture stream when requested from the WebView2's JavaScript code. The host can register multiple unique stream instances, each with a unique stream ID, enabling the host to stream from different sources concurrently. The host should call this only once for unique streamId. The second call of already created streamId without destroying CoreWebView2TextureStream object will return an error. d3dDevice is used for creating shared IDXGI resource and NT shared of it. The host should use Adapter of the LUID from the GetRenderAdapterLUID for creating the D3D Device.

C#
public Microsoft.Web.WebView2.Core.CoreWebView2TextureStream CreateTextureStream (string streamId, object d3dDevice);

Parameters

streamId
String
d3dDevice
Object

Returns

Applies to

Product Versions
WebView2 .NET Prerelease 1.0.1724, 1.0.1777, 1.0.1829, 1.0.1905, 1.0.1988, 1.0.2065, 1.0.2106, 1.0.2164, 1.0.2194, 1.0.2357, 1.0.2415, 1.0.2470, 1.0.2526, 1.0.2584, 1.0.2646, 1.0.2730, 1.0.2783, 1.0.2839, 1.0.2895, 1.0.2950, 1.0.3079, 1.0.3116