Giter VIP home page Giter VIP logo

stream-site's People

Contributors

fenrirthviti avatar mrmicheall 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stream-site's Issues

fetchChannels not working

Hi you.
I tried to install it but it seems that there is a missing file in the code. I couldn't find the stat.xml file, so the fetchChannels function didn't work. And I also get the error: Uncaught TypeError: Cannot read properties of null (reading 'currentURL')
at TransmuxingController._reportStatisticsInfo (flv.js:3937:48)
Looking forward to your support.
https://prnt.sc/6Vfgxiw07UgE

Error

pg_query_params(): Query failed: ERROR: inconsistent types deduced for parameter $7 LINE 1: ...ffline_image) VALUES ($1, $2, $7, 0, $3, $4, $5, $6, $7, $8) ^ DETAIL: text versus boolean in /var/www/html/lib/user.class.php on line 165

how to fix this ?

Impossible to watch a live stream.

When we launch a stream it is impossible to view it without having an infinite load.

Here is a capture of the web inspection console errors

image

URL STATS
image

Non-FLV, Unsupported media type!

I publish a video with ffmpeg command:

ffmpeg -re -i clip.mp4 -c:v flv -c:a libmp3lame -ar 44100 -ac 1 -f flv rtmp://localhost/live/username?key=123abc

the stream is on but when i click it, there's nothing, just loading. Chrome log with error:

[TransmuxingController] > Non-FLV, Unsupported media type! flv.js:12424
[IOController] > 5457 bytes unconsumed data remain when flush buffer, dropped flv.js:12468 
Uncaught (in promise) Error: Uncaught, unspecified "error" event. (MediaError)
    at EventEmitter.emit (flv.js:1275)
    at EventEmitter.<anonymous> (flv.js:9804)
    at EventEmitter.emit (flv.js:1297)
    at flv.js:3359
....

I'm pretty new to this. Please help, thank you!

Add proper custom images system

Currently, there is a placeholder for account profile pictures (they can be manually added by editing the DB). This needs to be updated to be:

  • Upload/update avatar picture. Potential this can be added to #4 next to name in chat
  • Upload channel images
    • Static preivew
    • Offline image
  • Toggle in settings for live preview or static channel image

Stream chat

Add a chat system for stream viewers. Attempts were made to use IRC as the backend, but proved to be well outside my abilities. Features should include:

  • Individual stream channels
  • At least 20 line scrollback from channel
  • Chat lines use Display Name
  • Hideable pane
  • Popout maybe?

Admin page

Need to put together a page for administrative functions.

  • Create accounts
  • Delete accounts
  • Edit accounts
  • Enable/disable registration
  • Other various admin functions

Password reset simplification

The password reset page is a bit confusing and could use some process simplification and security enhancements.

  • The code request and actual reset form should be made separate.
  • The code should be required for a reset request to even be attempted.

Route /watch 404

Getting 404 when trying to access to /watch/Admin (Admin – my username). I need the page to be always available. Even if the stream is offline. Where can I find something about this page in the code? Your nginx config is a quite messy. I can't figure out about how the user page constructed. Thank you!

Upstream services

Hey,

really nice project, and i'm not sure if you are still keeping it only for you, but i could suggest only one thing - upstream services like twitch, mixer, youtube etc. however until to this very day, i can confirm it's working with zero issues ;)

~best

problem

