Jump to content

CEF: How to deal with it?


Jusonex

Recommended Posts

  • 4 weeks later...
  • 1 month later...
  • 1 month later...

hello, i tried to make a simple but it's not work. Somebody help me please!.

client:

local webBrowser = createBrowser(1200, 675) 
  
addCommandHandler("youtube", 
    function() 
                  browserLoadURL(webBrowser, "https://www.youtube.com/watch?v=kdemFfbS5H0") 
        
                 addEventHandler("onClientRender", root, 
                     function() 
                         -- Update texture data 
                         updateBrowser(webBrowser) 
    
                         -- We can simply draw the webbrowser now since it is a standard DirectX texture 
                         local x, y = 110.7, 1024.15 
                         dxDrawMaterialLine3D(x, y, 23.25, x, y, 14.75, webBrowser, 18.2, tocolor(255, 255, 255, 255), x, y+1, 19) 
                     end 
                ) 
      end 
) 

server:

-- Ask the player after login 
addEventHandler("onPlayerLogin", root, 
    function() 
        requestWebPages({"youtube.com", "google.com", "myservername.com"}) 
    end 

this script can createBrowser 3d but can't load video

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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