Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for video files over HTTP #157

Open
jackbritchford opened this issue Jul 27, 2019 · 6 comments
Open

Support for video files over HTTP #157

jackbritchford opened this issue Jul 27, 2019 · 6 comments

Comments

@jackbritchford
Copy link

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.

@jackbritchford jackbritchford changed the title Support for files over HTTP Jul 27, 2019
@iangame19
Copy link

ok

@WinterPhoenix
Copy link
Contributor

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/

@Xeddius
Copy link

Xeddius commented Jun 19, 2020

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.

@Xeddius
Copy link

Xeddius commented Jun 19, 2020

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.

@WinterPhoenix
Copy link
Contributor

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

@Xeddius
Copy link

Xeddius commented Jul 8, 2020

-snip- nevermind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants