[Release] Hypnonema - Media Player Resource (Twitch,YouTube and more) [C#]

Hypnonema

Hypnonema

Hypnonema - combination of Hýpnos and cinema - remembers you of the world of imagination and dreams…

Table of Contents

About

This resource lets you watch movies/streams on either custom Scaleform based targets or on any render target provided by the game (“plain” DUI).

Some noteable features:

  • Multi-Screen capable (watch multiple movies at once)

  • 3D Spatialized Audio

  • Synced

  • Screen-Settings stored on server

  • Scaleform with 3D coordinates and/or RenderTargets

  • All HTML5 supported audio and video types including HLS/DASH plus Twitch / YouTube / DailyMotion / Facebook / Vimeo / Streamable / Vidme / Wistia / SoundCloud

  • Live-Edit Feature (simplifies scaleform placement)

Demo

Installation

  1. Download the latest Release from Github and extract the zip file to your resources directory.

  2. (Optional) Edit permissions.cfg to your likings. See Permissions for more information.

  3. Edit the server.cfg and add following lines:

exec @hypnonema/permissions.cfg
start hypnonema

Permissions

By default only members of group.admin are allowed to interact with hypnonema.

To permit users to make use of all available functionality make sure to edit the permissions.cfg file inside the resource directory.

For example to restrict creating / editing screens to admins only but allow everyone to control the playback use following settings.


add_ace group.admin hypnonema allow

add_ace builtin.everyone hypnonema.playback allow

Usage

Enter the command /hypnonema, choose a screen and click Play!

To set the local volume use /hypnonema volume 0-100

Download

You can find the download links at github.

Exports

The resource exports some of its functions for you to re-use them in your own resource/library.

Click me for a full list of all currently available exports.

FAQ

This section is provided to answer you the most commonly asked questions.

How can I play on TV?

You need two values:

  1. Name of the Model

  2. Name of the RenderTarget

(use codewalker to obtain them, or use this outdated list)

Just create a new screen with these values.

Using CodeWalker
  1. Select an Entity
  2. Click Drawable Tab (to the right)
  3. Click Textures Tab (inside Drawable Tab)
  4. Look for a Texture named in the format “script_rt_*”, so for example “script_rt_tvscreen”.
    4.1 tvscreen is then the name of the rendertarget.
    CodeWalker

Help! My screen stays black but I pressed play?

There are mostly two sources for this kind of error.

  1. You forgot to put the address of your webserver in __resource.lua

  2. Your webserver is misconfigured, so that you can’t actually access the files.

Access Denied?
Please take a look at this guide.
For the steam id: How to get your Steam HEX ID

Support

Please use this thread to comment if you experience any kind of issues.

I’ll try to assist you asap.

Planned Features

  • Schedulable playback

Im always sensible to new ideas, so don’t hesitate to bring new forward!

Credits

thers - [Release] Generic DUI 2d/3d renderer

Hf gl!

102 Likes

Looks very interesting :mascot:

Moved to #development:releases

2 Likes

Super interesting and cool. Nice job man. Hopefully this blows up.

6 Likes

I’m curious, you have this listed in your __resource.lua:

hypnonema_width '1280'
hypnonema_height '720'

Does this restrict the video quality to 720p?

5 Likes

It’s size of cinema screen, not quality

1 Like

Like Gizter said its the size which is passed to the scaleform and determines how big the actual texture will be

1 Like

Just the same resolution size as 720p by coincidence then :stuck_out_tongue:
Like said, looks very interesting, will be following and see what other magic you can create.

1 Like

Very nice
Thanks

3 Likes

Doesnt work for me

2 Likes

https://streamable.com/frlsw

1 Like

I assume you are using this publicly, therefore not locally is that right?
If so, please make sure that you either put the index.html inside wwwroot on a directory on your webserver or if you are using the internal http server make sure that the corresponding port is open. You can find the settings for the url etc. inside the __resource.lua file. To quickly test if the web server part is reachable just open the url you specified inside the __resource.lua in a browser, if that part is OK you should see a splash screen.

2 Likes

Yeah, i use it on my FiveM server. Thanks for the fast answer appriciated dude! So i need to open that ports to make it work?

2 Likes

I guess im to autistic to understand this like you dont need to bother helping me sir.

1 Like

Yes, the port you specified inside __resource.lua needs to be reachable externally. But I guess that it may be another problem. Did you change the entry for hypnonema_url?
Because if you use this on your external fivem server AND you decided to use the built-in http server you need to change hypnonema_url, too. So for example if your server ip is 150.234.56.27 you have to change hypnonema_url to:

hypnonema_url ‘http://150.234.56.27:9414/

1 Like

That looks cool, thanks. :slight_smile:

And I had just managed to get that song out of my head. Thanks. :frowning:

1 Like

Don’t hit / hypnonema

1 Like

same here how do u put sirens?

1 Like

Interesting, nice job. :+1:

1 Like

I opened 9414 in my vps host, and it still doesnt work i dont know what im doing wrong changed in resource lua aswell as you wrote sir=)

2 Likes

can i try Another port or what i’m doing wrong?

2 Likes