Git Product home page Git Product logo

purrcoding / cinema Goto Github PK

View Code? Open in Web Editor NEW
24.0 4.0 19.0 20.49 MB

:movie_camera: Gamemode for Garry's Mod featuring multiplayer video streaming

Home Page: https://steamcommunity.com/sharedfiles/filedetails/?id=2419005587

License: GNU General Public License v3.0

Lua 96.40% CSS 1.36% HTML 1.88% Batchfile 0.09% JavaScript 0.27%
gmod cinema lua garrysmod html streaming movies gamemode garrysmod-gamemode

cinema's Introduction

Cinema (Fixed Edition)

Remember sitting down on a lazy afternoon with your friends, drinking a cup of hot cocoa and watching a movie? It's a magical bonding experience between people, a timeless ritual that not many are able to do with some of their friends...

-- pixelTail Games

This is the unofficial successor of the defunct Cinema addon, the focus here is to keep the Cinema gamemode alive and enrich it with new features.

Features

  • All previous known featuers
  • Video History search and pagination
  • Per player volume control and muting
  • Livestreams can be played anywhere
  • Automated detection of video durations
  • (Experimental) Optional Sandbox derivation

Credits

Links

cinema's People

Contributors

alivebyte avatar blueberryy avatar bmwalters avatar cannon avatar cattogamer avatar chev2 avatar herover avatar im2er0 avatar jack-tanner avatar jakey-f avatar janifi avatar jeezymang avatar kcejalppe avatar neico avatar poheart avatar ptown2 avatar q2x avatar robotboy655 avatar samuelmaddock avatar tiagoquix avatar tom-clayton11 avatar vavency avatar wyozi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cinema's Issues

YugenAnime Domain Change

Yugen appears to have had a new domain change.
I attempted to update the two lines with the new domain but it doesn't seem to fix the issue.

Cinema blocks all raw video from playing if CEF fix is not installed despite video's being encoded with VP9

Pretty much what it says on the tin.

In previous versions of Cinema, I noticed that if you played raw videos that were encoded to vp8/9 (the same codec Youtube videos use), then they would actually play properly for people who did not have the CEF codec fix installed. Since that discovery, I have been using vp9 for my video uploads so they can be viewed by both users with the CEF fix and those without it.

Now that there is an in-game check for the codec fix when playing raw video, these videos are being blocked from playing on the client despite being able to play properly otherwise.

Reproduction steps:

  1. Factory reset of Gmod (or uninstall CEF codec fix)
  2. Join cinema_modded server
  3. Queue VP9-encoded video (such as https://serioussaturdays.net/crash.webm)

Expected result: video plays
Actual result: CEF banner warning pops up, and video does not attempt to play.

Remove cinema_construct from maps_ducttape

Greetings,

I am the creator and maintainer of the Cinema map cinema_construct. Today I released an update for the map that skips the theater_door patch for Cinema-based gamemodes like cinema_modded. My apologies for not applying this sooner.

With this change, I believe the file gamemode/maps_ducttape/cinema_construct.lua is no longer necessary. Feel free to test these changes I've made to ensure they work for you as well.

Thank you! ๐Ÿ‘

improvement/addition. Image handler

Image file handler.

local SERVICE = {}

SERVICE.Name 	= "Image"
SERVICE.IsTimed = true
function SERVICE:Match( url )
	MsgN(url.encoded)
	return string.match( url.encoded, "http" ) && (string.match( url.encoded, "jpg") or string.match( url.encoded, "png") or string.match( url.encoded, "bmp") or string.match( url.encoded, "jpeg") or string.match( url.encoded, "gif") )
end

function SERVICE:GetURLInfo( url )
	local info = {}
	MsgN("Grabbing image data...")
	PrintTable(url)
	info.Data = url.encoded
	return info
end

function SERVICE:GetVideoInfo( data, onSuccess, onFailure )
	local info = {}
	info.thumbnail = data
	info.title = "Image"
	info.duration = 60
	if onSuccess then
		PrintTable(info)
		pcall(onSuccess, info)
	end
end

theater.RegisterService( 'Image', SERVICE )

if CLIENT then
	function SERVICE:LoadVideo( Video, panel )
		local panel = theater.ActivePanel()
		panel:Stop()
		panel:OpenURL( Video:Data() )
	end
end

May wish to add a convar for image duration and a gui element to adjust how long they are displayed. Possibly a convar to enable or disable image support.

[Issue} Using gamemode as a server hosting youtube

So I am hosting this gamemode ona a dedicated server in Canada. The server runs great and everything but youtube is working

I was playing around with the code but ran into some issues. It turns out youtube is asking if I am a bot because youtube isn't logged in on the get.

I decided to put my cookie in the header. And that worked great for the person requesting a video and fixed the problem. However, for anyone else this was a problem and would throw a playback error for anyone else but the hoster which is strange (I don't really know much about your code)

The risky part about this is also hosting a cookie for one of your accounts in the main code.

I am not sure what all your code does but would love to see a fix for this. I may tweak with this a bit more tomorrow and try to find a permanent fix for the problem at hand but this is what I am seeing.

What I changed to fix the sign in issue

httpheaders - sh_base.lua in theater modules
['Cookie'] = "put cookies here"

This cookie also tends to expire rather often which isn't good.

Single player works great for reference

My server has no additional addons or code running. Just the cinema gamemode

[Issue] Ads showing on Youtube

With the new fix comes new problems. It shows ads which throws off everyone's timing. And if the ads are super long you cant click skip...

Not 100% certain how to fix that but I hope you can find a way!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.