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

Add SIP API support #63

Merged
merged 9 commits into from
Oct 3, 2024
Merged

Add SIP API support #63

merged 9 commits into from
Oct 3, 2024

Conversation

biglittlebigben
Copy link
Contributor

@biglittlebigben biglittlebigben commented Oct 1, 2024

This also makes the VideoGrant constructor call within auth_header calls explicit for clarity.

Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg, and thanks for fixing the video grants

def auth_header(
video_grant,
sip_grant: nil
)
headers = {}
t = ::LiveKit::AccessToken.new(api_key: @api_key, api_secret: @api_secret)
t.add_grant(video_grant)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we handle passing in a nil video grant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does work right now by constructing a default video grant but I can handle the case explicitly, yes

@biglittlebigben biglittlebigben merged commit c44cd2d into main Oct 3, 2024
7 checks passed
@biglittlebigben biglittlebigben deleted the benjamin/SIP branch October 3, 2024 00:06
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

Successfully merging this pull request may close these issues.

3 participants