pixeltailgames / cinema

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

Home Page:http://www.pixeltailgames.com/cinema/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for video files over HTTP

jackbritchford opened this issue · comments

commented

Hi, I haven't tested the support for playing a video that could be embedded in a HTML5 player (x264/x265) but I was wondering if it's possible to use a URL of a .mkv or .mp4 file streamed from say S3.

I'm guessing it doesn't and I could create a page with a

What would be the best way of creating a service given it needs to detect MKV, MP4 and potentially other files? I might take a stab at creating a new service which embeds a HTML in a HTML GUI object, it's been a while since I've done anything with GMod Lua but if I remember correctly there's ways of interfacing between JS/the Lua game state, so hopefully I can track timing and ensure it's in sync.

It should already be possible to load any URL into Cinema, at least in Private Theaters, with cinema_allow_url: https://github.com/pixeltailgames/cinema/blob/master/cinema/gamemode/modules/theater/sh_commands.lua#L153

I've never tried it though so I don't know if it works. In either case, x264/x265/any proprietary codec won't play natively in HTML5 in GMod normally.

You'll have to use Flash Player (with something like JWPlayer) or something like GModCEFCodecFix to get it working: https://www.solsticegamestudios.com/forums/threads/cinema-media-system-black-screens-cant-see-videos.60/

Even when using GModCEFCodecFix it's not possible to load webm, mp4, or animated gifs, is there a way to enable this? I have a lot of files that I host on my desktop with hfs http file server and universal media server, is there any way to load videos without having to build a webpage for them? I know the mediaplayer addon (based on cinema I think, gives you some small-medium screens) supports loading images, webm, etc, but I want to load them in the cinema gamemode.

To clarify, the reason I want this is because I want to host media locally with a lan, I definitely don't want to play on someone else's server to be able to have basic video functionality, especially when so few websites have what I want to watch, (good luck finding Andromeda or Red Dwarf.) I have my own sweps and fun things on my local listen-server that we would miss as well which is another reason to stay away from other servers. Most players will be on my local net, with my remote friend connecting from a virtual-lan.

With GModCEFCodecFix it's possible to play them, but you may have to build a web page with <video> elements or something for it to work

-snip- nevermind.