# WebRTC Playback "Pulsing" Issue

**URL:** <https://community.wowza.com/t/webrtc-playback-pulsing-issue/50539>\
**Category:** Wowza Streaming Engine\
**Created:** [January 10, 2018, 6:24pm UTC](https://community.wowza.com/t/webrtc-playback-pulsing-issue/50539 "2018-01-10T18:24:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cody\_Uptain2](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Cody\_Uptain2](https://community.wowza.com/u/Cody_Uptain2)\
**Post date:** [January 10, 2018, 6:24pm UTC](https://community.wowza.com/t/webrtc-playback-pulsing-issue/50539/1 "2018-01-10T18:24:50Z")

</div>

When encoding via WebRTC and playing back with WebRTC every other second the video “throbs” or “pulses”. The quality is fine but it seems to blur in and out in a pulsing fashion. I have tested this with several different cameras and computers and browsers. It doesn’t matter if the codec is VP8/H264 it is happening with both.

If I encode from a software encoder (OBS) the WebRTC playback is fine. Issue only happens with WebRTC encoding.

What could this be?

---

<div class="post-metadata">

**Author:** ![Jay\_Charles1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jay_charles1/32/514_2.png) [@Jay\_Charles1](https://community.wowza.com/u/Jay_Charles1)\
**Post date:** [January 10, 2018, 7:12pm UTC](https://community.wowza.com/t/webrtc-playback-pulsing-issue/50539/2 "2018-01-10T19:12:54Z")

</div>

That’s a result of wowza sending intraframe requests to the webrtc publishing client, which seems to happen once per second by default. You can change the keyframe interval via WebRTCSession.setPublishKeyFrameInterval()

Also, increasing your publish bitrate can smooth out that pulsing effect a bit

---

<div class="post-metadata">

**Author:** ![Cody\_Uptain2](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Cody\_Uptain2](https://community.wowza.com/u/Cody_Uptain2)\
**Post date:** [January 10, 2018, 8:48pm UTC](https://community.wowza.com/t/webrtc-playback-pulsing-issue/50539/3 "2018-01-10T20:48:27Z")

</div>

@Jay Charles How do I go about setting the keyframe interval? Is that a Java method you’re referencing? Do I have to write a custom module for that? Thank you so much.

---

<div class="post-metadata">

**Author:** ![Jay\_Charles1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jay_charles1/32/514_2.png) [@Jay\_Charles1](https://community.wowza.com/u/Jay_Charles1)\
**Post date:** [January 12, 2018, 1:52pm UTC](https://community.wowza.com/t/webrtc-playback-pulsing-issue/50539/4 "2018-01-12T13:52:18Z")

</div>

I’ve been doing this through a java module in the onRTPSessionCreate method:

public void onRTPSessionCreate(RTPSession rtpSession) {

if(rtpSession.isWebRTC()) rtpSession.getWebRTCSession().setPublishKeyFrameInterval(int);

}

I don’t know if there’s a property in Application.xml that sets this for all webrtc sessions. Perhaps someone from Wowza support will chime in on that one.

---

<div class="post-metadata">

**Author:** ![Cody\_Uptain2](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Cody\_Uptain2](https://community.wowza.com/u/Cody_Uptain2)\
**Post date:** [January 12, 2018, 8:22pm UTC](https://community.wowza.com/t/webrtc-playback-pulsing-issue/50539/5 "2018-01-12T20:22:30Z")

</div>

I am so thankful for your comment. I created a module that changes the keyframe to every 90 frames and not only is the pulsing effect significantly reduced, but I also no longer receive green artifacts. You are awesome, you saved me so much time.

---

<div class="post-metadata">

**Author:** ![Jay\_Charles1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jay_charles1/32/514_2.png) [@Jay\_Charles1](https://community.wowza.com/u/Jay_Charles1)\
**Post date:** [January 14, 2018, 3:17pm UTC](https://community.wowza.com/t/webrtc-playback-pulsing-issue/50539/6 "2018-01-14T15:17:07Z")

</div>

Glad to have helped.
