# Changing audio track on webOS is freezing the stream

**URL:** <https://community.bitmovin.com/t/changing-audio-track-on-webos-is-freezing-the-stream/2512>\
**Category:** Support\
**Tags:** web, lg\
**Created:** [December 12, 2023, 3:03pm UTC](https://community.bitmovin.com/t/changing-audio-track-on-webos-is-freezing-the-stream/2512 "2023-12-12T15:03:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marc.schenk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/marc.schenk/32/544_2.png) [@marc.schenk](https://community.bitmovin.com/u/marc.schenk)\
**Post date:** [December 12, 2023, 3:03pm UTC](https://community.bitmovin.com/t/changing-audio-track-on-webos-is-freezing-the-stream/2512/1 "2023-12-12T15:03:24Z")

</div>

Hi there

I’m having a problem on **webOS** where the stream freezes whenever I switch to an audio track with a different codec.

Given are the three audio tracks below

- Switching from `trackA` to `trackB` → works fine
- Changing from `trackB` to `trackA` → works fine
- Change from `trackA` to `trackC` → Stream freezes
- Moving from `trackC` to `trackA` → Stream freezes

Setting the audio track is done with the `setAudio()` method. webOS module is added to the player. The same implementation works fine on Tizen.

Has anyone experienced the same behaviour and has a solution for me?

Best,  
Marc

* * *

```auto
const trackA = {
  id: "audio/mp4-1",
  label: "de",
  lang: "de"
  role: undefined
  getQualities: () => [{
    bitrate: 12800,
    codec: "mp4a.40.2",
    id: "2",
    label: "128kbps"
  }]
}

const trackB = {
  id: "audio/mp4-2",
  label: "en",
  lang: "en"
  role: undefined
  getQualities: () => [{
    bitrate: 12800,
    codec: "mp4a.40.2",
    id: "4",
    label: "128kbps"
  }]
}

const trackC = {
  id: "audio/mp4-3",
  label: "de",
  lang: "de"
  role: undefined
  getQualities: () => [{
    bitrate: 256000,
    codec: "ec-3",
    id: "3",
    label: "256kbps"
  }]
}

```

---

<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:** [December 18, 2023, 3:58pm UTC](https://community.bitmovin.com/t/changing-audio-track-on-webos-is-freezing-the-stream/2512/2 "2023-12-18T15:58:10Z")

</div>

Hi,  
Thanks for reaching out to us.  
Switching codecs from AAC to E-AC3 or the other way around is generally not recommended : it forces the device to purge the decoder buffer and reinstantiate a new decoder, which might be problematic, especially on low performance devices such as low end smart TVs. It is generally recommended to avoid such switches, included on higher end devices.

This is not a player issue, most likely, but rather a device limitation.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/bitmovin/original/1X/1ab86334145095b0af9c5b924fa3ae6d920b6482.png) [@system](https://community.bitmovin.com/u/system)\
**Post date:** [February 22, 2024, 9:51am UTC](https://community.bitmovin.com/t/changing-audio-track-on-webos-is-freezing-the-stream/2512/3 "2024-02-22T09:51:46Z")

</div>

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.
