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

如何打开web页面? #71

Closed
OrdinaryYZH opened this issue May 24, 2020 · 8 comments
Closed

如何打开web页面? #71

OrdinaryYZH opened this issue May 24, 2020 · 8 comments

Comments

@OrdinaryYZH
Copy link

RT

@hr3lxphr6j
Copy link
Owner

-c config.yml配置文件按需该,格式参考wiki

@OrdinaryYZH
Copy link
Author

看过了,真看不出哪一个是配置。。

# config.yml
rpc: 
  enable: false           # 是否开启API
  port: 127.0.0.1:8080    # 监听地址
  token: ""               # token
  tls:                    # tls配置
    enable: false
    cert_file: ""
    key_file: ""
debug: false              # debug模式
interval: 15              # 直播间状态查询间隔时间(秒)
out_put_path: ./          # 输出文件路径
live_rooms:               # 直播间url
    - https://www.panda.tv/10300
    - https://live.bilibili.com/1010
当然,上述配置文件的所有参数你也可以通过手工的方式来指定,CLI参数如下

      --help                 显示帮助信息
      --version              显示版本信息
      --debug                使用debug级log输出
  -t, --interval=20          直播见间状态查询间隔,默认20秒
  -o, --output="./"          录像输出文件路径
  -i, --input=INPUT ...      直播间地址,可以指定多个
  -c, --config=CONFIG        指定配置文件的路径
      --enable-rpc           开启 Http Rest API
      --rpc-addr=":8080"     Http Rest API 监听地址
      --rpc-token=RPC-TOKEN  Http Rest API 访问验证token
      --enable-rpc-tls       使用 TLS 保护Http Rest API
      --rpc-tls-cert-file=RPC-TLS-CERT-FILE
                             TLS 证书路径
      --rpc-tls-key-file=RPC-TLS-KEY-FILE
                             TLS 私钥路径

试过一些看上去好像是,但是试了无效的配置。。

请告诉我哪一个是吧 :-)

@hr3lxphr6j
Copy link
Owner

rpc.enable=True

@OrdinaryYZH
Copy link
Author

rpc.enable=True

试过了,没效果 0.0

控制台:

D:\Downloads\bililive-windows-amd64>bililive-windows-amd64.exe -c config.yml
time="2020-05-24 11:15:23" level=info msg="BiliLive-go Version: 0.5.2 Link Start"
time="2020-05-24 11:15:23" level=debug msg="{AppName:BiliLive-go AppVersion:0.5.2 BuildTime:2020-05-20_01:24:21 GitHash:64946304118ab375fa6ad57ab0b90b2bd0d59c7a Pid:72904 Platform:windows/amd64 GoVersion:go1.14}"
time="2020-05-24 11:15:23" level=debug msg="&{RPC:{Enable:true Bind:127.0.0.1:5555} Debug:true Interval:15 OutPutPath:tmp Feature:{UseNativeFlvParser:false} LiveRooms:[https://www.huya.com/war3anji] file:config.yml}"
time="2020-05-24 11:15:23" level=info msg="Server start at 127.0.0.1:5555"
time="2020-05-24 11:15:23" level=info msg="Live Start" host="WAR3安吉" room="点播-私人订制你的魔兽争霸3"
time="2020-05-24 11:15:23" level=info msg="Record Start" host="WAR3安吉" room="点播-私人订制你的魔兽争霸3"

配置:

rpc:
  enable: true
  bind: 127.0.0.1:5555
debug: true
interval: 15
out_put_path: tmp
feature:
  use_native_flv_parser: false
live_rooms:
  - https://www.huya.com/war3anji

@hr3lxphr6j
Copy link
Owner

浏览器http://127.0.0.1:5555....

@OrdinaryYZH
Copy link
Author

浏览器http://127.0.0.1:5555....

我傻了

@edmund-zhao
Copy link

没有办法通过公网IP访问面板

@hr3lxphr6j
Copy link
Owner

没有办法通过公网IP访问面板

Do It Yourself

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

3 participants