# 3 headless player listener issues: when playing MP4 in Shaka Player in one case; onEnded Called Twice, Position updates reports 0

**URL:** <https://community.amazondeveloper.com/t/3-headless-player-listener-issues-when-playing-mp4-in-shaka-player-in-one-case-onended-called-twice-position-updates-reports-0/20442>\
**Category:** Bug Reports\
**Created:** [September 29, 2025, 2:03pm UTC](https://community.amazondeveloper.com/t/3-headless-player-listener-issues-when-playing-mp4-in-shaka-player-in-one-case-onended-called-twice-position-updates-reports-0/20442 "2025-09-29T14:03:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MatthewThies](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/matthewthies/32/134_2.png) [@MatthewThies](https://community.amazondeveloper.com/u/MatthewThies)\
**Post date:** [September 29, 2025, 2:03pm UTC](https://community.amazondeveloper.com/t/3-headless-player-listener-issues-when-playing-mp4-in-shaka-player-in-one-case-onended-called-twice-position-updates-reports-0/20442/1 "2025-09-29T14:03:21Z")

</div>

* * *

# 👉 Bug Description

* * *

## 1. Summary

3 headless player listener issues: when playing MP4 in Shaka Player in one case; onEnded Called Twice, Position updates reports 0

**App Name** : [starz.com](http://starz.com)  
**App Link on Amazon Appstore** (found through Developer Console → Actions column in App List → View on [Amazon.com](http://Amazon.com)):

## 2. Observed Behavior

_Explain what actually happened, noting any discrepancies or malfunctions._

```auto
* When using Shaka Player and playing MP4 we do not get a duration update until a seek is performed by the user

* onEnded occurs twice at the end of any media played (be it MP4 or DASH-DRM-PROTECTED for us).  

* position does not report correctly just after a seek and sometimes reports 0 incorrectly

```

## 3. Environment

_Please fill out the fields related to your bug below:_

- **SDK Version:** 0.20.3719

- **App State:** Foregorund

- **OS Information**  
NAME=“OS”

* * *

This post was requested by our Amazon contact whom I will be sharing vpkg/build directory + relevant logs and video demonstrating these issues.

* * *

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [September 30, 2025, 8:30am UTC](https://community.amazondeveloper.com/t/3-headless-player-listener-issues-when-playing-mp4-in-shaka-player-in-one-case-onended-called-twice-position-updates-reports-0/20442/3 "2025-09-30T08:30:55Z")

</div>

Hi @MatthewThies  
Thanks for reporting this issue. Please share the VPKG files via your Amazon contacts, that will allow us to look into this further.  
Warm regards,  
Ivy

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [October 9, 2025, 9:47am UTC](https://community.amazondeveloper.com/t/3-headless-player-listener-issues-when-playing-mp4-in-shaka-player-in-one-case-onended-called-twice-position-updates-reports-0/20442/4 "2025-10-09T09:47:26Z")

</div>

Hi @MatthewThies  
Can you please share the steps to reproduce the issues? Also, please share the logs if possible.  
Warm regards,  
Ivy

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [November 27, 2025, 8:41am UTC](https://community.amazondeveloper.com/t/3-headless-player-listener-issues-when-playing-mp4-in-shaka-player-in-one-case-onended-called-twice-position-updates-reports-0/20442/5 "2025-11-27T08:41:15Z")

</div>

Closing this topic due to inactivity.

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [November 27, 2025, 8:41am UTC](https://community.amazondeveloper.com/t/3-headless-player-listener-issues-when-playing-mp4-in-shaka-player-in-one-case-onended-called-twice-position-updates-reports-0/20442/6 "2025-11-27T08:41:28Z")

</div>


