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?