# Set "Publish KeyFrameInterval" for Web RTC

**URL:** <https://community.wowza.com/t/set-publish-keyframeinterval-for-web-rtc/92803>\
**Category:** Streaming Tips\
**Tags:** webrtc\
**Created:** [February 7, 2021, 5:39am UTC](https://community.wowza.com/t/set-publish-keyframeinterval-for-web-rtc/92803 "2021-02-07T05:39:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikolaos\_Tsilikas](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@Nikolaos\_Tsilikas](https://community.wowza.com/u/Nikolaos_Tsilikas)\
**Post date:** [February 7, 2021, 5:39am UTC](https://community.wowza.com/t/set-publish-keyframeinterval-for-web-rtc/92803/1 "2021-02-07T05:39:45Z")

</div>

I read somewhere that Wowza sends intraframe requests to the WebRTC publishing client.  
By default, this happens once per second, so the KeyFrameInterval is set to 1 second.

By using:

> WebRTCSession.setPublishKeyFrameInterval()

we can change the value of the keyframe interval.

Do you know if there is a property in Application.xml, or an alternative method to change this?

---

<div class="post-metadata">

**Author:** ![video\_streaming](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@video\_streaming](https://community.wowza.com/u/video_streaming)\
**Post date:** [February 9, 2021, 4:51pm UTC](https://community.wowza.com/t/set-publish-keyframeinterval-for-web-rtc/92803/2 "2021-02-09T16:51:51Z")

</div>

If you search the forums for that property, this post pops up:

[http://community.wowza.com/t/webrtc-playback-pulsing-issue/50539](http://community.wowza.com/t/webrtc-playback-pulsing-issue/50539)

We do not have a way at the moment within the application.xml to edit that property. But, the post I shared offers a way to do that with a little of custom code. We do have a bug request in for this property to be edited so I apologize for any inconvenience.

---

<div class="post-metadata">

**Author:** ![Nikolaos\_Tsilikas](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@Nikolaos\_Tsilikas](https://community.wowza.com/u/Nikolaos_Tsilikas)\
**Post date:** [February 14, 2021, 2:41pm UTC](https://community.wowza.com/t/set-publish-keyframeinterval-for-web-rtc/92803/3 "2021-02-14T14:41:22Z")

</div>

I adapted the code given in the post and created a java file, then compiled it and transformed it to .jar.  
I added the module in wowza and the results are great, especially with a low frame rate and a low bitrate.  
Thank you very much!