Warning: simplexml_load_file(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /var/www/html/lib/rtmp.class.php on line 88

Warning: simplexml_load_file(): Failed to enable crypto in /var/www/html/lib/rtmp.class.php on line 88

Warning: simplexml_load_file(https://192.168.7.13/stat.xml): failed to open stream: operation failed in /var/www/html/lib/rtmp.class.php on line 88

Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://192.168.7.13/stat.xml" in /var/www/html/lib/rtmp.class.php on line 88

can u help me ?

sql error

SQL sorgusu:

-- Table: subscribers
-- DROP TABLE subscribers;
CREATE TABLE subscribers(

host_account TEXT NOT NULL ,
subscriber TEXT NOT NULL ,
CONSTRAINT subscribers_pk PRIMARY KEY ( host_account, subscriber ) ,
CONSTRAINT host_account_fk FOREIGN KEY ( host_account ) REFERENCES users( email ) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE
) WITH (
OIDS = FALSE
);

MySQL çıktısı: Belgeler

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(
OIDS=FALSE
)' at line 14

stop SSL

hello again
pls can you write how to stop SSL configuration ?

i want http:// not https://

Private streamkey

Hi,

I found this project on my search for a solution to mask the streamkey.
https://groups.google.com/forum/#!topic/nginx-rtmp/t4XQIzQI9YA

But I have problems understanding how your solution stops exposing the stream key to the viewers. Would you try to explain it to me? Maybe point me in the right direction. I browsed through your code but cannot find the actual parts that do the magic.

Thanks in regards.

vidoe.js: player going fullscreen causes scroll bar position to reset

When the video.js player is set to fullscreen mode, the scrollbar gets reset back to some default position. This can be annoying if there is a lot of chat happening while the player is fullscreen, as you will no longer be scrolled to the bottom.

No idea what causes this.

  • Figure out why this happens

P2P-Streaming?

Can you add a P2P-Streaming-Option?
Maby a checkbox for the administration, that the player use a P2P-Player.
The video.js supports P2P with Peer5 (https://www.peer5.com/).

With the free Plan, this great Tool can handel the traffic if you host the stream on a private pc.

If you can add a P2P-Player without Peer5 would be great :)

Connection refused when configured with SSL (self-signed)

Hello,
I have first tried this without SSL/HTTPS and it works good. It seems it should be able to support SSL too, so I am using a self-signed certificate/key files. But now every time I connect with RTMP to publish a stream, I get this in error.log:

[error] 19813#19813: recv() failed (111: Connection refused)

I am not able to connect. I have tried both OBS and ffmpeg to publish. The ffmpeg publish command that I use is:

ffmpeg -re -i "file.mp4" -c copy -f flv "rtmp://192.168.56.53/live/user1?key=KEY-VALUE"

the ffmpeg response is:

Input/output error

Nginx is listening on port 443 and all SSL settings are present. It is strange that connection is being refused by RTMP (port 1935), while SSL is configured for HTTP (port 443).. Do you know what is wrong? Also, I had to add some extra code to the config.php file, namely:

$_SERVER['HTTPS'] = 'off'; or 'on'. Otherwise it was undefined.

No RTMP key - No E-mail sended

Hello ,
After installation here are some things that do not work properly.

  • The RTMP keys do not generate
  • The sending of email is not done at the creation of the accounts

image

Reboot of nginx not possible

Hi
I can not get nginx to bind on port 80 if i stop and start it, nginx stopping and starting fine, and it binds to port 1935 for RTMP just fine.

(i have it on a VM so i got control points so i can just go back when trying)

Stream to over services too

Would it be possible to make it so users could also make it so there stream can be pushed to twitch/youtube etc like you can with the rtmp moduel and editing the nginx.conf file.

Thank you,
Liam

php 7.4

hey again.

since migrating to php-fpm 7.4 i'm getting the following error:

2019/10/20 10:31:07 [error] 32385#32385: *2522 FastCGI sent in stderr: "PHP message: PHP Notice:  Trying to access array offset on value of type bool in /opt/www/lib/user.class.php on line 458PHP message: PHP Notice:  Trying to access array offset on value of type bool in /opt/www/lib/user.class.php on line 446" while reading response header from upstream, client: 93.123.89.46, server: node.evilbox.io, request: "GET /watch/poster=%22//node.evilbox.io/img/channel/channel_xaxo.png%22 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "node.evilbox.io", referrer: "https://node.evilbox.io/watch/xaxo"

double checked about missing modules, but not that issue. could you be so kind and let me know, what could go wrong

Alternative to Flash for viewers

Is it possible to have an alternative to just Flash, for the live stream? Such as a fallback to FLV, MP4, or other video formats? It will delay the viewers but, Firefox no longer supports Flash.

Fix content grid view

Channel/video grid view is currently broken with the hover effects. Need to either correct those to work with a dynamic object, or replace them with something else.

On-live notification system

Implement system for notification that includes:

  • Email notifications when channels go live
  • Option to opt-in on all channels, or pick channels manually
  • This will likely be a new database entry for each channel. When someone subscribes, it will add their account to a list of notifications to be called through on_publish somehow
  • Find a way of preventing email spam if someone connects/disconnects rapidly. Only send one email every 5 min or so.

Update scripts

Is it possible to update your code.
We would love to try it.
Or we could pay you as a free-lancer?

Chat

hello
where is chat database.sql ?

how to add chat table ?

project media?

Any screenshots/videos/demos?
Kinda essential stuff, y know

Format not supported

Hi,
I have recently set up a streaming site by using this "guide". When i try to stream, most of the time the stream does not show up under live channels if it does show up i get an error "The media could not be loaded, either because the server or network failed or because the format is not supported". ATM everything is done on a local network on two machines. I hope you can help

Warning: pg_query_params(): Query failed:


Warning: pg_query_params(): Query failed: ERROR: relation "users" does not exist LINE 1: SELECT * FROM users WHERE email = $1 ^ in /var/www/html/lib/user.class.php on line 203

Fatal error: Uncaught Exception: Error in: class:user | function:emailcheck in /var/www/html/lib/user.class.php:207 Stack trace: #0 /var/www/html/lib/user.class.php(155): user->emailcheck('[email protected]') #1 /var/www/html/login.php(60): user->register('[email protected]', 'abc123', 'abc') #2 {main} thrown in /var/www/html/lib/user.class.php on line 207

Looking at the lines 203 - 207 of user.class.php


$sql = "SELECT * FROM $this->user_table WHERE email = $1";
		$result = pg_query_params($this->link, $sql, $params);
		if ($result === false) {
			$message = 'Error in: class:user | function:emailcheck';
			$code = 1;
			throw new Exception($message, $code);

Checking in postgres DB imported all SQL files to database and edited to suit configuration but error is still throwing.

This is at login.php on submit registration.

Some additional info from psql

                    List of relations
 Schema |      Name      | Type  |  Owner   |    Table    
--------+----------------+-------+----------+-------------
 public | pk_id          | index | postgres | chat
 public | plk_email      | index | postgres | users
 public | subscribers_pk | index | postgres | subscribers
(3 rows)

postgres=# \d users
                                          Table "public.users"
     Column      |     Type      | Collation | Nullable |                    Default                    
-----------------+---------------+-----------+----------+-----------------------------------------------
 email           | text          |           | not null | 
 password        | text          |           |          | 
 auth_code       | text          |           |          | 
 verified        | integer       |           |          | 
 channel_name    | text          |           |          | 
 channel_title   | text          |           |          | 
 stream_key      | character(10) |           |          | 
 display_name    | text          |           |          | 
 profile_img     | text          |           | not null | '/profiles/default/profile_default.png'::text
 api_key         | text          |           |          | 
 chat_jp_setting | text          |           |          | 
 is_admin        | boolean       |           |          | 
 offline_image   | text          |           | not null | '/profiles/default/offline_default.jpg'::text
Indexes:
    "plk_email" PRIMARY KEY, btree (email)
Referenced by:
    TABLE "subscribers" CONSTRAINT "host_account_fk" FOREIGN KEY (host_account) REFERENCES users(email) ON DELETE CASCADE

I am not used to Pgsl DB use so this might be some issue from setup.
Any advice or help would be great.

Thanks

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.