Skip to content

packetization payload size should not greater than 1200 bytes #518

@huxinggg

Description

@huxinggg

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions