# Subtitle tracks attribute loss

**URL:** <https://community.bitmovin.com/t/subtitle-tracks-attribute-loss/2136>\
**Category:** Support\
**Tags:** android, bitmovin\
**Created:** [July 18, 2023, 7:50am UTC](https://community.bitmovin.com/t/subtitle-tracks-attribute-loss/2136 "2023-07-18T07:50:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![edward.lee](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@edward.lee](https://community.bitmovin.com/u/edward.lee)\
**Post date:** [July 18, 2023, 7:50am UTC](https://community.bitmovin.com/t/subtitle-tracks-attribute-loss/2136/1 "2023-07-18T07:50:36Z")

</div>

First, my platform is android and my version of bitmovin is 3.37.1

I try to set subtitle tracks from api data ,like

```auto
  this.sourceItem.subtitleTracks = response.subtitles.map {
                            val subtitleTrack =
                                SubtitleTrack(
                                    url = it.subtitleUrl,
                                    label = it.label,
                                    language = it.srcLang
                                )

                            subtitleTrack
                        }

```

but when I try to get availableSubtitleTracks from player source then attribute in subtitle track was loss

` player.source?.availableSubtitleTracks`

there is the data difference for subtitle tracks

![截圖 2023-07-18 下午2.40.10](https://us1.discourse-cdn.com/flex015/uploads/bitmovin/original/1X/70fc715b1ceef77bb02185c2c9ab0c84b03e4e28.png)

 ![截圖 2023-07-18 下午3.44.45](https://us1.discourse-cdn.com/flex015/uploads/bitmovin/original/1X/905b08aa95a2937ecf2666d977bd4eca9e40e57a.png)

any idea for helping me get subtitle same as set

---

<div class="post-metadata">

**Author:** ![matamegger](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/matamegger/32/566_2.png) [@matamegger](https://community.bitmovin.com/u/matamegger)\
**Post date:** [July 19, 2023, 1:58pm UTC](https://community.bitmovin.com/t/subtitle-tracks-attribute-loss/2136/2 "2023-07-19T13:58:12Z")

</div>

Hi @edward.lee,  
thanks for reaching out! The “loss” of the `label` is a known behaviour. We already track this internally and can update you here once we release a fix.

As a workaround, in the mean time, I would suggest you to try using a `SubtitleLabeler`, which is part of the `LabelingConfig` in the `SourceConfig`. (`SourceConfig.labelingConfig.subtitleLabeler`)  
The `SubtitleLabeler` allows you to relabel all the subtitles of your `Source`.

---

<div class="post-metadata">

**Author:** ![edward.lee](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@edward.lee](https://community.bitmovin.com/u/edward.lee)\
**Post date:** [July 20, 2023, 6:43am UTC](https://community.bitmovin.com/t/subtitle-tracks-attribute-loss/2136/3 "2023-07-20T06:43:08Z")

</div>

Hi @matamegger ,

thanks for your response. I learn label setting can replace with labelingConfig

but except label attribute, I prob need other attributes like isDefault、language … etc

so it seems not provider other attributes settings currently?

---

<div class="post-metadata">

**Author:** ![matamegger](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/matamegger/32/566_2.png) [@matamegger](https://community.bitmovin.com/u/matamegger)\
**Post date:** [July 20, 2023, 8:12am UTC](https://community.bitmovin.com/t/subtitle-tracks-attribute-loss/2136/4 "2023-07-20T08:12:57Z")

</div>

In general the provided `SubtitleTrack` should be considered as a configuration. We try to apply the properties as possible, but there are other factors that might influence the resulting `SubtitleTrack`.

You are right, there is no further way to change the other properties directly.

I will take your findings to the ticket, so that we can have closer look.  
Could you provide me some more information on your setup please. Are there already subtitle included in the base stream (`SourceConfig.url`) and what type of stream is it.  
Ideally, you could share the stream URLs with us here or via `support@bitmovin.com`

---

<div class="post-metadata">

**Author:** ![edward.lee](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@edward.lee](https://community.bitmovin.com/u/edward.lee)\
**Post date:** [July 20, 2023, 9:33am UTC](https://community.bitmovin.com/t/subtitle-tracks-attribute-loss/2136/5 "2023-07-20T09:33:23Z")

</div>

Yeah, we already set subtitle included in the base stream before.

The reason of we need attribute related settings because of our new develop function

which allow user upload subtitle files extra for video-stream support muti-language dynamic.

although I want to provide our stream urls but our service not support global country.

But currently we use other way to resolve problem temporary.

hope those info is useful. thanks u are help.

---

<div class="post-metadata">

**Author:** ![matamegger](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/matamegger/32/566_2.png) [@matamegger](https://community.bitmovin.com/u/matamegger)\
**Post date:** [July 20, 2023, 10:45am UTC](https://community.bitmovin.com/t/subtitle-tracks-attribute-loss/2136/6 "2023-07-20T10:45:16Z")

</div>

Thanks! We will come back once we have updates.

---

<div class="post-metadata">

**Author:** ![lucas.gruenberger](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/lucas.gruenberger/32/863_2.png) [@lucas.gruenberger](https://community.bitmovin.com/u/lucas.gruenberger)\
**Post date:** [November 28, 2023, 7:48am UTC](https://community.bitmovin.com/t/subtitle-tracks-attribute-loss/2136/7 "2023-11-28T07:48:15Z")

</div>

Hey @edward.lee ,

The behavior you observed was fixed with [3.52.0](https://developer.bitmovin.com/playback/docs/release-notes-android#3520)

---

<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:** [March 4, 2024, 1:53pm UTC](https://community.bitmovin.com/t/subtitle-tracks-attribute-loss/2136/9 "2024-03-04T13:53:47Z")

</div>

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