# MPEG-DASH and setPlayStart() setPlayDuration() not working

**URL:** <https://community.wowza.com/t/mpeg-dash-and-setplaystart-setplayduration-not-working/627>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [May 15, 2014, 4:36pm UTC](https://community.wowza.com/t/mpeg-dash-and-setplaystart-setplayduration-not-working/627 "2014-05-15T16:36:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [May 15, 2014, 4:36pm UTC](https://community.wowza.com/t/mpeg-dash-and-setplaystart-setplayduration-not-working/627/1 "2014-05-15T16:36:46Z")

</div>

I need to do some access controls over my video file. (Only a part of the file can be played publicly.)

I can do it on HLS/HDS streaming, but not in DASH streaming.

I tried the following ways:

- IMediaStreamNameAliasProvider2 -\> resolvePlayAlias -\> ihttpStreamerSession.setPlayDuration(60_1000L); ihttpStreamerSession.setPlayStart(2_60\*1000L); not working

- IMediaListProvider -\> resolveMediaList -\> MediaListRendition -\> rendition.setPlayDuration(60_1000L); rendition.setPlayStart(2_60\*1000L);

---

<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, 2014, 5:00pm UTC](https://community.wowza.com/t/mpeg-dash-and-setplaystart-setplayduration-not-working/627/2 "2014-05-19T17:00:13Z")

</div>

What version of Wowza are you using? MPEG-DASH is not listed [in the article](https://www.wowza.com/docs/how-to-specify-a-play-start-time-and-duration-for-http-streaming), however it is mentioned in the [4.0.3 release notes](https://www.wowza.com/docs/wowza-streaming-engine-4-0-3-release-notes).

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 22, 2014, 10:02pm UTC](https://community.wowza.com/t/mpeg-dash-and-setplaystart-setplayduration-not-working/627/3 "2014-05-22T22:02:39Z")

</div>

Make sure you start and duration values make sense, do not exceed the length of the video. The Dash info message says the video is 64042 seconds duration. I’m not sure your duration time makes sense. But you say it works correctly with HLS, HDS or Smooth playback?

Yes, please try it with the [latest development patch](https://www.wowza.com/docs/wowza-streaming-engine-software-updates), version 4.03.02

If this is still a problem for you with that version, I will try to replicate and forward to Engineering if necessary.

Thanks,

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 27, 2014, 2:04am UTC](https://community.wowza.com/t/mpeg-dash-and-setplaystart-setplayduration-not-working/627/4 "2014-05-27T02:04:44Z")

</div>

Amade,

Okay, thanks for updating to latest for your test. I will take the next steps and get back to you in this post or possibly open a ticket on your behalf at some point.

Thanks for the report,

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 29, 2014, 5:15pm UTC](https://community.wowza.com/t/mpeg-dash-and-setplaystart-setplayduration-not-working/627/5 "2014-05-29T17:15:44Z")

</div>

Amade,

What I have learned is that this is a player issue with at least our DASH test player. Server-side, this feature is supported but our test player does not fully support params, and it may be the same in other DASH players.

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 29, 2014, 5:33pm UTC](https://community.wowza.com/t/mpeg-dash-and-setplaystart-setplayduration-not-working/627/6 "2014-05-29T17:33:28Z")

</div>

Actually, I didn’t get the full story before writing previous. This will work in our DASH player using manifest\_mvlist.mpd insead of manifest.mpd, like this:

```auto
http://[wowza-address]:1935/vod/mp4:sample.mp4/manifest_mvlist.mpd?wowzaplaystart=30000&wowzaplayduration=40000

```

Richard

---

<div class="post-metadata">

**Author:** ![Amade\_Kovacs](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Amade\_Kovacs](https://community.wowza.com/u/Amade_Kovacs)\
**Post date:** [May 20, 2014, 10:29am UTC](https://community.wowza.com/t/mpeg-dash-and-setplaystart-setplayduration-not-working/627/7 "2014-05-20T10:29:39Z")

</div>

Thank you for your respond Richard.

First I used wrong wowza version (4.0.0). I’ve upgraded to the latest stable (4.0.3) but it’s not works. May I try with the latest development version?

To be honest, I see that the API call has effect, but I cannot play the resultant stream.

I’ve tried these players:

- [http://dashif.org/reference/players/javascript/1.1.2/index.html](http://dashif.org/reference/players/javascript/1.1.2/index.html)

- [https://www.wowza.com/testplayers](https://www.wowza.com/testplayers)

- The only thing I see on client side the player newer starts to download the chunks from wowza if duration and start time are setted.

---

<div class="post-metadata">

**Author:** ![Amade\_Kovacs](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Amade\_Kovacs](https://community.wowza.com/u/Amade_Kovacs)\
**Post date:** [May 26, 2014, 1:26pm UTC](https://community.wowza.com/t/mpeg-dash-and-setplaystart-setplayduration-not-working/627/8 "2014-05-26T13:26:55Z")

</div>

I’ve tried with the latest development build (4.03.02 ). Problem remains same.

Yes, i’t works correctly with HLS, HDS and Smooth streaming, only DASH affected.

The sample.mp4 is the original untouched sample.mp4 which came with wowza. It’s duration is 596459ms (9min 56s 459ms).

The start and duration values setted via API are 1min (60000ms -\> 60\*1000L), so they are in the length of the video.

Regards,

Amade
