Closed blakeyi closed 1 year ago
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:
need use post
try use -XGET
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: