# HLS playback stops in AVPlayerLayer

**URL:** <https://community.wowza.com/t/hls-playback-stops-in-avplayerlayer/52799>\
**Category:** Wowza Video (Formerly Streaming Cloud)\
**Tags:** cdn\
**Created:** [February 5, 2019, 10:33am UTC](https://community.wowza.com/t/hls-playback-stops-in-avplayerlayer/52799 "2019-02-05T10:33:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toshitaka\_Nakagawa](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@Toshitaka\_Nakagawa](https://community.wowza.com/u/Toshitaka_Nakagawa)\
**Post date:** [February 5, 2019, 10:33am UTC](https://community.wowza.com/t/hls-playback-stops-in-avplayerlayer/52799/1 "2019-02-05T10:33:24Z")

</div>

I trying to play **Streaming Cloud’s** HLS live stream on the iOS device with AVPlayerLayer (or AVPlayerViewController).

The live streaming works fine in first 40 sec, but it stops with these errors.

```auto
AVPlayerItemPlaybackStalled
 isPlaybackLikelyToKeepUp: false
 errors: 
  CoreMediaErrorDomain(-12312): Media Entry URL not match previous playlist for MEDIA-SEQUENCE 1: u8jsec51/00000000/media_1.ts vs doaa9e4v/00000000/media_1.ts
 ready to play.

```

Then I use Apple’s mediastreamvalidator to investigate this problem, and I got same errors.

```auto
--------------------------------------------------------------------------------
MUST fix issues
--------------------------------------------------------------------------------

Error: Media Entry URL not match previous playlist for MEDIA-SEQUENCE 86: mynam1vf/00000000/media_86.ts vs gkjqzjlh/00000000/media_86.ts
--> Detail: Line: gkjqzjlh/00000000/media_86.ts
--> Source: ../../624105/cbbbcd17_1_4128/chunklist.m3u8

--> Detail: Line: gkjqzjlh/00000000/media_86.ts
--> Source: ../../624105/cbbbcd17_1_4128/chunklist.m3u8

--> Detail: Line: gkjqzjlh/00000000/media_86.ts
--> Source: ../../624105/cbbbcd17_1_4128/chunklist.m3u8

```

```auto
Error: Old codec format (RFC 4281) subelements found. Use format specified by RFC 6381
--> Detail: Subelements: 77.31
--> Source: https://wowzaprod105-i.akamaihd.net/hls/live/624105/cbbbcd17/playlist.m3u8
--> Compare: ../../624105/cbbbcd17_1_4128/chunklist.m3u8

--> Detail: Subelements: 77.31
--> Source: https://wowzaprod105-i.akamaihd.net/hls/live/624105/cbbbcd17/playlist.m3u8
--> Compare: ../../624105/cbbbcd17_1_4128/chunklist.m3u8

--> Detail: Subelements: 77.31
--> Source: https://wowzaprod105-i.akamaihd.net/hls/live/624105/cbbbcd17/playlist.m3u8
--> Compare: ../../624105/cbbbcd17_1_4128/chunklist.m3u8

```

After this, I found these Q&A in this forum. It might looks same as I encontered, but these solutions are for **Streaming Engine**.

[http://community.wowza.com/community/questions/45306/hls-live-stream-freezes-on-ios-devices.html](http://community.wowza.com/community/questions/45306/hls-live-stream-freezes-on-ios-devices.html)

[http://community.wowza.com/community/questions/7780/live-hls-stop-after-few-seconds.html](http://community.wowza.com/community/questions/7780/live-hls-stop-after-few-seconds.html)

[http://community.wowza.com/community/questions/4579/live-hls-broadcaststops-playback-after-40-seconds.html](http://community.wowza.com/community/questions/4579/live-hls-broadcaststops-playback-after-40-seconds.html)

I want to ask these solution works in Streaming Clouds, and how can I do that.

---

<div class="post-metadata">

**Author:** ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://community.wowza.com/u/Alex_C)\
**Post date:** [February 16, 2019, 12:55am UTC](https://community.wowza.com/t/hls-playback-stops-in-avplayerlayer/52799/2 "2019-02-16T00:55:18Z")

</div>

Hello @Toshitaka Nakagawa,

Are you seeing any issues with the source stream or stream target where it loses the connection to Wowza Cloud and then reconnects?

What is your source stream for Wowza Cloud stream?

Please make sure that you are following our recommendation for encoding the stream:

[https://www.wowza.com/docs/how-to-encode-source-video-for-wowza-streaming-cloud](https://www.wowza.com/docs/how-to-encode-source-video-for-wowza-streaming-cloud)

Regards,

Wowza Support

Alex C
