# RTSP/RTP improvements including video on demand support (patch15 or greater)

**URL:** https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96
**Category:** Wowza Streaming Engine
**Created:** [May 3, 2010, 10:41am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96 "2010-05-03T10:41:53Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [July 27, 2010, 5:22pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/21 "2010-07-27T17:22:25Z")

</div>

There is no need to install that particular patch. It is best to install the most recent version (2.1.2). Then read these two tutorials:

[http://community.wowza.com/t/-/64](http://community.wowza.com/t/-/64)

[http://community.wowza.com/t/-/97](http://community.wowza.com/t/-/97)

Charlie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [February 22, 2011, 5:31am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/22 "2011-02-22T05:31:06Z")

</div>

Try this:

String rangeStr = req.getHeader(“range”);

Charlie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [February 22, 2011, 9:02am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/23 "2011-02-22T09:02:07Z")

</div>

Redownload patch7 and re-apply. I made a mistake in the fix. It is fixed now.

Charlie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [February 23, 2011, 1:04pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/24 "2011-02-23T13:04:44Z")

</div>

the right method is to get the RTPContext from the vhost and call:

RTPContext.shutdownRTPSession(RTPSession rtpSession);

Charlie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [February 24, 2011, 4:43am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/25 "2011-02-24T04:43:36Z")

</div>

I don’t know of any other way to do this. We don’t have as much control over RTSP/RTP as we do Flash. There is also is not very much consistency between the players. So all we can do is drop the connection.

Charlie

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 5, 2010, 12:09pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/26 "2010-05-05T12:09:16Z")

</div>

You can re-stream an rtsp stream:

[http://community.wowza.com/t/-/53](http://community.wowza.com/t/-/53)

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 5, 2010, 12:54pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/27 "2010-05-05T12:54:16Z")

</div>

But it’s probably not what you want. I think the best solution is just to move the file from the RTSP server to Wowza content folder

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 6, 2010, 12:05pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/28 "2010-05-06T12:05:42Z")

</div>

Try IRTSPActionNotify

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 8, 2010, 6:38pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/29 "2010-05-08T18:38:12Z")

</div>

You can use Java [file.io](http://file.io) API in a Wowza module to delete a file.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 8, 2010, 8:13pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/30 "2010-05-08T20:13:09Z")

</div>

Yes, absolutely. That’s they way to do it. And HTTProvider and ServerListener.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 9, 2010, 3:23pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/31 "2010-05-09T15:23:08Z")

</div>

Test with VLC first, see if that works.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 13, 2010, 4:58pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/32 "2010-05-13T16:58:48Z")

</div>

Check /conf/server12/Application.xml /RTP /Authentication /PlayMethod

Change from “digest” to “none”

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 17, 2010, 11:30am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/33 "2010-05-17T11:30:27Z")

</div>

If you are not able to play the sample either, you might have a configuration problem. Make sure Application.xml /RTP /Authentication /PlayMethod is set to “none”

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 19, 2010, 4:25pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/34 "2010-05-19T16:25:12Z")

</div>

Did you use this version Extremists.m4v?:

[https://www.wowza.com/downloads/content/Extremists.m4v](https://www.wowza.com/downloads/content/Extremists.m4v)

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [June 18, 2010, 12:55am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/35 "2010-06-18T00:55:25Z")

</div>

Try this:

```auto
public void onRTPSessionDestroy(RTPSession rtpSession) {
	rtpSession.getRTSPStream().getStream().getElapsedTime();
}

```

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [June 18, 2010, 1:41am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/36 "2010-06-18T01:41:03Z")

</div>

There is some RTP/RTSP info in this HTTProvider example:

[http://community.wowza.com/t/-/84](http://community.wowza.com/t/-/84)

Not exactly what you are looking for, but maybe it will help figure out how.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [June 25, 2010, 12:24pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/37 "2010-06-25T12:24:01Z")

</div>

No, It doesn’t work with H.264/AAC content. It will work with vp6 or sorenson spark encoding in flv files.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [February 21, 2011, 10:42pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/38 "2011-02-21T22:42:02Z")

</div>

In Flash, the playStart, playLen, and playReset correspond to Nestream.play command arguments:

netstream.play(streamName, start, length, reset)

```auto
netstream.play("example.flv",0,-1,true)

```

These parameters don’t exist in IRTSPActionNotify onPlay.

Yes, I think rtpSession.getServerIP() returning clientIP may be a bug.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [February 21, 2011, 11:51pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/39 "2011-02-21T23:51:37Z")

</div>

Charlie sent this patch:

[https://www.wowza.com/downloads/WowzaMediaServer-2-2-3/WowzaMediaServer2.2.3-patch7.zip](https://www.wowza.com/downloads/WowzaMediaServer-2-2-3/WowzaMediaServer2.2.3-patch7.zip)

It should fix the rtpSession.getServerIp() bug.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [February 23, 2011, 4:55pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/40 "2011-02-23T16:55:26Z")

</div>

There is not a way to send a message the client in RTSP streaming.

I think rtpSession.shutdown is the right option.

seek bar still moving a particular player is a player issue.

Richard

[Previous page](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96.md?page=1)

[Next page](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96.md?page=3)
