# How to play HLS streams with fmp4 container in chromecast CAFv3 receivers?

**URL:** <https://community.bitmovin.com/t/how-to-play-hls-streams-with-fmp4-container-in-chromecast-cafv3-receivers/2335>\
**Category:** Knowledge\
**Created:** [September 26, 2023, 6:59pm UTC](https://community.bitmovin.com/t/how-to-play-hls-streams-with-fmp4-container-in-chromecast-cafv3-receivers/2335 "2023-09-26T18:59:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel.davila](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/gabriel.davila/32/213_2.png) [@gabriel.davila](https://community.bitmovin.com/u/gabriel.davila)\
**Post date:** [September 26, 2023, 6:59pm UTC](https://community.bitmovin.com/t/how-to-play-hls-streams-with-fmp4-container-in-chromecast-cafv3-receivers/2335/1 "2023-09-26T18:59:13Z")

</div>

# Default CAFv3 behaviour

The current CAFv3 SDK uses the default Media Player Library (MPL ) to playback HLS streams. However, default MPL doesn’t support HLS playback for streams with fmp4 containers.

# Solution

[Google CAF team has recommended to use shaka instead of MPL for HLS playback](https://issuetracker.google.com/issues/284084871#comment6) as a solution. This can be achieved through the [useShakaForHls](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.CastReceiverOptions#useShakaForHls) property.

The default Bitmovin receiver follows the default CAFv3 behaviour so in order to use Shaka for HLS you should slightly update our public sample by setting the `useShakaForHls` property to `true`, for example:

```auto
let castReceiverOptions = new cast.framework.CastReceiverOptions();
castReceiverOptions.useShakaForHls = true;
this.context.start(castReceiverOptions);

```

Please, take into account that you may need to update the chromecast-caf-receiver version in the packages.json file in order to acess to the latest version, for instance

```auto
"chromecast-caf-receiver": "^6.0.10"

```

Note: Likely this tweak wont be needed anymore after H2 2024 as Shaka will become the default player for HLS as described here [HLS On Shaka Player Migration &nbsp;|&nbsp; Cast &nbsp;|&nbsp; Google for Developers](https://developers.google.com/cast/docs/web_receiver/shaka_migration#timeline)

---

<div class="post-metadata">

**Author:** ![ludovic.michaud](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/ludovic.michaud/32/811_2.png) [@ludovic.michaud](https://community.bitmovin.com/u/ludovic.michaud)\
**Post date:** [September 27, 2023, 8:22pm UTC](https://community.bitmovin.com/t/how-to-play-hls-streams-with-fmp4-container-in-chromecast-cafv3-receivers/2335/2 "2023-09-27T20:22:23Z")

</div>

really good to know !
