SVGBuilderExtensions.OnCanPlay

SVGBuilderExtensions.OnCanPlay<TBuilder> method

Sets the ‘oncanplay’ event attribute for handling media playability checks.

public static TBuilder OnCanPlay<TBuilder>(this TBuilder builder, string value)
    where TBuilder : ISVGElementBuilder, IGlobalEventAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder.
valueThe JavaScript function or script to execute when media can start playing.

Return Value

The builder instance for chaining.

See Also