Garry's Mod

Garry's Mod

Cinema
Zanardeira Jan 25, 2016 @ 11:29pm
HOW TO ADD ANOTHER SITE in queue
Hello. how I can add another site in Cinema mode ?.
example : http://anitubebr.xpg.uol.com.br/

I can access this site by the browser , but can not add Videos on the big screen .

example embed the link :
http://anitubebr.xpg.uol.com.br/embed/1b287e99e6915f4daa68

I would love to be able to see video of that site and put on my server dedicated <3
Last edited by Zanardeira; Jan 25, 2016 @ 11:30pm
< >
Showing 1-3 of 3 comments
Sam  [developer] Jan 26, 2016 @ 1:06am 
Hi, how much experience with programming would you say you have? To add a new service to Cinema, you'll need to be familiar with Lua and JavaScript. It would also help if you're familiar with Git version control and GitHub. The following is the implementation of the YouTube service which could serve as a guide for implementing a new one.

The Lua code for getting video metadata (title, duration, etc.):
https://github.com/pixeltailgames/cinema/blob/master/cinema/gamemode/modules/theater/services/sh_youtube.lua

The JavaScript code for controlling the embedded web video player:
https://github.com/pixeltailgames/pixeltailgames.github.com/blob/master/cinema/js/theater.js#L260-L374

If you're only interested in having the webpage appear in Cinema and you don't mind if the video isn't synchronized with all other players on the server, you can allow any URL to be requested by changing the cinema_allow_url convar. Documentation can be found on the Cinema GitHub wiki: https://github.com/pixeltailgames/cinema/wiki/Console-Commands-&-Variables

Hope this helps!
Last edited by Sam; Jan 26, 2016 @ 1:09am
Zanardeira Jan 26, 2016 @ 1:28am 
Originally posted by Sam:
Hi, how much experience with programming would you say you have? To add a new service to Cinema, you'll need to be familiar with Lua and JavaScript. It would also help if you're familiar with Git version control and GitHub. The following is the implementation of the YouTube service which could serve as a guide for implementing a new one.

The Lua code for getting video metadata (title, duration, etc.):
https://github.com/pixeltailgames/cinema/blob/master/cinema/gamemode/modules/theater/services/sh_youtube.lua

The JavaScript code for controlling the embedded web video player:
https://github.com/pixeltailgames/pixeltailgames.github.com/blob/master/cinema/js/theater.js#L260-L374

If you're only interested in having the webpage appear in Cinema and you don't mind if the video isn't synchronized with all other players on the server, you can allow any URL to be requested by changing the cinema_allow_url convar. Documentation can be found on the Cinema GitHub wiki: https://github.com/pixeltailgames/cinema/wiki/Console-Commands-&-Variables

Hope this helps!
thanks i go read this
I do not know anything about programming but I can learn xD
Zanardeira Jan 26, 2016 @ 2:25am 
Originally posted by Sam:
Hi, how much experience with programming would you say you have? To add a new service to Cinema, you'll need to be familiar with Lua and JavaScript. It would also help if you're familiar with Git version control and GitHub. The following is the implementation of the YouTube service which could serve as a guide for implementing a new one.

The Lua code for getting video metadata (title, duration, etc.):
https://github.com/pixeltailgames/cinema/blob/master/cinema/gamemode/modules/theater/services/sh_youtube.lua

The JavaScript code for controlling the embedded web video player:
https://github.com/pixeltailgames/pixeltailgames.github.com/blob/master/cinema/js/theater.js#L260-L374

If you're only interested in having the webpage appear in Cinema and you don't mind if the video isn't synchronized with all other players on the server, you can allow any URL to be requested by changing the cinema_allow_url convar. Documentation can be found on the Cinema GitHub wiki: https://github.com/pixeltailgames/cinema/wiki/Console-Commands-&-Variables

Hope this helps!
this is fuc***g impossible. only a geek to be able to do it. but
thanks for answering
< >
Showing 1-3 of 3 comments
Per page: 1530 50