Hi
How can I close a created browser after hiding contained window?
the issue is that a video is playing in browser and when user closes the window, video keeps playing.
local screenWidth, screenHeight = guiGetScreenSize()
local window = guiCreateWindow( 0, 0, screenWidth, screenHeight, "Web Browser", false )
local browser = guiCreateBrowser(10, 10, screenWidth-10, screenHeight-10, true, false, false, window)
local the_browser = guiGetBrowser(browser)
--outputConsole("Creating Browser")
addEventHandler("onClientBrowserCreated", the_browser,
function()
res = loadBrowserURL(source, "http://mta/local/web/page.html")
end
)