# Video player do infinite loop trying to download the init.mp4

**URL:** <https://community.bitmovin.com/t/video-player-do-infinite-loop-trying-to-download-the-init-mp4/2603>\
**Category:** Support\
**Tags:** bitmovin-player, bitmovin\
**Created:** [January 30, 2024, 1:35pm UTC](https://community.bitmovin.com/t/video-player-do-infinite-loop-trying-to-download-the-init-mp4/2603 "2024-01-30T13:35:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreinashr](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@andreinashr](https://community.bitmovin.com/u/andreinashr)\
**Post date:** [January 30, 2024, 1:35pm UTC](https://community.bitmovin.com/t/video-player-do-infinite-loop-trying-to-download-the-init-mp4/2603/1 "2024-01-30T13:35:40Z")

</div>

Hi, I am evaluating to use bitmovin player but I am struggled trying to configure a video encoding with AES 128. I am creating a muxing like this:

```auto
var videoMuxing = new Fmp4Muxing
{
   Streams = [new() { StreamId = videoStream.Id }],
   SegmentLength = segmentLength
};

videoMuxing = await bitmovinApi.Encoding.Encodings.Muxings.Fmp4.CreateAsync(encodingId, videoMuxing);

byte[] iv = new byte[16]; // 16-byte initialization vector
new Random().NextBytes(iv); // randomize the IV

var key = GenerateHexadecimalString(32);

var aesDrm = await bitmovinApi.Encoding.Encodings.Muxings.Fmp4.Drm.Aes.CreateAsync(encodingId, videoMuxing.Id, new AesEncryptionDrm
{
   Key = key,
   Iv = BitConverter.ToString(iv).Replace("-", string.Empty),
   Method = AesEncryptionMethod.AES_128,
   Outputs = [videoEncodingOutput],
   KeyFileUri = $"encryption-{alias}.key"
});

```

but when I set the HLS manifest in the player I get an infinite loop trying to download the init.mp4 file. The request does not fail though.  
Have you ever seen this error before? as soon as I disable AES DRM, everything works fine.

Thanks!

---

<div class="post-metadata">

**Author:** ![albertobitmovin](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/albertobitmovin/32/256_2.png) [@albertobitmovin](https://community.bitmovin.com/u/albertobitmovin)\
**Post date:** [February 7, 2024, 8:41am UTC](https://community.bitmovin.com/t/video-player-do-infinite-loop-trying-to-download-the-init-mp4/2603/2 "2024-02-07T08:41:34Z")

</div>

Hi @andreinashr , could you please share your encoding ID and Manifest URL? We will attempt to reproduce the playback issue you described and inspect your encoding configuration.

Also, on what specific device/OS/browser/version(s) are you testing and observing the loop during playback?

---

<div class="post-metadata">

**Author:** ![etcharranmartin](https://avatars.discourse-cdn.com/v4/letter/e/5f8ce5/32.png) [@etcharranmartin](https://community.bitmovin.com/u/etcharranmartin)\
**Post date:** [February 12, 2024, 9:41am UTC](https://community.bitmovin.com/t/video-player-do-infinite-loop-trying-to-download-the-init-mp4/2603/3 "2024-02-12T09:41:47Z")

</div>

It happens to me as well, Im on Windows, google chrome. Isnt any extra config needed for the player?

my manifest is hosted in azure with a sas token policy, but since i add the sas through the following code, it isnt related. Besides, if i remove the aes bit it plays fine

```
    preprocessHttpRequest: function (type, request) {
      if (request.url.includes("")) {
        request.url += sas;
        console.log(request.url);
      }
    }

```
