forked from livekit/server-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API changes for v2, including protocol 12 (livekit#392)
* API changes for v2, including protocol 12 * Tracks -> TrackPublications CreateRoom -> NewRoom * remove funk * consolidate cleanup * fix sidReady panic
- Loading branch information
Showing
14 changed files
with
317 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package lksdk | ||
|
||
type dataPublishOptions struct { | ||
Reliable bool | ||
DestinationIdentities []string | ||
Topic string | ||
} | ||
|
||
type DataReceiveParams struct { | ||
Sender *RemoteParticipant | ||
SenderIdentity string | ||
Topic string | ||
} | ||
|
||
type DataPublishOption func(*dataPublishOptions) | ||
|
||
func WithDataPublishTopic(topic string) DataPublishOption { | ||
return func(o *dataPublishOptions) { | ||
o.Topic = topic | ||
} | ||
} | ||
|
||
func WithDataPublishReliable(reliable bool) DataPublishOption { | ||
return func(o *dataPublishOptions) { | ||
o.Reliable = reliable | ||
} | ||
} | ||
|
||
func WithDataPublishDestination(identities []string) DataPublishOption { | ||
return func(o *dataPublishOptions) { | ||
o.DestinationIdentities = identities | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.