MLStreamingBrowser.TrySetVideoPlayState(boolean isPlaying, function callback_result = Nil)
Set video playback state. Optionally, a callback function can be provided to be called when the action completed in the browser.
Parameters:
Name | Type | Description |
---|---|---|
isPlaying | boolean | New video playback state |
callback_result | function | Callback function |
Usage
---@type MLStreamingBrowser
local mlstreamingbrowser;
---@type boolean
local isPlaying;
---@type function
local callback_result;
mlstreamingbrowser.TrySetVideoPlayState(isPlaying, callback_result)