Vital.sandbox
Webview

self:is_autoplay

Client

Retrieves whether autoplay is enabled on the webview


Syntax

local result = self:is_autoplay()

Parameters

TypeNameDescription

Returns

TypeNameDescription
boolresulttrue if autoplay is enabled, false otherwise

Examples

Check if autoplay is enabled on a webview
local browser = webview.create()

engine.print("info", "Webview autoplay:", browser:is_autoplay())

On this page