Garry's Mod

Garry's Mod

Cinema
Zanardeira 2016 年 1 月 25 日 下午 11:29
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
最后由 Zanardeira 编辑于; 2016 年 1 月 25 日 下午 11:30
< >
正在显示第 1 - 3 条,共 3 条留言
Sam  [开发者] 2016 年 1 月 26 日 上午 1:06 
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!
最后由 Sam 编辑于; 2016 年 1 月 26 日 上午 1:09
Zanardeira 2016 年 1 月 26 日 上午 1:28 
引用自 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 2016 年 1 月 26 日 上午 2:25 
引用自 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
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50