bytelang / kplayer-go

A live streaming tool more suitable for non-graphical servers
https://kplayer.net
Apache License 2.0
744 stars 69 forks source link

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

Open jonahzheng opened 8 months ago

jonahzheng commented 8 months ago

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 commented 7 months ago

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

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