Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh1 committed Jul 7, 2023
1 parent 90cd186 commit ecdc392
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/controllers/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ app.get("/:roomId/user/:participantId", authorizer({}), async (req, res) => {
res.json({
id: participant.identity,
state: participant.state,
joinedAt: participant.joinedAt,
joinedAt: participant.joinedAt * 1000,
name: participant.name,
permission: participant.permission,
isPublisher: participant.isPublisher,
Expand Down
26 changes: 10 additions & 16 deletions packages/api/src/schema/api-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1055,11 +1055,15 @@ components:
example: d32ae9e6-c459-4931-9898-e86e2f5e7e16
joinUrl:
type: string
description: Joining URL
description:
Joining URL - use this for Livepeer's default meeting app (see the
multiparticipant streaming guide for more info).
example: https://meet.livepeer.chat
token:
type: string
description: Joining JWT
description:
Joining JWT - this can be used if you have a custom meeting app (see
the multiparticipant streaming guide for more info).
example: token
get-room-user-response:
type: object
Expand All @@ -1070,8 +1074,8 @@ components:
example: d32ae9e6-c459-4931-9898-e86e2f5e7e16
joinedAt:
type: integer
description: The time the user joined
example: 1687771565
description: Timestamp (in milliseconds) at which the user joined
example: 1687517025261
name:
type: string
description: The display name of the user
Expand All @@ -1080,6 +1084,7 @@ components:
type: boolean
description: Whether a user is allowed to publish audio/video tracks
example: true
default: true
room-egress-payload:
type: object
required:
Expand All @@ -1100,6 +1105,7 @@ components:
type: boolean
description: Whether a user is allowed to publish audio/video tracks
example: true
default: true
transcode-payload:
additionalProperties: false
required:
Expand Down Expand Up @@ -1806,18 +1812,6 @@ components:
egressId:
type: string
description: internal ID for egress output
events:
type: array
items:
type: object
additionalProperties: false
properties:
eventName:
type: string
example: event name
timestamp:
type: integer
example: 1587667174725
participants:
type: object
additionalProperties:
Expand Down
13 changes: 13 additions & 0 deletions packages/api/src/schema/db-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,19 @@ components:
type: number
description: Timestamp (in milliseconds) at which the room was deleted
example: 1587667174725
events:
type: array
items:
type: object
additionalProperties: false
properties:
eventName:
type: string
example: event name
timestamp:
type: integer
description: Event timestamp (in milliseconds)
example: 1587667174725
participants:
type: object
additionalProperties:
Expand Down

0 comments on commit ecdc392

Please sign in to comment.