Aracılığıyla paylaş


CoreWebView2TextureStreamErrorKind Enum

Definition

Kinds of errors that can be reported by the ErrorReceived event.

public enum CoreWebView2TextureStreamErrorKind
type CoreWebView2TextureStreamErrorKind = 
Public Enum CoreWebView2TextureStreamErrorKind
Inheritance
CoreWebView2TextureStreamErrorKind

Fields

Name Value Description
CoreWebView2TextureStreamErrorNoVideoTrackStarted 0

An error that texture stream is not active.

NoVideoTrackStarted 0

CreateTexture/PresentTexture and so on should return failed HRESULT if the texture stream is in the stopped state rather than using the error event. But there can be edge cases where the browser process knows the texture stream is in the stopped state and the host app process texture stream doesn't yet know that. Like the 10 second issue or if the script side has stopped the stream.

CoreWebView2TextureStreamErrorTextureError 1

An error that is associated with the texture.

TextureError 1

The texture already has been removed using CloseTexture.

CoreWebView2TextureStreamErrorTextureInUse 2

An error that presenting texture is already in use.

TextureInUse 2

The texture to be presented is already in use for rendering. Call GetAvailableTexture to determine an available texture to present. The developer can technically call PresentTexture multiple times, but the first call make input texture "in use" until the browser renders it and returns the texture as "recycle" so that it can be a member of available textures.

Applies to