gimmesomemo Posted December 30, 2015 Posted December 30, 2015 Hey Everyone!! I host a video channel on ustream and always wanted to stream my channel into my own MTA server. To my delight, MTASA handles video sites very smoothly with great interaction! - How cpu intensive is the CEF browser instance? I want to make a house/business/bank type server with the video stream on every billboard, many many instances all over the map. Is that theoretically possible without bogging everyone's machine down? Any input is appreciated!! Thanks!
Revolt Posted December 30, 2015 Posted December 30, 2015 May be possible if you handle it right. If you're going to display the browser window in a 3D world, then make sure that you load it only when the player is close to it.
Dazee Posted December 30, 2015 Posted December 30, 2015 Yes it is possible you can apply what I provided below to your use. local LS = createColRectangle (-800.81671, -2990.10657, 5100, 3330) local LV = createColRectangle (-810, 350, 5000, 3000) local SF = createColRectangle (-4000, -3000, 3190, 6000) function getPlayerCityName(element) if ( not isElement(element) ) then return end if (isElementWithinColShape(element, LS)) then result = "LS" elseif (isElementWithinColShape(element, LV)) then result = "LV" elseif (isElementWithinColShape(element, SF)) then result = "SF" end return result end But make sure to destroy the browser when the player leaves the rectangle.
Gallardo9944 Posted January 1, 2016 Posted January 1, 2016 lol. It is easier to make some dummy invisible object in the place of 3d browser and create the browser only if that object streams in. Destroy it when it streams out, of course.
Addlibs Posted January 1, 2016 Posted January 1, 2016 I want to make a house/business/bank type server with the video stream on every billboard, many many instances all over the map.If you're talking about many instances of CEF, then I assure you it will lag. However, if you mean many MTA billboard-objects, then you can use just one CEF browser and apply it to a texture without a specific target element (will be applied to all textures of that name, i.e. the billboard screen) (video will be played in sync on every billboard per client)
gimmesomemo Posted January 2, 2016 Author Posted January 2, 2016 THANKS! This is GREAT news!!! I've toyed with starting my own server and added house/business/bank resources, but I have no experience with actual scripting. This might take me a while to figure out..
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now