Nginx流媒体服务器配置:使用 Nginx-rtmp模块配置多人流媒体

我和我的团队正在进行一个项目,我们正在使用 nginx-rtmp 和 Django 构建一个实时视频流平台。到目前为止,我们已经使用了一个 docker 映像,并验证了当一个用户正在共享内容时它正在工作。我有两个问题

如何配置多个用户使用单个流 ID 发布流,就像在视频会议(如 google meet)?

如何配置多个用户在平台上同时流式传输?我已经阅读了很长一段时间,并遇到了这个:

        # Many publishers, many subscribers
        # no checks, no recording
        application videochat {
            live on;
            # The following notifications receive all
            # the session variables as well as
            # particular call arguments in HTTP POST
            # request
            # Make HTTP request & use HTTP retcode
            # to decide whether to allow publishing
            # from this connection or not
            on_publish http://localhost:8080/publish;
            # Same with playing
            on_play http://localhost:8080/play;
            # Publish/play end (repeats on disconnect)
            on_done http://localhost:8080/done;
            # All above mentioned notifications receive
            # standard connect() arguments as well as
            # play/publish ones. If any arguments are sent
            # with GET-style syntax to play & publish
            # these are also included.
            # Example URL:
            #   rtmp://localhost/myapp/mystream?a=b&c=d
            # record 10 video keyframes (no audio) every 2 minutes
            record keyframes;
            record_path /tmp/vc;
            record_max_frames 10;
            record_interval 2m;
            # Async notify about an flv recorded
            on_record_done http://localhost:8080/record_done;
        }

我真的很困惑它是如何工作的,以及如何处理 on_publish 和其他请求。我还想知道是否有多个工作人员确保多个人能够流式传输,并确保在一个流 ID 内和跨平台实现多发布者流?

本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处

(96)
Linux监控io:如何监控 IO队列深度(deep. io)
上一篇
Linux长什么样:CSS是什么样的语言(is css a markup language)
下一篇

相关推荐

发表评论

登录 后才能评论

评论列表(33条)