Skip to main content

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:

NameTypeDescription
isPlayingbooleanNew video playback state
callback_resultfunctionCallback function

Usage

---@type MLStreamingBrowser
local mlstreamingbrowser;

---@type boolean
local isPlaying;

---@type function
local callback_result;


mlstreamingbrowser.TrySetVideoPlayState(isPlaying, callback_result)