Shaka Player Play/Pause issues

I am using the 4.8.5-r1.2 version of the Shaka Player that is in the docs. I find that when I pause the vid for maybe half a minute the vid is unable to resume and if it does resume it is only after a long delay.

I have also found this error in the same apps that are provided by amazon in the sports-app and video-sample which makes me think it might be an issue with how its implemented.

Any information would be appreciated.

Hi @Nick_Taylor

Welcome to Amazon Developer Community !!
Thanks for writing in, let me check this and update you ASAP.

Warm regards,
Ivy

1 Like

Hi @Nick_Taylor ,

Can you please share the bug details in the below format please?

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

You can also use the Vega Studio to share the above details for bug report: Set Up and Use Vega Studio | Vega Get Started

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  --> 

1. Summary

PlayBack issue with Shaka Player. When pausing the Shaka Player for longer than 20 seconds the video will stall and then jump ahead some time later as if it wasn’t paused. This behavior is also on the Vega-video sample app and Vega-sports sample app video players.

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

2. Steps to Reproduce

  1. Run Shaka Player with sample apps using hls vod. Pause for a while then press play

  2. Use the play button on the remote or use the select button they both have same issue

3. Observed Behavior

Explain what actually happened, noting any discrepancies or malfunctions.


Video will resume after buffering, video will then play further up the video than when it was paused

4. Expected Behavior

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


Expect Video to Play where it was paused

4.a Possible Root Cause & Temporary Workaround

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


N/A

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

You can also use the Vega Studio to share the above details for bug report: Set Up and Use Vega Studio | Vega Get Started

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

Kepler Verion 0.21.4677
App State Foreground

NAME="OS"
OE_VERSION="4.0.0"
OS_MAJOR_VERSION="1"
OS_MINOR_VERSION="1"
RELEASE_ID="10"
OS_VERSION="1.1"
BRANCH_CODE="TV Ship"
BUILD_DESC="OS 1.1 (TV Ship/10240300)"
BUILD_FINGERPRINT="1.0.24030.0(9a1d8dfa7da5d600)/10240300N:user/dev-keys"
BUILD_VARIANT="user"
BUILD_TAGS="dev-keys"
BUILD_DATE="Thu Sep 25 10:32:58 UTC 2025"
BUILD_TIMESTAMP="1758796378"
VERSION_NUMBER="1002034030030"

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.

When pausing video on Shaka Player if paused for too long and you try to resume play the video will stall and then jump further ahead of the video. It causes components to rerender unexpectedly. Other behavior seen is that it will stutter forward along the video until it resume playing. This behavior is both in my implementation and in the sample apps that are provided that use the Shaka Player. Also seems that audio and video are not synced


Please share the following details in addition:_

  • Player SDK: Shaka Player

  • Player SDK Version: 4.8.5-r1.2

    • Audio Codecs: [AAC, ...]

    • Video Codecs: [h.264, mp4]

    • Manifest Types: m3u8

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

https://demo.unified-streaming.com/k8s/features/stable/video/tears-of-steel/tears-of-steel.ism/.m3u8

Test hls vid

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

[N/A or Insert Headers]
NA

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




: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  --> 

Hey @Nick_Taylor ,

Thanks for updating the details.
Can you also please share the logs for the same?

Thanks,
Rohit

Here is some logs from playing and pausing the video. After you play the video after a pause it for some reason has an issue with the buffer and will rerender the Keplervideosurfaceview

INFO Player Session is performing pause operation on Media Player

(NOBRIDGE) INFO MediaPlayer: pause

(NOBRIDGE) INFO PlayerSessionClient: pause event

(NOBRIDGE) INFO enumarate the session playback state

(NOBRIDGE) INFO Setting playbackState to session client

(NOBRIDGE) INFO Setting playbackState state to session client is successful

(NOBRIDGE) INFO k_content_per: VideoPlayerUI : playpause

(NOBRIDGE) INFO k_content_per: selecting mock data matching input title selected index 0

(NOBRIDGE) INFO [ContentPersonalizationMocks.ts] - k_content_per: returning mock video position as 25950

(NOBRIDGE) INFO Player Session is performing to send playback state of MediaPlayer

(NOBRIDGE) INFO enumarate the session playback state

(NOBRIDGE) INFO Setting playbackState to session client

(NOBRIDGE) INFO Setting playbackState state to session client is successful

(NOBRIDGE) INFO Player Session is performing play operation on Media Player

(NOBRIDGE) INFO MediaPlayer: play

(NOBRIDGE) INFO MediaPlayer:play resolved

(NOBRIDGE) INFO PlayerSessionClient: player event

(NOBRIDGE) INFO enumarate the session playback state

(NOBRIDGE) INFO Setting playbackState to session client

(NOBRIDGE) INFO Setting playbackState state to session client is successful

(NOBRIDGE) LOG sample:shaka: in the request filter type = 1

(NOBRIDGE) LOG sample:shaka: in the request filter END

(NOBRIDGE) LOG sample:shaka: in the response filter type = 1

(NOBRIDGE) INFO SourceBuffer[0]:appendBuffer(959740)

(NOBRIDGE) INFO SourceBuffer[0]:handleEvent: with event: 2

(NOBRIDGE) INFO SourceBuffer[0]:handleEvent: with event: 2

(NOBRIDGE) INFO SourceBuffer[0]:handleEvent: with event: 2

(NOBRIDGE) INFO MediaSource[1]:endOfStream undefined

(NOBRIDGE) INFO PlayerSessionClient: waiting event

(NOBRIDGE) INFO enumarate the session playback state

(NOBRIDGE) INFO Setting playbackState to session client

(NOBRIDGE) INFO Setting playbackState state to session client is successful

(NOBRIDGE) INFO render KeplerVideoSurfaceView

(NOBRIDGE) INFO render KeplerCaptionsView

(NOBRIDGE) WARN onAnimationJsonLoad will be deprecated in favor of onAnimationLoad in MR33. Migrate to use onAnimationLoad.

(NOBRIDGE) INFO PlayerSessionClient: seeking event

(NOBRIDGE) INFO render KeplerVideoSurfaceView

(NOBRIDGE) INFO render KeplerCaptionsView

(NOBRIDGE) INFO PlayerSessionClient: player event

(NOBRIDGE) INFO enumarate the session playback state

(NOBRIDGE) INFO Setting playbackState to session client

(NOBRIDGE) INFO Setting playbackState state to session client is successful

Hey @Nick_Taylor

We were unable to reproduce this issue.
Please share the journalctl logs to check the issue further.

Warm regards,
Ivy

Closing this topic due to inactivity. @Nick_Taylor if your issue still persists, please create a new topic.
Happy to help!