Facing NETWORK_COULD_NOT_LOAD_SUBTITLE with subtitle implementation in Bitmovin Player

Hi Team,
I would like to discuss one issue I am facing with kepler bitmovin player. When I try to add subtitle/close captions to the player externally . Player does not enable them. The “enable: false” keys also show false and it shows below error.

**{“code”: 1402, “data”: undefined, “message”: “1402/NETWORK_COULD_NOT_LOAD_SUBTITLE”, “name”: “NETWORK_COULD_NOT_LOAD_SUBTITLE”, “timestamp”: 1760198244507, “type”: “warning”}
**
Enabled list [{“enabled”: false, “id”: “sub1”, “isSideloaded”: true, “kind”: “subtitle”, “label”: “English”, “lang”: “en”, “url”: “myurl.srt_xumo.vtt”}, {“enabled”: false, “id”: “CC1”, “kind”: “captions”, “label”: “Closed Captions”, “lang”: “Closed Captions”}]

​You can find below code how I am trying to enable it and what object I have passed to the player:

​const track: SubtitleTrack = {

id: ‘sub1’,

lang: ‘en’,

label: ‘English’,

kind: ‘subtitle’,

url: vttOrTtml.url,

isSideloaded: true,

};

try {

console.log(‘[subtitle] subtitle object :’, player.current.subtitles);

player.current.subtitles.add(track)

const list = player.current.subtitles.list();

console.log(‘[subtitle] listof tracks :’, list);

player.current.subtitles.enable(track.id);

} catch (err) {

console.error(‘[subtitle] Failed to add or enable:’, err);

}

const toggleSubtitles = async () => {

if (!player.current) return;

const list = player.current.subtitles.list();

console.log(“list for subtitles”, player.current.subtitles.list())

const enabled = list.find((t) => t.enabled);

if (enabled) {

player.current.subtitles.disable(enabled.id);

console.log(‘[subtitle] Disabled:’, enabled.label);

} else if (list.length) {

player.current.subtitles.enable(list[0].id);

console.log(‘[subtitle] Enabled:’, list[0].label);

console.log(“[subtitle] Enabled list”, player.current.subtitles.list())

}

};

Hi @Ajay_Mehta
We’ll look into your issue, however, the data you have provided here is not sufficient. Also, I have moved this conversation to Vega Bug Reports from QnA.
Please fill out the bug report (below) so that we can address your issue better.

:warning: Before you continue


Before submitting a bug report, please review our troubleshooting documentation at Troubleshoot Issues | Vega Troubleshooting

If you still want to file a bug report, please make sure to fill in all the details below and provide the necessary information.

NOTE: PLEASE ONLY REPORT A SINGLE BUG USING THIS TEMPLATE.
If you’re experiencing multiple issues, please file a separate report for each.


:backhand_index_pointing_right: Bug Description


1. Summary

Provide a brief description of the bug in the SDK and its impact on app functionality.

App Name:
App Link on Amazon Appstore (found through Developer Console → Actions column in App List → View on Amazon.com):

Bug Severity
Select one that applies

  • Impacts operation of app
  • Blocks current development
  • Improvement suggestion
  • Issue with documentation (If selected, please share the doc link and describe the issue)
  • Other

2. Steps to Reproduce

  1. [List the steps for reproducing the bug]
  2. [Any specific component or method call in React Native triggering the issue]

3. Observed Behavior

Explain what actually happened, noting any discrepancies or malfunctions.

<!-- Answer here -->

4. Expected Behavior

Describe what you expected the SDK to do under normal operation.

<!-- Answer here --> 

4.a Possible Root Cause & Temporary Workaround

Fill out anything you have tried. If you don’t know, N/A is acceptable

<!-- Answer here -->

5. Logs or crash report

(Please make sure to provide relevant logs as attachment)

For crash issues, please refer this guide for faster troubleshooting: Detect Where the App Crash Originates | Design and Develop Vega Apps

 ~/.vscode/extensions/amazon.kepler-extension-<version>/ExtensionLogs
 ~/.vscode/extensions/amazon.kepler-ui-extension-<version>/ExtensionLogs

6. Environment

Please fill out the fields related to your bug below:

  • SDK Version: Output of kepler --version
  • App State: [Foreground/Background]
  • OS Information
    Please ssh into the device via kepler exec vda shelland copy the output from cat /etc/os-releaseinto the answer section below. Note, if you don’t have a simulator running or device attached kepler exec vda shell will respond with vda: no devices/emulators found
<!-- Answer here if applicable --> 

7. Example Code Snippet / Screenshots / Screengrabs

Include any relevant code or component setup in React Native that can help reproduce the bug.

import { ExampleComponent } from 'custom-sdk';

<ExampleComponent config={{ key: 'value' }} />

:backhand_index_pointing_right: Playback Issues


If this is a playback issue, please provide your content URL, any pre-conditions (like geo-location), and let us know if it’s x86 or arm7.

<!-- Describe your playback issue if applicable -->

Please share the following details in addition:_

  • Player SDK: [Bitmovin, Shaka, ...]
  • Player SDK Version: [e.g. 1.23]
    • Audio Codecs: [AAC, ...]
    • Video Codecs: [h.264, mp4]
    • Manifest Types: [m3u8, dash, etc ..]

Q: If applicable, please provide your media/content url
If this is created dynamically, tokenized, etc please provide a way for us to access it

[N/A or Content / Media Url for testing]

Q: Are there any special headers required to reproduce the issue you are facing?

[N/A or Insert Headers]

Additionally please provide the following if possible
Provide Screenshots / Screengrabs / Logs. Please include as much information as you can that will help debug.

<!-- Answer here if applicable --> 

:backhand_index_pointing_right: Additional Context


Any Additional Context you would like to provide?
Add any other relevant information, such as recent updates to the SDK, dependencies, or device OS that may affect the bug.

<!-- Answer here if applicable  --> 

Warm regards,
Ivy

Hey @Ajay_Mehta
We didn’t receive any reply from your end. We’re closing this post as of now. If you’d like to reopen it, please reply to this within the next 14 days.
Warm regards,
Ivy