# WebRTC loading RTMP remote stream long time

**URL:** <https://community.wowza.com/t/webrtc-loading-rtmp-remote-stream-long-time/49399>\
**Category:** Wowza Streaming Engine\
**Created:** [August 10, 2017, 8:26am UTC](https://community.wowza.com/t/webrtc-loading-rtmp-remote-stream-long-time/49399 "2017-08-10T08:26:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivo\_Suchanek](https://avatars.discourse-cdn.com/v4/letter/i/f0a364/32.png) [@Ivo\_Suchanek](https://community.wowza.com/u/Ivo_Suchanek)\
**Post date:** [August 10, 2017, 8:26am UTC](https://community.wowza.com/t/webrtc-loading-rtmp-remote-stream-long-time/49399/1 "2017-08-10T08:26:49Z")

</div>

Hi,

I want to develop one-to-many streaming application with WebRTC Preview Add-on. I have RTMP incoming stream and if I tried load that stream into WebRTC play example, it takes very long time (about 10 minutes) when I can watch stream in element. But when I checked console output, I got log about remote stream immediately after making connection.

Can you help me for improve this time of loading? Thanks

---

<div class="post-metadata">

**Author:** ![Ivo\_Suchanek](https://avatars.discourse-cdn.com/v4/letter/i/f0a364/32.png) [@Ivo\_Suchanek](https://community.wowza.com/u/Ivo_Suchanek)\
**Post date:** [August 10, 2017, 10:00am UTC](https://community.wowza.com/t/webrtc-loading-rtmp-remote-stream-long-time/49399/2 "2017-08-10T10:00:39Z")

</div>

As appendix I can add logs from chrome://media-internals, where event PLAY was fired after 11 minutes:

00:00:00 00 event WEBMEDIAPLAYER\_CREATED

00:00:00 00 url {6054029e-d72d-4a25-b378-7000d25276e1}

00:11:32 701 event PLAY

---

<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:** [August 11, 2017, 7:52pm UTC](https://community.wowza.com/t/webrtc-loading-rtmp-remote-stream-long-time/49399/3 "2017-08-11T19:52:46Z")

</div>

+1 on this question. I’ve found that, in the context of an origin/edge deployment, I can adjust the timeout using IApplicationInstance.getWebRTCApplicationContext().setPlayTimeoutRepeater() at the edge application, but setting the value too low can cause the SDP returned to the client to be incomplete (missing video in most cases of error). Documentation on the behavior of this method would be helpful. It would also be helpful if there was a method or property to inspect to determine when complete SDP is available for a stream rather than waiting for a timeout.

---

<div class="post-metadata">

**Author:** ![Ivo\_Suchanek](https://avatars.discourse-cdn.com/v4/letter/i/f0a364/32.png) [@Ivo\_Suchanek](https://community.wowza.com/u/Ivo_Suchanek)\
**Post date:** [August 14, 2017, 11:27am UTC](https://community.wowza.com/t/webrtc-loading-rtmp-remote-stream-long-time/49399/4 "2017-08-14T11:27:19Z")

</div>

I hoped that will be some minor issue 🙂 Now, I don’t use any server-side Java API custom modules and classes. Maybe someone from Wowza team will answer us. Thanks for your post.
