Giter Club home page Giter Club logo

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

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

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! ๐Ÿ‘

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.

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.

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.