CoreWebView2TextureStream Class
CoreWebView2 Texture Stream.
Summary
Members | Description |
---|---|
Id | Retrives texture stream id. |
AddAllowedOrigin | Adds allowed origin for texture stream and web texture stream. |
CloseTexture | Closes created texture. |
CreateTexture | Creates texture buffer that the host can write to for the browser rendering. |
GetAvailableTexture | Gets reusable texture. |
PresentTexture | Present texture to the browser's renderer. |
RemoveAllowedOrigin | Removes allowed origin for texture stream and web texture stream. |
SetD3DDevice | Sets D3D device with new device. |
Stop | Stops presenting texture stream. |
ErrorReceived | Registers texture stream error event. |
StartRequested | Registers texture stream request from the Javascript. |
Stopped | Registers texture stream stopped event. |
WebTextureReceived | Registers web texture receiving event. |
WebTextureStreamStopped | Registers web texture stopped event. |
Properties
Id
readonly string Id
Retrives texture stream id.
Methods
AddAllowedOrigin
void AddAllowedOrigin(string origin, int value)
Adds allowed origin for texture stream and web texture stream.
CloseTexture
void CloseTexture(CoreWebView2Texture texture)
Closes created texture.
CreateTexture
CoreWebView2Texture CreateTexture(uint32_t widthInTexels, uint32_t heightInTexels)
Creates texture buffer that the host can write to for the browser rendering.
GetAvailableTexture
CoreWebView2Texture GetAvailableTexture()
Gets reusable texture.
PresentTexture
void PresentTexture(CoreWebView2Texture texture)
Present texture to the browser's renderer.
RemoveAllowedOrigin
void RemoveAllowedOrigin(string origin)
Removes allowed origin for texture stream and web texture stream.
SetD3DDevice
void SetD3DDevice(Object d3dDevice)
Sets D3D device with new device.
Stop
void Stop()
Stops presenting texture stream.
Events
ErrorReceived
Registers texture stream error event.
Type: TypedEventHandler<CoreWebView2TextureStream, CoreWebView2TextureStreamErrorReceivedEventArgs>
StartRequested
Registers texture stream request from the Javascript.
Type: TypedEventHandler<CoreWebView2TextureStream, Object>
Stopped
Registers texture stream stopped event.
Type: TypedEventHandler<CoreWebView2TextureStream, Object>
WebTextureReceived
Registers web texture receiving event.
Type: TypedEventHandler<CoreWebView2TextureStream, CoreWebView2TextureStreamWebTextureReceivedEventArgs>
WebTextureStreamStopped
Registers web texture stopped event.
Type: TypedEventHandler<CoreWebView2TextureStream, Object>