# RTMP url port changes switching to next video

**URL:** <https://community.wowza.com/t/rtmp-url-port-changes-switching-to-next-video/94701>\
**Category:** Wowza Streaming Engine\
**Created:** [March 16, 2022, 11:01am UTC](https://community.wowza.com/t/rtmp-url-port-changes-switching-to-next-video/94701 "2022-03-16T11:01:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhuvanesh\_jay](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@bhuvanesh\_jay](https://community.wowza.com/u/bhuvanesh_jay)\
**Post date:** [March 16, 2022, 11:01am UTC](https://community.wowza.com/t/rtmp-url-port-changes-switching-to-next-video/94701/1 "2022-03-16T11:01:28Z")

</div>

Hi.  
I am pushing the video to wowza streaming engine by rtmp based on the time. Switching to next video, player stops playing. We need to play manually. But I need to play continuously. I found that, switching to next video, rtmp last 5 digit port number changing in the incoming streams. Please do needful. TIA

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [March 16, 2022, 7:26pm UTC](https://community.wowza.com/t/rtmp-url-port-changes-switching-to-next-video/94701/2 "2022-03-16T19:26:26Z")

</div>

How do you push the stream currently ?. Have you seen [this](https://www.wowza.com/docs/how-to-use-ipublishingprovider-api-to-publish-server-side-live-streams).? Is this what you are trying to build ?

---

<div class="post-metadata">

**Author:** ![bhuvanesh\_jay](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@bhuvanesh\_jay](https://community.wowza.com/u/bhuvanesh_jay)\
**Post date:** [March 17, 2022, 1:58am UTC](https://community.wowza.com/t/rtmp-url-port-changes-switching-to-next-video/94701/3 "2022-03-17T01:58:05Z")

</div>

I am pushing the video to wowza streaming engine by rtmp method in node js platform with the help of ffmpeg package

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [March 18, 2022, 4:12pm UTC](https://community.wowza.com/t/rtmp-url-port-changes-switching-to-next-video/94701/4 "2022-03-18T16:12:33Z")

</div>

So that is where the issue is. You should use server side publishing instead using wowza api for uninterrupted stream. With ffmpeg you can only do preplanned playlists. If you try to stop a stream and start another it will be treated as a breakage in source stream by wowza. [This post](http://community.wowza.com/t/my-player-stops-playing-while-switching-one-video-to-another/94712) I believe addresses your issue as well.
