egress icon indicating copy to clipboard operation
egress copied to clipboard

get egress web stream out url wrong

Open shoyu666 opened this issue 2 years ago • 3 comments

Describe the bug

#add web out url StreamOutput$Builder.addUrls("rtmp://192.168.0.87:30010/live/170055109492937502000000001_170356690603222603000000001_c_1")

#get web out url info.getWeb().getStreamOutputs(0).getUrlsList().get(0) return "rtmp://192.168.0.87:30010/live/{170...c_1}"

#problem {170...c_1} is short ,not full

method=livekit.LivekitEgress$StreamOutput$Builder.addUrls location=AtExit
ts=2023-12-26 13:03:00; [cost=0.040878ms] result=@ArrayList[
    @Object[][
        @String[rtmp://192.168.0.87:30010/live/170055109492937502000000001_170356690603222603000000001_c_1],
    ],
    @Builder[
        bitField0_=@Integer[1],
        protocol_=@Integer[0],
        urls_=@LazyStringArrayList[
            @String[rtmp://192.168.0.87:30010/live/170055109492937502000000001_170356690603222603000000001_c_1],
        ],
        builderParent=null,
        meAsParent=null,
        isClean=@Boolean[false],
        unknownFieldsOrBuilder=@UnknownFieldSet[
            fields=@TreeMap[isEmpty=true;size=0],
            defaultInstance=@UnknownFieldSet[],
            PARSER=@Parser[com.google.protobuf.UnknownFieldSet$Parser@39f3b629],
        ],
    ],
    null,
]
for (LivekitEgress.EgressInfo info : egressInfo) {
               try {
                   if(info.getWeb().getStreamOutputs(0).getUrlsList().get(0).equals("rtmp://192.168.0.87:30010/live/{170...c_1}")){
                         System.out.println("");
                   }
               }catch (Exception e){
                   e.printStackTrace();
               }
            }

shoyu666 avatar Dec 26 '23 05:12 shoyu666

@shoyu666 if you list the Egress via LiveKit CLI, do you get the full URL? I'm not sure if this is just a Kotlin issue

davidzhao avatar Dec 26 '23 17:12 davidzhao

cli not return stream output. i use golang sdk same error,it looks like server error

shoyu666 avatar Aug 02 '24 12:08 shoyu666

i think need a config to decide the livekit.StreamInfo url is return parsedUrl or redactedUrl

wangchaodeyuzhou avatar Oct 14 '24 08:10 wangchaodeyuzhou