Jump to content

browser


huyjvguyen

Recommended Posts

i created a browser , the video is active but its sound is very loud , go around the map are heard , I want to limit sound in a certain range so how .

this is code:

  
  
local screenWidth, screenHeight = guiGetScreenSize() 
  
  
local webBrowser = createBrowser(screenWidth, screenHeight, false, false) 
  
function webBrowserRender() 
     
    dxDrawMaterialLine3D (1804.8203125, 795.5458984375, 15,1804.8203125, 795.5458984375, 11,webBrowser, 7, tocolor(255,255,255,255)) 
end 
  
  
addEventHandler("onClientBrowserCreated", webBrowser,  
    function() 
         
        loadBrowserURL(webBrowser, "https://www.youtube.com/embed/w7gOcSps1OM?autoplay=1&iv_load_policy=3&enablejsapi=1&fs=0&theme=light") 
         
  
        addEventHandler("onClientRender", root, webBrowserRender) 
    end 
) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...