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

get egress web stream out url wrong #748

Open
shoyu666 opened this issue Dec 26, 2023 · 2 comments
Open

get egress web stream out url wrong #748

shoyu666 opened this issue Dec 26, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@shoyu666
Copy link

shoyu666 commented Dec 26, 2023

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 shoyu666 added the bug Something isn't working label Dec 26, 2023
@davidzhao
Copy link
Member

@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

@shoyu666
Copy link
Author

shoyu666 commented Aug 2, 2024

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

@davidzhao davidzhao transferred this issue from livekit/server-sdk-kotlin Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants