bytelang / kplayer-go

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

cannot access api #77

Closed blakeyi closed 1 year ago

blakeyi commented 1 year ago

image

request:curl "http://127.0.0.1:4156/resource/current" -H 'Content-Type: application/json; charset=utf-8' -d $'{}' the result as follow: {"InternalCode":12,"Message":"rpc error: code = Unimplemented desc = Method Not Allowed","Details":[]}

all api has same problem

the config as follow: "version": "2.0.0", "resource": { "lists": [ "./video/" ] }, "play": { "play_model": "loop", "cache_on": true, "rpc": { "on": true, "http_port": 4156, "grpc_port": 4157, "address": "0.0.0.0" } kplayer version: image

blakeyi commented 1 year ago

need use post

idiomer commented 1 year ago

try use -XGET