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

希望能通过一个config.json配置多个不同推送内容,推送到对应地不同频道 #138

Open
jonahzheng opened this issue Dec 27, 2023 · 1 comment

Comments

@jonahzheng
Copy link

jonahzheng commented Dec 27, 2023

1、目前好像只能通过配置多个config.json,运行多个kplayer进程来实现,类似
./kplayer play start -c config1.json
./kplayer play start -c config2.json
./kplayer play start -c config3.json
2、能否通过一个config.json配置多个不同推送内容,推送到对应地不同直播频道上,利用go的多线程实现

{
  "version": "2.0.0",
  "data": [
    {
      "resource": {
        "lists": [
          "/video/example_1.mp4",
          "/video/example_2.mp4"
        ]
      },
      "output": {
        "lists": [
          {
            "path": "rtmp://127.0.0.1:1935/push_1"
          }
        ]
      }
    },
    {
      "resource": {
        "lists": [
          "/video/example_3.mp4",
          "/video/example_4.mp4"
        ]
      },
      "output": {
        "lists": [
          {
            "path": "rtmp://127.0.0.1:1935/push_2"
          }
        ]
      }
    }
  ]
}

@murazi
Copy link

murazi commented Jan 29, 2024

./kplayer play start -c config1.json
./kplayer play start -c config2.json
./kplayer play start -c config3.json

是面向不同平台推流的解决方案吗?

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

No branches or pull requests

2 participants