# How to disable "?dvr" handling for some application

**URL:** <https://community.wowza.com/t/how-to-disable-dvr-handling-for-some-application/34225>\
**Category:** Wowza Streaming Engine\
**Created:** [June 4, 2012, 1:22am UTC](https://community.wowza.com/t/how-to-disable-dvr-handling-for-some-application/34225 "2012-06-04T01:22:16Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [June 3, 2012, 9:58pm UTC](https://community.wowza.com/t/how-to-disable-dvr-handling-for-some-application/34225/21 "2012-06-03T21:58:21Z")

</div>

Remove dvrstreamingpacketizer from LiveStreamPacketizers.

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [June 4, 2012, 6:37pm UTC](https://community.wowza.com/t/how-to-disable-dvr-handling-for-some-application/34225/22 "2012-06-04T18:37:56Z")

</div>

Falcon-M,

Richard has posted the working solution, which is to involve Javascript to form the redirected URI, instead of doing a redirect in a Wowza Module.

I am just curious how you did this, could you post the code that performs the working redirect?

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [June 4, 2012, 8:42pm UTC](https://community.wowza.com/t/how-to-disable-dvr-handling-for-some-application/34225/23 "2012-06-04T20:42:58Z")

</div>

Falcon-M,

Nevermind, I see you posted it in Post #9. Have you seen onDvrStreamManagerSessionCreate() in the API docs?

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [June 5, 2012, 7:22pm UTC](https://community.wowza.com/t/how-to-disable-dvr-handling-for-some-application/34225/24 "2012-06-05T19:22:42Z")

</div>

Falcon-9,

Or maybe you could just alter your code from post #9:

```auto
if (queryString = "?1234") queryString = "?DVR";
httpSession.redirectSession(newUri.toString() + queryString);

```

When you want to start a DVR session on the destination app just open a stream with “?1234” as the query string.

---

<div class="post-metadata">

**Author:** ![Scott\_Kellicker](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Scott\_Kellicker](https://community.wowza.com/u/Scott_Kellicker)\
**Post date:** [June 4, 2012, 2:24pm UTC](https://community.wowza.com/t/how-to-disable-dvr-handling-for-some-application/34225/25 "2012-06-04T14:24:13Z")

</div>

> As I wrote in my first post, I have an application with custom module, which provide the redirect to another vhost/application.
> 
> This is done with
> 
> ```auto
> public void onHTTPSessionCreate(IHTTPStreamerSession httpSession) {
> ...
> String queryString = (httpSession.getQueryStr() == null || httpSession.getQueryStr().isEmpty()) ? "" : "?" + httpSession.getQueryStr();
> httpSession.redirectSession(newUri.toString() + queryString);
> }
> 
> ```
> 
> If requested URI contains “?dvr”, it does not invoke the method onHTTPSessionCreate from the my module.
> 
> Yes, I don’t want to use nDVR with this application even when request URI contains “?dvr” querystring. I want invoke httpSession.redirectSession to the new URI with the same querystring.

So, you’re saying you want to use ?dvr param but have it do HTTP live streaming if dvr is not enabled?

If that’s the case, that’s not how it works.

Scott

---

<div class="post-metadata">

**Author:** ![Scott\_Kellicker](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Scott\_Kellicker](https://community.wowza.com/u/Scott_Kellicker)\
**Post date:** [June 4, 2012, 7:14pm UTC](https://community.wowza.com/t/how-to-disable-dvr-handling-for-some-application/34225/26 "2012-06-04T19:14:16Z")

</div>

I don’t think we completely understand what you are trying to do.

I understand you want to get the onHTTPSessionCreate when the http session is created. This should work for any type of HTTP Streaming you have enabled (whether vod, live or DVR HTTP streaming).

The ?dvr tells the HTTP Streamer to use dvr instead of the live stream for HTTP streaming.

Are you trying to use nDVR? I get the impression you want to use ?dvr in your URL but not use the nDVR module. Is that correct?

The behavior should be:

If you are using nDVR and it is configured properly, when you send the URL with ?dvr, this will load nDVR and initiate an HTTPSTreamerSession (onHTTPSessionCreate).

If you do not have nDVR turned on, and you send an ?dvr, this will fail to load DVR and no HTTP Session is created. No onHTTPSessionCreate is called.

Scott

---

<div class="post-metadata">

**Author:** ![Scott\_Kellicker](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Scott\_Kellicker](https://community.wowza.com/u/Scott_Kellicker)\
**Post date:** [June 5, 2012, 6:32am UTC](https://community.wowza.com/t/how-to-disable-dvr-handling-for-some-application/34225/27 "2012-06-05T06:32:46Z")

</div>

> Yes, I want to pass ?dvr through and not use the nDVR, but in this application only.
> 
> Is it possible to have the DVR/Property which tells nDVR: do not process any query as a DVR-request in this application, pass it to HTTPSTreamerSession (onHTTPSessionCreate) untouched?

Sorry, that is not possible today.

[Previous page](https://community.wowza.com/t/how-to-disable-dvr-handling-for-some-application/34225.md?page=1)
