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

packetization payload size should not greater than 1200 bytes #518

Open
huxinggg opened this issue Aug 13, 2024 · 0 comments
Open

packetization payload size should not greater than 1200 bytes #518

huxinggg opened this issue Aug 13, 2024 · 0 comments

Comments

@huxinggg
Copy link

packetization payload size should not greater than 1200 bytes

frameDuration := 20 * time.Millisecond
gotrack, _ := lksdk.NewLocalFileTrack("/Users/huxing/Desktop/work/jibengong/server/ai_server/test.ogg", lksdk.ReaderTrackWithFrameDuration(frameDuration),
lksdk.ReaderTrackWithOnWriteComplete(func() { fmt.Println("track finished") }))

s.roomClient.LocalParticipant.PublishTrack(gotrack, &lksdk.TrackPublicationOptions{
Name: "test",
})

Why does this problem occur? Is there no fragment in SDK when sending? In addition, if it is a data stream, how should I fragment and send it myself? The demo only gives this example, can you send the data stream?

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

1 participant