# Push RTMP stream immediately after starting streams in cloud

**URL:** <https://community.wowza.com/t/push-rtmp-stream-immediately-after-starting-streams-in-cloud/49633>\
**Category:** Wowza Developer Dojo\
**Created:** [September 6, 2017, 8:54pm UTC](https://community.wowza.com/t/push-rtmp-stream-immediately-after-starting-streams-in-cloud/49633 "2017-09-06T20:54:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dustin\_Hilgaertner](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@Dustin\_Hilgaertner](https://community.wowza.com/u/Dustin_Hilgaertner)\
**Post date:** [September 6, 2017, 8:54pm UTC](https://community.wowza.com/t/push-rtmp-stream-immediately-after-starting-streams-in-cloud/49633/1 "2017-09-06T20:54:16Z")

</div>

I’m working with the Wowza cloud API. My workflow needs to have the wowza streams started and start pushing video then, just after the streams become avilable. I’m calling to:

[https://api.cloud.wowza.com/api/v1/live\_streams/1234abcd/start/](https://api.cloud.wowza.com/api/v1/live_streams/1234abcd/start/)

Then checking that the stream is started by waiting to the “started” response from:

[https://api.cloud.wowza.com/api/v1/live\_streams/1234abcd/state/](https://api.cloud.wowza.com/api/v1/live_streams/1234abcd/state/)

However, if I push the rtmp after getting the latest response, it happens that sometimes the RTMP session can’t be established. It works if I retry after a few more seconds but it looks like the API calls doesn’t allow to synchronize the flow based on the streams state. Need a way to synchronize the video pushing after the stream startup.
