Skip to content

Conversation

@tbence94
Copy link

Summary

Added keyframe events to janus videoroom plugin. These events can be used to monitor video resolution changes in the stream.

NOTE: only supports VP8 and VP9 codecs for now... Streams with other codecs will not emit these events.

Example

{
  videoroom: 'keyframe',
  room: 4473808368667781,
  id: 4302698742002272,
  mindex: 1,
  mid: '1',
  resolution: { width: 640, height: 360 }
}

@tbence94 tbence94 requested a review from tgabi333 June 22, 2022 08:28
@tbence94 tbence94 self-assigned this Jun 22, 2022
json_object_set_new(event, "mid", json_string(ps->mid));
json_object_set_new(event, "resolution", janus_vp8_get_keyframe_resolution(payload, plen));

janus_videoroom_notify_participants(participant, event, TRUE);

Choose a reason for hiding this comment

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

i'm not sure if we want to update every participant in a room about a keyframe, what if we only send it to the publisher

@tbence94 tbence94 mentioned this pull request Jul 5, 2022
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