# 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:** 4

<div class="post-metadata">

**Author:** ![Vijay\_J](https://avatars.discourse-cdn.com/v4/letter/v/d78d45/32.png) [@Vijay\_J](https://community.wowza.com/u/Vijay_J)\
**Post date:** [June 16, 2010, 3:06pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/61 "2010-06-16T15:06:33Z")

</div>

Hi,

Is there a way to get the ‘time running’ information for a rtsp stream similar to the getTimeRunning() function for HTTPStreams? I see a getDuration() but no getTimeRunning().

Vijay

---

<div class="post-metadata">

**Author:** ![Vijay\_J](https://avatars.discourse-cdn.com/v4/letter/v/d78d45/32.png) [@Vijay\_J](https://community.wowza.com/u/Vijay_J)\
**Post date:** [June 17, 2010, 5:28pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/62 "2010-06-17T17:28:08Z")

</div>

Thanks for the reply Richard. Unfortunately, that results in a null pointer exception.

```auto
ERROR server comment - invoke(onRTPSessionDestroy): java.lang.NullPointerException: com.xxx.wms.module.xxx.onRTPSessionDestroy(xxx.java:1449)
java.lang.NullPointerException
	at com.xxx.wms.module.xxx.onRTPSessionDestroy(xxx.java:1449)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at com.wowza.wms.module.ModuleFunction.invoke(Unknown Source)
	at com.wowza.wms.module.ModuleFunctions.invokeSpecial(Unknown Source)
	at com.wowza.wms.module.ModuleFunctions.onRTPSessionDestroy(Unknown Source)
	at com.wowza.wms.rtp.model.RTPSessions.notifySessionDestroy(Unknown Source)
	at com.wowza.wms.rtsp.RTSPRequestAdapter.closeSession(Unknown Source)
	at com.wowza.wms.server.ServerHandler.sessionClosed(Unknown Source)
	at com.wowza.wms.server.ServerHandlerThreaded.sessionClosed(Unknown Source)
	at org.apache.mina.common.support.AbstractIoFilterChain$2.sessionClosed(Unknown Source)
	at org.apache.mina.common.support.AbstractIoFilterChain.callNextSessionClosed(Unknown Source)
	at org.apache.mina.common.support.AbstractIoFilterChain.access$600(Unknown Source)
	at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.sessionClosed(Unknown Source)
	at org.apache.mina.filter.codec.ProtocolCodecFilter.sessionClosed(Unknown Source)
	at org.apache.mina.common.support.AbstractIoFilterChain.callNextSessionClosed(Unknown Source)
	at org.apache.mina.common.support.AbstractIoFilterChain.access$600(Unknown Source)
	at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.sessionClosed(Unknown Source)
	at org.apache.mina.filter.executor.ExecutorFilter.processEvent(Unknown Source)
	at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
	at java.lang.Thread.run(Thread.java:613)

```

Tried it with both a Live and VoD RTSP request.

What I’d like to use it for is a custom wowza status page using the HTTPProvider class. What’s interesting is that when I loop through the RTP sessions for a particular instance in the code snippet below, I don’t get a null pointer exception. Instead the duration is returned as ‘com.wowza.util.ElapsedTimer@a07a6f’:

```auto
if (appInstance.getRTPSessionCount() > 0)
{
	List<RTPSession> rtpSessions;
	rtpSessions = appInstance.getRTPSessions();
	
	Iterator<RTPSession> rtpSessionIterator = rtpSessions.iterator();
											
	while (rtpSessionIterator.hasNext())
	{
		RTPSession currSession = (RTPSession)rtpSessionIterator.next();
		...
		...
		body.append( " <tr>");
		body.append( " <td align=\"left\" valign=\"middle\">Connection Duration</td>");
		body.append( " <td align=\"left\" valign=\"middle\">"+currSession.getRTSPStream().getStream().getElapsedTime()+"</td>");
		body.append( " </tr>");
	}
											
}
	

```

---

<div class="post-metadata">

**Author:** ![HAROLD\_WILLIAMS](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@HAROLD\_WILLIAMS](https://community.wowza.com/u/HAROLD_WILLIAMS)\
**Post date:** [May 19, 2010, 11:11am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/63 "2010-05-19T11:11:31Z")

</div>

I was glad to see the new support for rtsp. I opened a new Wowza EC2 instance and tried to view Extremists.m4v in Quicktime using the link provided in an earlier post. After a few seconds I could hear audio but no video. I only saw the Quicktime symbol with the animated dotted line underneath. This went on for at least 30min. Finally, I tried to view the file on Longtail Video’s setup wizard and it showed up beautifully.

I did manage to change the Application.xml file as was suggested earlier, but authentication was the least of my worries.

I’ll keep looking foward to the new opportunities that abound from this kind of server. Thanks for all your support

---

<div class="post-metadata">

**Author:** ![HAROLD\_WILLIAMS](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@HAROLD\_WILLIAMS](https://community.wowza.com/u/HAROLD_WILLIAMS)\
**Post date:** [May 19, 2010, 1:42pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/64 "2010-05-19T13:42:14Z")

</div>

Extremists.m4v file worked fine with Quicktime v7.6.6 player from Wowza EC2 instance using rtsp protocol. I had to adjust the Quicktime v7.6.6 preference settings to Safe mode in the Advanced tab. Thanks Charlie.

---

<div class="post-metadata">

**Author:** ![Piet\_Mollen](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Piet\_Mollen](https://community.wowza.com/u/Piet_Mollen)\
**Post date:** [May 4, 2010, 9:49am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/65 "2010-05-04T09:49:27Z")

</div>

Very nice work guys. The example is working great indeed with QTplayer.

What are the requirements for the files I want to play?

H264 encoded i think, but some files give a ‘moov atom is missing’ error or something like that.

Only mp4/m4v/f4v supported atm?

Anyway thanks a lot Wowza team!

---

<div class="post-metadata">

**Author:** ![Piet\_Mollen](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Piet\_Mollen](https://community.wowza.com/u/Piet_Mollen)\
**Post date:** [May 4, 2010, 10:42am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/66 "2010-05-04T10:42:38Z")

</div>

Non H264 encoded files only play audio it seems, using both VLC and QTplayer.

---

<div class="post-metadata">

**Author:** ![miguel\_barros](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@miguel\_barros](https://community.wowza.com/u/miguel_barros)\
**Post date:** [May 5, 2010, 12:01pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/67 "2010-05-05T12:01:54Z")

</div>

Hi everyone,

With this new patch it’s possible to play a vod located/stored in another rtsp server, using wowza like a “proxy”?

Something like this:

RTSP Server -\> WOWZA -\> RTSP CLIENT

Thank you.

Miguel

---

<div class="post-metadata">

**Author:** ![SUNNIE\_DSOUZA](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@SUNNIE\_DSOUZA](https://community.wowza.com/u/SUNNIE_DSOUZA)\
**Post date:** [May 15, 2010, 1:36am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/68 "2010-05-15T01:36:57Z")

</div>

Hi,

I have been trying since long, for playing RTSP with WOWZA on Sony Ericsson. But it doesnot happen. Where as I tried playing RTSP with Darwin on Sony Ericsson it plays perfectly fine.

I even tried this new VoD RTSP with WOWZA. this too resulted with the same negative response.

This RTSP VoD plays fine with Nokia, Android and other devices.

Anything concerns on this WOWZA guys. 😕

---

<div class="post-metadata">

**Author:** ![SUNNIE\_DSOUZA](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@SUNNIE\_DSOUZA](https://community.wowza.com/u/SUNNIE_DSOUZA)\
**Post date:** [May 16, 2010, 12:08am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/69 "2010-05-16T00:08:18Z")

</div>

Hi,

I have used SE ELM (J10i), W995i, W705i and T650i model.

And all these SE models support H264/AAC codec.

But, none of these devices are able to any RTSP stream (both live and VoD) from WOWZA. But plays good with Darwin.

I even tried the Sample VoD link inside the HTML (rtsp://184.72.239.149/vod/mp4:BigBuckBunny\_175k.mov), it doesnt play.

---

<div class="post-metadata">

**Author:** ![SUNNIE\_DSOUZA](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@SUNNIE\_DSOUZA](https://community.wowza.com/u/SUNNIE_DSOUZA)\
**Post date:** [May 21, 2010, 1:21am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/70 "2010-05-21T01:21:02Z")

</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

Richard,

I have the configuration accordingly, whatever u specified above. With this configuration, I am able to able rtsp on Nokia and Samsung devices. Its only Sony Ericsson devices that are not able to play the rtsp stream from WOWZA. Even the new VOD RTSP that u published on your server, also not played on Sony Ericsson devices. ⭕eek:

---

<div class="post-metadata">

**Author:** ![Jiri\_Tyr](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@Jiri\_Tyr](https://community.wowza.com/u/Jiri_Tyr)\
**Post date:** [May 7, 2010, 7:50pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/71 "2010-05-07T19:50:20Z")

</div>

> [https://www.wowza.com/mobile.html](https://www.wowza.com/mobile.html)
> 
> seems to not work on my G1 (rooted, latest CyanoGen mod 5.07, Firmware version 2.1-update1, kernel version 2.6.33.3, build number EPE54B).
> 
> it just gives “Sorry, this video cannot be played.” message ☹

I have tested it with exactly the same configuration (G1, CM5.0.7) and it works well. Try this:

1. Create a HTML page with a link to the stream:

Wowza mobile

1. Put the html page somewhere on the web and open int with your Android browser

2. Click on the link and select “Movies” from the list of available players

**Question for Wowza team:** How did you encode the video file that it plays so well on Android? I would like to create a live video stream for Android devices using the VLC but so far without any success. Do you have some magic command for VLC which creates Android-compatible stream? Live stream on iPhone ([https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts](https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts)) works well but not for Android. If I use this setting on Android, the stream stops after few seconds and I must restart the phone to get sound working again. Please help.

---

<div class="post-metadata">

**Author:** ![lol\_lolol](https://avatars.discourse-cdn.com/v4/letter/l/b38774/32.png) [@lol\_lolol](https://community.wowza.com/u/lol_lolol)\
**Post date:** [May 4, 2010, 4:46am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/72 "2010-05-04T04:46:58Z")

</div>

> Does [http://community.wowza.com/t/-/96](http://community.wowza.com/t/-/96) is corrupted ?

No sorry works fine 😉

---

<div class="post-metadata">

**Author:** ![Paul\_Robinson](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@Paul\_Robinson](https://community.wowza.com/u/Paul_Robinson)\
**Post date:** [May 4, 2010, 7:33pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/73 "2010-05-04T19:33:21Z")

</div>

Hangs for me on OS X as well. On a Blackberry 8900 video playback is fine, but audio seems garbled.

---

<div class="post-metadata">

**Author:** ![Vladimir\_Erm](https://avatars.discourse-cdn.com/v4/letter/v/439d5e/32.png) [@Vladimir\_Erm](https://community.wowza.com/u/Vladimir_Erm)\
**Post date:** [May 8, 2010, 9:28am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/74 "2010-05-08T09:28:07Z")

</div>

Hello! Can Wowza launch the programm (function) which removes file with that name in the desired directory, if the file name in video on demand is incorrect. Thank you!

---

<div class="post-metadata">

**Author:** ![Vladimir\_Erm](https://avatars.discourse-cdn.com/v4/letter/v/439d5e/32.png) [@Vladimir\_Erm](https://community.wowza.com/u/Vladimir_Erm)\
**Post date:** [May 8, 2010, 10:55am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/75 "2010-05-08T10:55:42Z")

</div>

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

Can I use Java [file.io](http://file.io) API in a Wowza module to move a file?

---

<div class="post-metadata">

**Author:** ![Gal\_Betser](https://avatars.discourse-cdn.com/v4/letter/g/bbe5ce/32.png) [@Gal\_Betser](https://community.wowza.com/u/Gal_Betser)\
**Post date:** [May 10, 2010, 2:56am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/76 "2010-05-10T02:56:43Z")

</div>

Hi,

VLC play the mp3 files with no problems.

The problem is when am trying to play the mp3 files with cell phones.

Thanks,

Gal

---

<div class="post-metadata">

**Author:** ![Gal\_Betser](https://avatars.discourse-cdn.com/v4/letter/g/bbe5ce/32.png) [@Gal\_Betser](https://community.wowza.com/u/Gal_Betser)\
**Post date:** [May 10, 2010, 10:36pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/77 "2010-05-10T22:36:02Z")

</div>

Hi,

The link I am using is:

rtsp://82.80.218.166:1935/vod/mp3:1.mp3

The cell phone that I tried:

Nokia 5800 - symbian s60 v.5

Nokia E71

Thanks,

Gal

---

<div class="post-metadata">

**Author:** ![Gal\_Betser](https://avatars.discourse-cdn.com/v4/letter/g/bbe5ce/32.png) [@Gal\_Betser](https://community.wowza.com/u/Gal_Betser)\
**Post date:** [May 11, 2010, 5:45am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/78 "2010-05-11T05:45:53Z")

</div>

Hi,

Yes - I can play this link with the Nokia 5800 - symbian s60 v.5.

But I acn not play my mp3 link - that I am playing with the VLC.

Did you try to play my link with your client ?

Thanks,

Gal

---

<div class="post-metadata">

**Author:** ![Gal\_Betser](https://avatars.discourse-cdn.com/v4/letter/g/bbe5ce/32.png) [@Gal\_Betser](https://community.wowza.com/u/Gal_Betser)\
**Post date:** [May 13, 2010, 8:44am UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/79 "2010-05-13T08:44:43Z")

</div>

Hi,

I am using 2 streaming servers:

1. Wowza with the latest patch.

2. Darwin streaming server (DSS).

I have an aac 3gp file -betser1.3gp encoded and hinted by Helix encoder

I have nokia 5800 cellphone with real player as the rtsp player:

The DSS was working fine - can stream the 3gp aac file to my cellphone.

The link:

rtsp://199.203.56.100/server12/betser1.3gp

The Wowza streaming server failed to stream the aac 3gp file.

rtsp://199.203.56.100/server12/betser1.3gp

Can you tell me what is the problem with my Wowza streaming server.

Do I need a special encoding or hinting ?

Thanks,

Gal Betser

CastUp Israel

---

<div class="post-metadata">

**Author:** ![Marko\_Nikolovski](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@Marko\_Nikolovski](https://community.wowza.com/u/Marko_Nikolovski)\
**Post date:** [June 1, 2010, 3:21pm UTC](https://community.wowza.com/t/rtsp-rtp-improvements-including-video-on-demand-support-patch15-or-greater/96/80 "2010-06-01T15:21:29Z")

</div>

Hello,

I want to stream RTP/UDP for VoD applications. I followed the steps for creating Application.xml file and I upgraded to the last patch available. I also added the IP address of my Wowza server in the following three lines:

192.168.200.3 192.168.200.3

192.168.200.3

The server is not behind NAT, but it still streams RTP/TCP.

Any suggestions?

Thank you!

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

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